/* ==========================================================================
   HEIRLOOM AI - MODERN STYLING & DESIGN SYSTEM
   Design: Velvet Dark / Warm Gold & Emerald Accents + Glassmorphism
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-primary: #0b0f19;
    --bg-secondary: #131b2e;
    --bg-card: rgba(26, 36, 56, 0.75);
    --bg-card-hover: rgba(35, 48, 74, 0.85);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(217, 119, 6, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-gold: #f59e0b;
    --accent-gold-dark: #d97706;
    --accent-gold-glow: rgba(245, 158, 11, 0.25);
    
    --accent-emerald: #10b981;
    --accent-emerald-dark: #059669;
    --accent-emerald-glow: rgba(16, 185, 129, 0.2);
    
    --accent-indigo: #6366f1;
    --accent-danger: #ef4444;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Effects */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.15);
    --backdrop-blur: blur(16px);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(241, 245, 249, 0.95);
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(217, 119, 6, 0.4);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.12);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

/* Global Top Banner */
.top-banner {
    background: linear-gradient(90deg, #b45309, #d97706, #059669);
    color: #ffffff;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

.banner-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.banner-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.banner-close:hover {
    opacity: 1;
}

/* Header */
.main-header {
    background-color: rgba(19, 27, 46, 0.85);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 24px;
}

body.light-theme .main-header {
    background-color: rgba(255, 255, 255, 0.85);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-title .highlight {
    color: var(--accent-gold);
}

.logo-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.engine-selector-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 4px 14px;
    gap: 8px;
}

.engine-icon {
    color: var(--accent-emerald);
}

.engine-select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.model-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-pill);
    color: var(--accent-emerald);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

/* App Container */
.app-container {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 20px 60px 20px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 28px;
}

.hero-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(19, 27, 46, 0.95));
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

body.light-theme .hero-card {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-card:hover .hero-img {
    transform: scale(1.03);
}

.hero-floating-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--accent-emerald);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 28px;
    overflow-x: auto;
}

.nav-tab {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

.nav-tab.active {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: #ffffff;
    box-shadow: 0 4px 14px var(--accent-gold-glow);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn var(--transition-normal);
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Layout Grids */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--accent-gold);
}

.hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Audio Recorder Visualizer */
.recorder-wrapper {
    margin-bottom: 20px;
}

.visualizer-container {
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    position: relative;
    margin-bottom: 16px;
}

#audioVisualizer {
    width: 100%;
    height: 80px;
    display: block;
}

.timer-display {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: 6px;
}

.recorder-actions {
    display: flex;
    gap: 12px;
}

.btn-record {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    flex: 1;
}

.btn-record.recording {
    animation: pulseRed 1.2s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.divider {
    text-align: center;
    margin: 18px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    background: var(--bg-primary);
    padding: 0 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.05);
}

.drop-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.file-input {
    display: none;
}

.file-browse-link {
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-decoration: underline;
}

.file-info {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--accent-emerald);
    font-weight: 600;
}

/* Forms & Textareas */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-control, .search-input, .filter-select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-control:focus, .search-input:focus, .filter-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-range {
    width: 100%;
    accent-color: var(--accent-gold);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Buttons & Badges */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-gold-glow);
}

.btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-emerald-dark));
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-emerald-glow);
}

.btn-success {
    background: var(--accent-emerald);
    color: white;
}

.btn-danger {
    background: var(--accent-danger);
    color: white;
}

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

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 0.82rem;
    cursor: pointer;
    font-weight: 600;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-accent {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-count {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    padding: 0;
    justify-content: center;
}

/* Allergy Checkbox Pills */
.allergy-quick-check {
    margin: 16px 0;
}

.checkbox-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.checkbox-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkbox-pill:has(input:checked) {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

/* AI Processing State */
.ai-processing-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--accent-gold);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(245, 158, 11, 0.2);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

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

.processing-info h4 {
    font-size: 0.95rem;
    color: var(--accent-gold);
}

.processing-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Recipe Output Preview */
.recipe-preview-box {
    margin-top: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-emerald);
    border-radius: var(--radius-md);
    padding: 18px;
    animation: fadeIn 0.4s ease;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.latency-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.preview-story {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 8px 0 14px 0;
}

.preview-details {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

/* TAB 2: RECIPE VAULT GRID */
.vault-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

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

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    padding-left: 40px;
}

.filter-wrapper {
    display: flex;
    gap: 12px;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.recipe-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.recipe-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
}

.recipe-card-header {
    margin-bottom: 12px;
}

.recipe-tag-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.recipe-card h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.recipe-card .memory-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-left: 3px solid var(--accent-gold);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.recipe-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.ingredient-summary {
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.ingredient-summary strong {
    color: var(--text-primary);
}

.recipe-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.safety-badge {
    font-size: 0.75rem;
    font-weight: 700;
}

.safety-badge.safe {
    color: var(--accent-emerald);
}

.safety-badge.warning {
    color: var(--accent-danger);
}

/* TAB 3: ALLERGY SHIELD */
.allergy-tags-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.tag-checkbox {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-checkbox:has(input:checked) {
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
}

.safety-report {
    margin-top: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.safety-report.has-warnings {
    border-color: var(--accent-danger);
}

.safety-report.all-clear {
    border-color: var(--accent-emerald);
}

.report-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

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

.report-item .substitute {
    color: var(--accent-emerald);
    font-weight: 600;

}

/* TAB 4: CHAT PRACTICE PARTNER */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.partner-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-indigo), #4338ca);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    line-height: 1.5;
}

.chat-bubble.bot {
    align-self: flex-start;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top-left-radius: 4px;
}

.chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: white;
    border-top-right-radius: 4px;
}

.bubble-sender {
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.8;
}

.chat-input-bar {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
}

.voice-input-btn.active {
    background: var(--accent-danger);
    color: white;
    animation: pulseRed 1s infinite;
}

/* TAB 5: SHOWCASE */
.showcase-hero h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.showcase-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.card-icon {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.showcase-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.showcase-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tech-list {
    margin-top: 12px;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tech-list li {
    margin-bottom: 8px;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-card.modal-lg {
    max-width: 800px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 0.95rem;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.quote-box {
    margin-top: 16px;
    padding: 14px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--accent-gold);
    border-radius: var(--radius-sm);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-emerald);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Utility Hidden */
.hidden {
    display: none !important;
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .top-banner, .main-header, .tabs-nav, .hero-section, .tab-content, .modal-backdrop, .toast-container {
        display: none !important;
    }
    .printable-cookbook {
        display: block !important;
        padding: 40px;
    }
    .print-recipe {
        page-break-after: always;
        margin-bottom: 40px;
    }
    .print-recipe h1 {
        font-size: 24pt;
        margin-bottom: 8pt;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: 1fr;
    }
    .grid-2col {
        grid-template-columns: 1fr;
    }
}
