/* Recipe Ebook Shopping Website - Custom Styles */

:root {
    /* Warm & Appetizing Color Scheme */
    --primary-color: #E74C3C;        /* Warm Red - like tomatoes/chili */
    --secondary-color: #2C3E50;      /* Dark Blue-Gray - for text */
    --accent-color: #F39C12;         /* Golden Orange - like cheese/sunset */
    --success-color: #27AE60;        /* Fresh Green - like herbs/vegetables */
    --warning-color: #F39C12;        /* Golden Orange */
    --danger-color: #E74C3C;         /* Warm Red */
    --light-color: #ECF0F1;          /* Light Gray - for backgrounds */
    --dark-color: #2C3E50;           /* Dark Blue-Gray */
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    
    /* Additional Food-Inspired Colors */
    --cream-color: #FDF5E6;          /* Cream - like dairy */
    --warm-brown: #8B4513;           /* Saddle Brown - like wood */
    --herb-green: #228B22;           /* Forest Green - like fresh herbs */
    --spice-orange: #FF8C00;         /* Dark Orange - like spices */
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--spice-orange) 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.15);
    border-left: 4px solid var(--primary-color);
}

/* Recipe Cards */
.recipe-card .card {
    border-top: 3px solid var(--accent-color);
}

.recipe-card .card:hover {
    border-top-color: var(--primary-color);
}

/* Ebook Cards */
.ebook-card .card {
    border-top: 3px solid var(--success-color);
}

.ebook-card .card:hover {
    border-top-color: var(--accent-color);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Featured Recipes Section */
.featured-recipes-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.featured-recipes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* Modern Recipe Card Wrapper */
.recipe-card-wrapper {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
}

.recipe-card-wrapper:hover {
    transform: translateY(-12px);
}

.recipe-card-wrapper:hover .recipe-card {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Modern Recipe Cards */
.recipe-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    height: 100%;
    backdrop-filter: blur(10px);
}

.recipe-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 87, 34, 0.2);
}

.recipe-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-card:hover .recipe-image {
    transform: scale(1.1);
}

.recipe-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    opacity: 0.8;
}

.recipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-card:hover .recipe-overlay {
    opacity: 1;
}

.recipe-meta-badge {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.meta-item {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.meta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.meta-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.difficulty-badge {
    align-self: flex-end;
    margin-top: auto;
}

.badge-difficulty-easy {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.badge-difficulty-easy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.badge-difficulty-medium {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
}

.badge-difficulty-medium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.badge-difficulty-hard {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
    transition: all 0.3s ease;
}

.badge-difficulty-hard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.recipe-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 240px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.recipe-header {
    flex-grow: 1;
    margin-bottom: 20px;
}

.recipe-meta-info {
    margin-bottom: 20px;
}

.meta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.meta-item-static {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.meta-item-static:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.meta-item-static i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.category-badge {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-color: #2196f3;
    color: #1976d2;
}

.category-badge i {
    color: #1976d2;
}

.rating-badge {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-color: #ff9800;
    color: #f57c00;
}

.rating-badge i {
    color: #ff9800;
}

.rating-badge small {
    color: #e65100;
    font-weight: 400;
}

.recipe-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-link {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.recipe-link:hover {
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(255, 87, 34, 0.2);
}

.recipe-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.recipe-author {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recipe-author::before {
    content: "👨‍🍳";
    font-size: 0.9rem;
}

.btn-recipe {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-recipe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-recipe:hover::before {
    left: 100%;
}

.btn-recipe:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
    text-decoration: none;
}

.btn-recipe i {
    transition: transform 0.3s ease;
}

.btn-recipe:hover i {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .recipe-card-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .recipe-image-container {
        height: 200px;
    }
    
    .recipe-content {
        padding: 20px;
    }
    
    .recipe-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .meta-row {
        gap: 8px;
    }
    
    .meta-item-static {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .recipe-card-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .recipe-image-container {
        height: 180px;
    }
    
    .recipe-content {
        padding: 20px;
    }
    
    .recipe-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .recipe-description {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .meta-row {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .meta-item-static {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .recipe-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .btn-recipe {
        text-align: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .recipe-author {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .recipe-card-wrapper {
        margin-bottom: 1rem;
    }
    
    .recipe-image-container {
        height: 160px;
    }
    
    .recipe-content {
        padding: 15px;
    }
    
    .recipe-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .recipe-description {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .meta-row {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .meta-item-static {
        font-size: 0.7rem;
        padding: 5px 8px;
        justify-content: center;
    }
    
    .btn-recipe {
        font-size: 0.75rem;
        padding: 8px 14px;
    }
    
    .recipe-author {
        font-size: 0.75rem;
    }
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recipe-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.recipe-description {
    color: #6c757d;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ebook Cards */
.ebook-card {
    margin-bottom: 30px;
}

.ebook-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.ebook-rating {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #c0392b, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), var(--herb-green));
}

.btn-success:hover {
    background: linear-gradient(45deg, #229954, #1e7e34);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(45deg, var(--accent-color), var(--spice-orange));
}

.btn-warning:hover {
    background: linear-gradient(45deg, #e67e22, #ff7f00);
    transform: translateY(-2px);
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

/* Badges */
.badge {
    font-size: 0.8rem;
    padding: 0.5em 0.75em;
}

.badge-difficulty-easy {
    background-color: var(--success-color);
}

.badge-difficulty-medium {
    background-color: var(--warning-color);
}

.badge-difficulty-hard {
    background-color: var(--danger-color);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    margin-top: auto;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .recipe-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ebook Detail Page Styles */
.ebook-detail {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.ebook-title {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.ebook-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.ebook-cover:hover {
    transform: scale(1.02);
}

.ebook-meta {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.meta-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.ebook-price {
    text-align: center;
    margin: 20px 0;
}

.price-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(255, 87, 34, 0.2);
}

.ebook-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.ebook-actions .btn {
    min-width: 140px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.ebook-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ebook-description {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ebook-description h3 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.description-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.ebook-features {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ebook-features h3 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--success-color);
}

.ebook-features ul li {
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.ebook-features ul li i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.related-ebook {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.related-ebook:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: -15px;
}

.related-ebook:last-child {
    border-bottom: none;
}

.related-ebook img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.related-ebook h6 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-ebook h6 a:hover {
    color: var(--primary-color);
}

/* Responsive Design for Ebook Detail */
@media (max-width: 768px) {
    .ebook-detail {
        padding: 20px;
    }
    
    .ebook-title {
        font-size: 2rem;
    }
    
    .ebook-cover {
        height: 300px;
        margin-bottom: 20px;
    }
    
    .ebook-actions {
        flex-direction: column;
    }
    
    .ebook-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .price-display {
        font-size: 2rem;
    }
    
    .ebook-description,
    .ebook-features {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .ebook-detail {
        padding: 15px;
    }
    
    .ebook-title {
        font-size: 1.5rem;
    }
    
    .ebook-cover {
        height: 250px;
    }
    
    .price-display {
        font-size: 1.8rem;
    }
    
    .ebook-description,
    .ebook-features {
        padding: 15px;
    }
}

/* Policy Pages Styles */
.policy-content {
    line-height: 1.7;
    color: #333;
}

.policy-content h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.policy-content h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.policy-content ul, .policy-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

.policy-content .contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 1rem 0;
}

.policy-content .contact-info p {
    margin-bottom: 0.5rem;
}

.policy-content .contact-info p:last-child {
    margin-bottom: 0;
}

.policy-content table {
    margin: 1rem 0;
    border-collapse: collapse;
    width: 100%;
}

.policy-content table th,
.policy-content table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #dee2e6;
}

.policy-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

.policy-content .alert {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
}

.policy-content .alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.policy-content .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.policy-content .alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.policy-content .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive adjustments for policy pages */
@media (max-width: 768px) {
    .policy-content {
        font-size: 0.95rem;
    }
    
    .policy-content h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .policy-content h3 {
        font-size: 1.25rem;
        margin-top: 1.25rem;
    }
    
    .policy-content .contact-info {
        padding: 1rem;
    }
    
    .policy-content table {
        font-size: 0.9rem;
    }
    
    .policy-content table th,
    .policy-content table td {
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .policy-content {
        font-size: 0.9rem;
    }
    
    .policy-content h2 {
        font-size: 1.3rem;
    }
    
    .policy-content h3 {
        font-size: 1.1rem;
    }
    
    .policy-content .contact-info {
        padding: 0.75rem;
    }
    
    .policy-content table {
        font-size: 0.85rem;
    }
    
    .policy-content table th,
    .policy-content table td {
        padding: 0.4rem;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-right: 50px;
}

.search-box .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
}

/* Filter Sidebar */
.filter-sidebar {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h6 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Recipe Detail Page */
.recipe-header {
    margin-bottom: 30px;
}

.recipe-image {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.recipe-ingredients {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.recipe-instructions {
    line-height: 1.8;
}

.recipe-instructions ol {
    padding-left: 20px;
}

.recipe-instructions li {
    margin-bottom: 10px;
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: var(--secondary-color);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: #fff;
    padding: 12px 20px;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.admin-content {
    padding: 30px;
}

/* Table Styles */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color)) !important;
    font-size: 0.9rem;
}

.top-bar .social-links a {
    transition: var(--transition);
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-bar .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Enhanced Navigation */
.navbar {
    padding: 0.5rem 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar.scrolled {
    padding: 0.25rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.brand-container {
    display: flex;
    align-items: center;
}

.brand-text {
    line-height: 1.2;
}

.brand-main {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 600;
    margin: 0 0.3rem;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(231, 76, 60, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Footer Styles */
.footer-section {
    margin-top: auto;
}

.footer-main {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    position: relative;
    color: #ecf0f1;
}

.footer-main h5,
.footer-main h6 {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-main .text-primary {
    color: var(--accent-color) !important;
}

.footer-main .text-muted {
    color: #bdc3c7 !important;
    line-height: 1.6;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.footer-main .container {
    position: relative;
    z-index: 2;
}

.footer-brand h5 {
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-info .contact-item {
    transition: var(--transition);
    color: #ecf0f1;
}

.contact-info .contact-item:hover {
    transform: translateX(5px);
    color: var(--accent-color);
}

.contact-info .contact-item i {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
}

.contact-info .contact-item span {
    color: #ecf0f1;
    font-weight: 500;
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    margin-right: 0.5rem;
}

.social-links .social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(243, 156, 18, 0.3);
}

.newsletter-form .newsletter-input {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 25px 0 0 25px;
}

.newsletter-form .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .newsletter-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form .newsletter-btn {
    border-radius: 0 25px 25px 0;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    transition: var(--transition);
}

.newsletter-form .newsletter-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.trust-badges .badge-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badges .badge-item:hover {
    background: rgba(243, 156, 18, 0.2);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.trust-badges .badge-item small {
    color: #ecf0f1 !important;
    font-weight: 500;
}

.footer-bottom {
    background: #1a252f !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

.footer-bottom p {
    color: #bdc3c7 !important;
    font-weight: 500;
}

.footer-bottom .text-danger {
    color: var(--primary-color) !important;
}

.footer-legal a {
    transition: var(--transition);
    color: #bdc3c7 !important;
    font-weight: 500;
}

.footer-legal a:hover {
    color: var(--accent-color) !important;
    text-shadow: 0 0 8px rgba(243, 156, 18, 0.4);
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
        border-radius: 8px;
    }
    
    .top-bar {
        text-align: center;
    }
    
    .top-bar .col-md-6:first-child {
        margin-bottom: 0.5rem;
    }
    
    .footer-main {
        text-align: center;
    }
    
    .contact-info .contact-item {
        justify-content: center;
    }
    
    .footer-legal {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Recipe Page Styles */
.recipe-detail {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.recipe-header {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.recipe-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.recipe-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.recipe-meta {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.meta-item i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.badge-difficulty-easy {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-difficulty-medium {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-difficulty-hard {
    background: linear-gradient(45deg, #dc3545, #e83e8c);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.recipe-stats {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.recipe-stats span {
    display: flex;
    align-items: center;
}

.recipe-stats i {
    margin-right: 5px;
}

.recipe-author {
    padding: 15px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.recipe-actions {
    margin-top: 20px;
}

.recipe-actions .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.recipe-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.recipe-description {
    padding: 30px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.recipe-description h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.recipe-ingredients {
    padding: 30px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.recipe-ingredients h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.ingredient-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 1rem;
}

.ingredient-item:last-child {
    border-bottom: none;
}

.ingredient-item i {
    margin-right: 10px;
    color: var(--success-color);
}

.recipe-instructions {
    padding: 30px;
    background: white;
}

.recipe-instructions h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.instruction-list {
    counter-reset: step-counter;
    padding-left: 0;
}

.instruction-item {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.instruction-item::before {
    content: counter(step-counter);
    position: absolute;
    left: -15px;
    top: 20px;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.instruction-content {
    margin-left: 20px;
    line-height: 1.6;
}

.recipe-rating {
    padding: 30px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.recipe-rating h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.rating-star:hover,
.rating-star.active {
    color: #ffc107;
    transform: scale(1.1);
}

.related-recipe {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.related-recipe:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-recipe h6 a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
}

.related-recipe h6 a:hover {
    color: var(--primary-color);
}

.recipe-nutrition {
    padding: 30px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.recipe-nutrition h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.nutrition-item {
    background: #f8f9fa;
    padding: 20px 15px;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: var(--transition);
}

.nutrition-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1);
}

.nutrition-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.nutrition-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Review Section Styles */
.recipe-reviews {
    padding: 30px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.recipe-reviews h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.review-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.review-form h5 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.review-rating-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.review-star {
    font-size: 1.2rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.review-star:hover,
.review-star.active {
    color: #ffc107;
    transform: scale(1.1);
}

.review-item {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.review-header h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin: 0;
}

.review-rating {
    margin-top: 5px;
}

.review-rating .fas {
    font-size: 0.9rem;
}

.review-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.review-content p {
    margin: 0;
    line-height: 1.6;
    color: #495057;
}

.no-reviews {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 2px dashed #dee2e6;
}

.rating-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer,
    .pagination,
    .recipe-actions,
    .sidebar,
    .breadcrumb {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
    
    .recipe-detail {
        box-shadow: none;
        border: none;
    }
    
    .recipe-header {
        background: white !important;
    }
}
