:root {
    --bg-dark: #0a0c0f;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-orange: #ff6b00;
    --accent-orange-glow: rgba(255, 107, 0, 0.3);
    --text-primary: #f0f2f5;
    --text-secondary: #a0a8b4;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background-image: url('culinary_background_premium.png');
    /* Fallback if image generation fails or for dev */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 12, 15, 0.7) 0%, rgba(10, 12, 15, 0.95) 100%);
    z-index: -1;
}

.app-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.glass-header {
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo .icon {
    font-size: 2.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.accent {
    color: var(--accent-orange);
    text-shadow: 0 0 15px var(--accent-orange-glow);
}

header p {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 1.1rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

input[type="url"],
input[type="number"],
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.2rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition-smooth);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px var(--accent-orange-glow);
}

/* Instructions */
.instructions-card {
    padding: 2rem 2.5rem;
}

.instructions-card h2 {
    font-size: 1.4rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    font-weight: 600;
}

.instructions-list {
    list-style: none;
    counter-reset: my-awesome-counter;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instructions-list li {
    position: relative;
    padding-left: 2.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.instructions-list li::before {
    counter-increment: my-awesome-counter;
    content: counter(my-awesome-counter);
    position: absolute;
    left: 0;
    top: -2px;
    width: 24px;
    height: 24px;
    background: rgba(255, 107, 0, 0.2);
    color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid var(--accent-orange);
}

.instructions-list li:last-child::before {
    content: '🎯';
    background: transparent;
    border: none;
    font-size: 1.2rem;
    left: -2px;
}

.instructions-list strong {
    color: #fff;
    font-weight: 600;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--glass-bg);
    color: var(--accent-orange);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

.primary-btn {
    width: 100%;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
    filter: brightness(1.1);
}

.primary-btn:active {
    transform: translateY(0);
}

.result-card {
    margin-top: 1rem;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

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

.result-card h2 {
    font-size: 1.3rem;
    color: var(--accent-orange);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.prompt-display-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#promptOutput {
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e6ed;
}

.glass-footer {
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

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

.ai-link-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.ai-link-btn.gemini {
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
}

.ai-link-btn.claude {
    background: rgba(217, 119, 87, 0.1);
    color: #d97757;
}

.ai-link-btn.chatgpt {
    background: rgba(16, 163, 127, 0.1);
    color: #10a37f;
}

.ai-link-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.hidden {
    display: none;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    background: var(--accent-orange);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: var(--transition-smooth);
}

@media (max-width: 600px) {
    .app-container {
        padding: 1rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}