:root {
    --primary-green: #008751;
    --primary-white: #FFFFFF;
    --accent-orange: #FF6B35;
    --accent-yellow: #FFB627;
    --accent-red: #E63946;
    --dark-green: #005A34;
    --light-green: #00C896;
    --bg-cream: #FFF8F0;
    --bg-light: #FFFBF7;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --text-light: #999999;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 50%, #FFF0E1 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.app-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-emoji {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-white);
    margin-bottom: 0.25rem;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 400;
}

.header-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    color: var(--primary-white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 240, 0.9));
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.generate-btn {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.generate-btn:hover::before {
    left: 100%;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.generate-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.generate-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.hero-illustration {
    position: relative;
    height: 300px;
}

.floating-dish {
    position: absolute;
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.dish-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.dish-2 {
    top: 50%;
    right: 10%;
    animation-delay: 0.5s;
}

.dish-3 {
    bottom: 20%;
    left: 10%;
    animation-delay: 1s;
}

.dish-4 {
    top: 30%;
    right: 30%;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Loading Section */
.loading-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: 4rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.4s ease-out;
}

.cooking-animation {
    position: relative;
    margin: 0 auto 2rem;
    width: 120px;
    height: 120px;
}

.pot {
    font-size: 5rem;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

.steam {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: steam 1.5s ease-in-out infinite;
}

@keyframes steam {
    0% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-40px);
    }
}

.loading-container h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.loading-text {
    color: var(--text-gray);
    font-size: 1.125rem;
}

/* Meal Plan Section */
.meal-plan-section {
    animation: fadeIn 0.6s ease-out;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.refresh-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.refresh-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.refresh-btn svg {
    transition: transform 0.3s;
}

.refresh-btn:hover svg {
    transform: rotate(180deg);
}

/* Meals Grid */
.meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.meal-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: slideUp 0.6s ease-out both;
    border-top: 5px solid;
}

.meal-card:nth-child(1) {
    border-top-color: var(--accent-yellow);
    animation-delay: 0.1s;
}

.meal-card:nth-child(2) {
    border-top-color: var(--accent-orange);
    animation-delay: 0.2s;
}

.meal-card:nth-child(3) {
    border-top-color: #6A4C93;
    animation-delay: 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.meal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.meal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F5F5F5;
}

.meal-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.meal-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.meal-time {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.dish-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #FFF8F0, #FFE8D6);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.meal-card:hover .dish-image {
    transform: scale(1.05);
}

.dish-emoji {
    font-size: 5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.dish-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.dish-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.dish-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: var(--primary-green);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.cocktail-pairing {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #E0E0E0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cocktail-icon {
    font-size: 2.5rem;
}

.cocktail-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cocktail-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-orange);
}

/* Cocktails Section */
.cocktails-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.cocktails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cocktail-card {
    background: linear-gradient(135deg, #FFF8F0, #FFE8D6);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.cocktail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.cocktail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cocktail-emoji {
    font-size: 2.5rem;
}

.cocktail-header h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cocktail-desc {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.cocktail-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
}

/* Shopping Section */
.shopping-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.6s ease-out 0.5s both;
}

.shopping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.shopping-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.copy-btn {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.copy-btn:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.shopping-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.list-category h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.list-category ul {
    list-style: none;
    padding: 0;
}

.list-category li {
    padding: 0.625rem 0;
    color: var(--text-gray);
    border-bottom: 1px solid #F0F0F0;
    position: relative;
    padding-left: 1.5rem;
}

.list-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Footer */
.app-footer {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    color: var(--text-gray);
}

.app-footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-illustration {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .app-wrapper {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 2.5rem 1.5rem;
    }

    .section-header h2 {
        font-size: 1.875rem;
    }

    .meals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .brand-text h1 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .generate-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Recipe Display */
.view-recipe-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.view-recipe-btn:hover {
    background: var(--primary-green);
    color: white;
}

.recipe-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-orange);
    animation: fadeIn 0.4s ease-out;
}

.recipe-section h5 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.recipe-steps {
    padding-left: 1.5rem;
    color: var(--text-gray);
}

.recipe-steps li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.recipe-steps li::marker {
    color: var(--accent-orange);
    font-weight: 700;
}
/* Monetization Overlay */
.monetization-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none; /* Hidden by default, toggled by JS */
    justify-content: center;
    align-items: center;
    padding: 1rem;
    animation: fadeIn 0.5s ease-out;
}

.monetization-overlay.active {
    display: flex;
}

.monetization-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.5s ease-out;
}

.monetization-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.monetization-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.monetization-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.trial-badge {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--text-dark);
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 182, 39, 0.3);
}

.trial-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.email-form input {
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.email-form input:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.1);
}

.start-trial-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 135, 81, 0.25);
}

.start-trial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 135, 81, 0.35);
}

.secure-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 0 !important;
}

body.locked {
    overflow: hidden;
}
