:root {
    --bg-color: #050a05;
    /* Deep dark green-black */
    --text-color: #e0e0e0;
    --accent-color: rgb(124, 186, 108);
    /* Primary Logo Green */
    --accent-glow: rgba(124, 186, 108, 0.3);
    --secondary-accent: rgb(188, 214, 178);
    /* Light Logo Green */
    --glass-bg: rgba(20, 40, 20, 0.4);
    /* Greenish tint */
    --glass-border: rgba(124, 186, 108, 0.2);
    --card-bg: #0a140a;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.background-glob {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(30, 30, 40, 0.5) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.cta-button {
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: var(--accent-color) !important;
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--bg-color) !important;
    box-shadow: 0 0 15px var(--accent-glow);
}

.tools-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    margin-top: 1rem;
    text-align: center;
}

.tools-list {
    list-style: none;
    display: inline-flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.tools-list a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.tools-list a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0) 0%, var(--bg-color) 100%);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent-color);
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.primary-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--accent-glow);
}

/* Menu Section */
.menu-section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto;
}

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

.recipe-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

/* Recipe Detail Page */
.recipe-detail-container {
    padding-top: 120px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.recipe-hero {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 40px;
}

.recipe-hero-image {
    height: 400px;
    width: 100%;
    background-color: var(--light-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-hero-content {
    padding: 40px;
    text-align: center;
}

.recipe-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.recipe-hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.recipe-grid-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.recipe-ingredients,
.recipe-instructions,
.recipe-nutrition-box {
    padding: 30px;
}

.recipe-ingredients h2,
.recipe-instructions h2,
.recipe-nutrition-box h2 {
    margin-bottom: 20px;
    color: var(--dark-green);
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 10px;
    display: inline-block;
}

.recipe-ingredients ul {
    list-style: none;
}

.recipe-ingredients li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.recipe-instructions li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.recipe-nutrition-box {
    grid-column: 1 / -1;
}

.nutrition-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    list-style: none;
}

.nutrition-list li {
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--light-green);
}

.recipe-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 992px) {
    .recipe-grid-details {
        grid-template-columns: 1fr;
    }
}

.card-image {
    height: 200px;
    background: var(--light-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card-content p {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.ingredients {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading & Error */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-content p {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .glass-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================
   Recipe Writer / AI Chat Input Styles
   ========================================== */

.recipe-writer-workspace {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.recipe-writer-hero {
    text-align: center;
    margin-bottom: 0.5rem;
    margin-top: 120px;
}

.recipe-writer-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(124, 186, 108, 0.15));
}

.recipe-writer-hero p {
    color: #aaa;
    font-size: 1.1rem;
}

/* Prompt Suggestions Grid */
.prompt-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-bottom: 0.5rem;
}

.suggestion-card {
    background: rgba(20, 40, 20, 0.25);
    border: 1px solid rgba(124, 186, 108, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.suggestion-card:hover {
    background: rgba(124, 186, 108, 0.08);
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(124, 186, 108, 0.1);
}

.suggestion-card .icon {
    font-size: 1.5rem;
}

.suggestion-card h4 {
    color: var(--secondary-accent);
    font-weight: 600;
    font-size: 1rem;
}

.suggestion-card p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.4;
    transition: color 0.3s;
}

.suggestion-card:hover p {
    color: #ccc;
}

/* Chat Input Container styling */
.chat-input-wrapper {
    background: rgba(10, 20, 10, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
}

.chat-input-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(124, 186, 108, 0.25);
}

.chat-input-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

#recipe-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.5;
    resize: none;
    max-height: 200px;
    min-height: 44px;
    padding: 8px 0;
}

#recipe-input::placeholder {
    color: #666;
}

/* Glowing send button */
#generate-recipe-btn {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    outline: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(124, 186, 108, 0.4);
}

#generate-recipe-btn:hover {
    background: var(--secondary-accent);
    transform: scale(1.08);
    box-shadow: 0 0 15px var(--accent-color);
}

#generate-recipe-btn:disabled {
    background: #223a22;
    color: #445a44;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.chat-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.6rem;
}

.chat-info-tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #888;
}

.chat-info-tag svg {
    color: var(--accent-color);
}

/* Skeleton Loading Animation */
.recipe-skeleton {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skeleton-shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(124, 186, 108, 0.08) 37%,
            rgba(255, 255, 255, 0.03) 63%);
    background-size: 400% 100%;
    animation: skeleton-load 1.4s ease infinite;
    border-radius: 4px;
}

@keyframes skeleton-load {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.skeleton-title {
    height: 38px;
    width: 60%;
}

.skeleton-desc {
    height: 18px;
    width: 90%;
    margin-top: -1rem;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
    }
}

.skeleton-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-heading {
    height: 24px;
    width: 40%;
    margin-bottom: 0.5rem;
}

.skeleton-line {
    height: 16px;
    width: 100%;
}

.skeleton-line.short {
    width: 80%;
}

.skeleton-progress {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #666;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.progress-step.active {
    color: var(--secondary-accent);
}

.progress-step.completed {
    color: var(--accent-color);
}

.progress-step .step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    transition: all 0.3s;
}

.progress-step.active .step-dot {
    background: var(--secondary-accent);
    box-shadow: 0 0 8px var(--accent-color);
    transform: scale(1.3);
}

.progress-step.completed .step-dot {
    background: var(--accent-color);
}

/* Beautiful Recipe Output Card */
.recipe-card-output {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 0.5s ease-out forwards;
}

.recipe-output-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .recipe-output-header {
        flex-direction: column;
        align-items: stretch;
    }
}

.recipe-output-title-section {
    flex-grow: 1;
}

.recipe-output-title-section h2 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.recipe-output-actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.action-btn:hover {
    background: rgba(124, 186, 108, 0.15);
    border-color: var(--accent-color);
    color: #fff;
}

.action-btn.primary {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.action-btn.primary:hover {
    background: var(--secondary-accent);
}

.recipe-output-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .recipe-output-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.recipe-output-ingredients,
.recipe-output-instructions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.recipe-output-ingredients h3,
.recipe-output-instructions h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--secondary-accent);
    border-bottom: 1px solid rgba(124, 186, 108, 0.2);
    padding-bottom: 0.5rem;
}

.ingredients-list-styled {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ingredients-list-styled li {
    position: relative;
    padding-left: 1.8rem;
    line-height: 1.5;
}

.ingredients-list-styled li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-weight: bold;
}

.instructions-list-styled {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.instructions-list-styled li {
    position: relative;
    padding-left: 2.5rem;
    line-height: 1.6;
}

.instructions-list-styled li .step-num {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: rgba(124, 186, 108, 0.15);
    border: 1px solid rgba(124, 186, 108, 0.3);
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-output-media {
    border-radius: 12px;
    overflow: hidden;
    max-height: 320px;
    border: 1px solid var(--glass-border);
}

.recipe-output-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(10, 30, 10, 0.95);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(124, 186, 108, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 9999;
    animation: slideIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}