* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #5a5a5a;
    background: #f7f4f0;
}

/* Header */
header {
    background: #ffffff;
    padding: 1.8rem 6%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ebe6e0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    font-family: 'Crimson Text', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #3d3d3d;
    letter-spacing: 0.5px;
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #7a7a7a;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3d3d3d;
}

/* Hero Section */
.hero {
    height: 40vh; /* Updated height */
    background: linear-gradient(rgba(237, 227, 216, 0.7), rgba(237, 227, 216, 0.7)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23d4c4b0" width="1200" height="600"/><circle cx="200" cy="400" r="150" fill="%23c4b39f" opacity="0.3"/><circle cx="900" cy="200" r="200" fill="%23b5a491" opacity="0.2"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #3d3d3d;
}

.hero-content h1 {
    font-family: 'Crimson Text', serif;
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    color: #3d3d3d;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6a6a6a;
}

/* Main Content */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 6rem 6%;
}

.section-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: center;
    color: #3d3d3d;
    letter-spacing: 0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9a9a9a;
    margin-bottom: 2rem;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.filter-btn {
    background: white;
    border: 1px solid #ebe6e0;
    padding: 0.8rem 1.8rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7a7a7a;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover {
    background: #f7f4f0;
    color: #3d3d3d;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #3d3d3d;
    color: white;
    border-color: #3d3d3d;
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.recipe-card {
    background: white;
    overflow: hidden;
    transition: transform 0.4s ease;
    cursor: pointer;
    border: 1px solid #ebe6e0;
}

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

.recipe-image {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #d9cdbf 0%, #c4b39f 100%);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.recipe-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #5a5a5a;
    border: 1px solid #ebe6e0;
}

.recipe-content {
    padding: 2.5rem;
}

.recipe-content h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #3d3d3d;
    letter-spacing: 0.5px;
}

.recipe-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.2rem;
    font-size: 0.8rem;
    color: #9a9a9a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.recipe-description {
    color: #7a7a7a;
    line-height: 1.8;
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}

.recipe-macros {
    display: flex;
    gap: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ebe6e0;
}

.macro {
    text-align: center;
}

.macro-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #3d3d3d;
    margin-bottom: 0.3rem;
}

.macro-label {
    font-size: 0.7rem;
    color: #9a9a9a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 61, 61, 0.85);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    max-width: 900px;
    margin: 3rem auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 2rem;
    background: white;
    border: 1px solid #ebe6e0;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #5a5a5a;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f7f4f0;
}

/* Auth modal close button stays on right side */
.auth-modal .modal-close {
    left: auto;
    right: 2rem;
}

.modal-image {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
}

.modal-body {
    padding: 4rem;
}

.modal-body h2 {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #3d3d3d;
    letter-spacing: 0.5px;
}

.ingredients, .instructions {
    margin: 3rem 0;
}

.ingredients h4, .instructions h4 {
    font-family: 'Crimson Text', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #3d3d3d;
    letter-spacing: 0.5px;
}

.ingredients ul, .instructions ol {
    margin-left: 1.8rem;
    line-height: 2;
}

.ingredients li, .instructions li {
    margin-bottom: 0.8rem;
    color: #6a6a6a;
    font-size: 0.95rem;
}

/* Instruction with Image */
.instruction-with-image {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.instruction-text {
    flex: 1;
    color: #6a6a6a;
    font-size: 0.95rem;
    line-height: 1.8;
}

.instruction-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.instruction-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive for instruction images */
@media (max-width: 768px) {
    .instruction-with-image {
        flex-direction: column;
    }

    .instruction-thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* Footer */
footer {
    background: #3d3d3d;
    color: #d4c4b0;
    text-align: center;
    padding: 3.5rem 6%;
    border-top: 1px solid #5a5a5a;
}

footer p {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        padding: 2.5rem;
    }

    .container {
        padding: 4rem 5%;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
    }
}

/* Authentication Styles */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login,
.btn-signup {
    padding: 0.6rem 1.5rem;
    border: 1px solid #3d3d3d;
    background: transparent;
    color: #3d3d3d;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-signup {
    background: #3d3d3d;
    color: white;
}

.btn-login:hover {
    background: #3d3d3d;
    color: white;
}

.btn-signup:hover {
    background: #2d2d2d;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3d3d3d;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    background: #2d2d2d;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #ebe6e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    padding: 1rem 0;
}

.user-info {
    padding: 0 1rem 0.5rem;
}

.user-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #3d3d3d;
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #3d3d3d;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid #ebe6e0;
    margin: 0.5rem 0;
}

.user-dropdown a {
    display: block;
    padding: 0.7rem 1rem;
    color: #3d3d3d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.user-dropdown a:hover {
    background: #f5f5f5;
}

/* Auth Modal Styles */
.auth-modal {
    max-width: 420px;
    padding: 2.5rem;
}

.auth-modal h2 {
    margin-bottom: 1.5rem;
    color: #3d3d3d;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #3d3d3d;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ebe6e0;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3d3d3d;
}

.btn-auth {
    width: 100%;
    padding: 0.9rem;
    background: #3d3d3d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    margin-top: 0.5rem;
}

.btn-auth:hover {
    background: #2d2d2d;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #999;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ebe6e0;
}

.auth-divider span {
    padding: 0 0.8rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-google {
    width: 100%;
    padding: 0.9rem;
    background: white;
    color: #3d3d3d;
    border: 1px solid #ebe6e0;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-google:hover {
    background: #f7f4f0;
    border-color: #3d3d3d;
}

.btn-google svg {
    flex-shrink: 0;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #6a6a6a;
}

.auth-switch a {
    color: #3d3d3d;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Premium Modal */
.premium-features {
    padding: 1rem 0;
}

.premium-intro {
    font-size: 1.05rem;
    color: #3d3d3d;
    margin-bottom: 1.5rem;
}

.premium-features ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}

.premium-features li {
    padding: 0.8rem 0;
    font-size: 1rem;
    color: #3d3d3d;
}

.premium-note {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: 1rem;
}

/* Premium Recipe Badges */
.premium-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #3d3d3d;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.premium-recipe-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #3d3d3d;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.8rem;
    vertical-align: middle;
}

/* Modal Header with Save Button */
.modal-header {
    position: relative;
}

.btn-save-recipe {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    z-index: 10;
}

/* Print Recipe Section */
.print-recipe-section {
    display: flex;
    justify-content: center;
    margin: 2rem 0 2rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ebe6e0;
}

.btn-save-recipe:hover {
    background: #e74c3c;
    color: white;
}

.btn-save-recipe.saved {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
}

.save-icon {
    font-size: 1.2rem;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ebe6e0;
}

.comments-section h3 {
    font-size: 1.5rem;
    color: #3d3d3d;
    margin-bottom: 1.5rem;
    text-align: center;
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ebe6e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
    min-height: 100px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #3d3d3d;
}

.btn-post-comment {
    display: block;
    margin: 1rem auto 0;
    padding: 0.8rem 2rem;
    background: #3d3d3d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-post-comment:hover {
    background: #2d2d2d;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    background: #f9f9f9;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 3px solid #d4c4b0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.comment-header strong {
    color: #3d3d3d;
    font-size: 0.95rem;
}

.comment-date {
    color: #999;
    font-size: 0.8rem;
}

.comment-text {
    color: #6a6a6a;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.no-comments {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}

/* LessCarbs+ Section */
.lesscarbs-plus-section {
    background: linear-gradient(135deg, #f8f8f8 0%, #ebe6e0 100%);
    padding: 6rem 6%;
    margin: 4rem 0;
}

.lesscarbs-plus-header {
    text-align: center;
    margin-bottom: 4rem;
}

.lesscarbs-plus-header h2 {
    font-family: 'Crimson Text', serif;
    font-size: 3.5rem;
    color: #3d3d3d;
    margin-bottom: 1rem;
}

.plus-symbol {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.lesscarbs-plus-tagline {
    font-size: 1.2rem;
    color: #6a6a6a;
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.6rem;
    color: #3d3d3d;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #6a6a6a;
    line-height: 1.8;
    font-size: 1rem;
}

.lesscarbs-plus-cta {
    text-align: center;
}

.btn-upgrade-large {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #3d3d3d;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.btn-upgrade-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 165, 0, 0.4);
}

.cta-note {
    margin-top: 1rem;
    color: #999;
    font-size: 0.9rem;
}

.login-required-notice {
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: center;
}

.login-required-notice p {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Stripe Buy Button Styling */
.stripe-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.stripe-button-modal {
    margin-top: 1rem;
}

/* Updated Premium Modal for LessCarbs+ */
.lesscarbs-plus-modal {
    max-width: 600px;
}

.modal-plus-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-plus-header h2 {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    color: #3d3d3d;
    margin-bottom: 0.5rem;
}

.modal-plus-subtitle {
    color: #6a6a6a;
    font-size: 1.05rem;
}

.feature-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.feature-highlight .feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-highlight h4 {
    margin: 0 0 0.3rem 0;
    color: #3d3d3d;
    font-size: 1rem;
    font-weight: 600;
}

.feature-highlight p {
    margin: 0;
    color: #6a6a6a;
    font-size: 0.9rem;
}

.btn-learn-more {
    display: block;
    text-align: center;
    padding: 0.8rem;
    margin: 1.5rem 0 1rem;
    color: #3d3d3d;
    text-decoration: none;
    border: 2px solid #3d3d3d;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-learn-more:hover {
    background: #3d3d3d;
    color: white;
}

/* Update existing premium badges to LessCarbs+ */
.premium-card-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.premium-recipe-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.premium-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

/* Modal Actions (Save & Print buttons) */
.modal-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.btn-print-recipe {
    background: white;
    border: 2px solid #3d3d3d;
    color: #3d3d3d;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.btn-print-recipe:hover {
    background: #3d3d3d;
    color: white;
}

.print-icon {
    font-size: 1.1rem;
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #3d3d3d;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Search and Filter Bar */
.search-filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #9a9a9a;
    pointer-events: none;
}

#recipeSearch {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: 1px solid #ebe6e0;
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #5a5a5a;
    transition: all 0.3s ease;
}

#recipeSearch:focus {
    outline: none;
    border-color: #3d3d3d;
    box-shadow: 0 0 0 3px rgba(61, 61, 61, 0.1);
}

.filter-select {
    padding: 0.9rem 1.5rem;
    border: 1px solid #ebe6e0;
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #7a7a7a;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-select:hover {
    border-color: #3d3d3d;
}

.filter-select:focus {
    outline: none;
    border-color: #3d3d3d;
    box-shadow: 0 0 0 3px rgba(61, 61, 61, 0.1);
}

/* Difficulty Badges */
.difficulty-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    z-index: 2;
}

.difficulty-easy {
    background: rgba(76, 175, 80, 0.95);
    color: white;
}

.difficulty-medium {
    background: rgba(255, 152, 0, 0.95);
    color: white;
}

.difficulty-hard {
    background: rgba(244, 67, 54, 0.95);
    color: white;
}

.difficulty-badge-modal {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-left: 1rem;
    vertical-align: middle;
}

/* Star Ratings */
.recipe-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.stars {
    color: #FFD700;
    font-size: 1rem;
    letter-spacing: 2px;
}

.rating-count {
    font-size: 0.8rem;
    color: #9a9a9a;
    font-weight: 400;
}

/* Time Breakdown in Modal */
.time-breakdown {
    display: flex;
    gap: 2rem;
    margin: 1rem 0 1.5rem 0;
    padding: 1rem;
    background: #f7f4f0;
    border-left: 3px solid #3d3d3d;
    flex-wrap: wrap;
}

.time-item {
    font-size: 0.9rem;
    color: #5a5a5a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Responsive for LessCarbs+ section */
@media (max-width: 768px) {
    .lesscarbs-plus-section {
        padding: 4rem 5%;
    }

    .lesscarbs-plus-header h2 {
        font-size: 2.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-save-recipe,
    .btn-print-recipe {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        gap: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #ebe6e0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 0.95rem;
    }

    .auth-buttons {
        position: fixed;
        bottom: 2rem;
        left: -100%;
        width: 80%;
        max-width: 260px;
        padding: 0 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .auth-buttons.active {
        left: 0;
    }

    .btn-login,
    .btn-signup {
        width: 100%;
        text-align: center;
    }

    /* Search and Filter Bar Mobile */
    .search-filter-bar {
        flex-direction: column;
    }

    .search-input-wrapper {
        width: 100%;
        min-width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    /* Time Breakdown Mobile */
    .time-breakdown {
        flex-direction: column;
        gap: 0.8rem;
    }
}