/* ============================================
   KOKANDUS.CSS - Maitsete nurk stiilid
   ============================================ */

/* CSS Custom Properties (Variables) */
:root {
    /* Colors */
    --bg-primary: #fefdfb;
    --bg-secondary: #f8f6f3;
    --bg-glass: rgba(0, 0, 0, 0.02);
    --bg-glass-hover: rgba(0, 0, 0, 0.08);
    
    --text-primary: #2c2c2c;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;
    
    --accent-primary: #ff6b35;
    --accent-secondary: #ff8555;
    --accent-danger: #e63946;
    
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glass-hover: rgba(0, 0, 0, 0.15);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.8rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus {
    position: fixed;
    top: var(--spacing-md);
    left: var(--spacing-md);
    width: auto;
    height: auto;
    padding: var(--spacing-md);
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-md);
    z-index: 10000;
    text-decoration: none;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--bg-secondary);
    color: var(--accent-primary);
    padding: var(--spacing-md);
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 10000;
}

.skip-link:focus {
    top: var(--spacing-md);
    left: var(--spacing-md);
}

/* Focus Visible Styles */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--accent-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-links a.active {
    color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.1);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: var(--spacing-xs);
    margin-left: var(--spacing-md);
}

.lang-btn,
.lang-btn-mobile {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-btn:hover,
.lang-btn-mobile:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

.lang-btn.active,
.lang-btn-mobile.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.language-menu-mobile {
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
}

.welcome-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

/* ============================================
   RECIPES SECTION
   ============================================ */

.recipes {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.toolbar .search {
    flex: 1;
    display: flex;
    gap: var(--spacing-md);
    min-width: 300px;
}

.toolbar input[type="search"],
.toolbar select {
    padding: 0.7rem var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.toolbar input[type="search"] {
    flex: 1;
    min-width: 200px;
}

.toolbar input[type="search"]:focus,
.toolbar select:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.toolbar select {
    min-width: 180px;
    cursor: pointer;
}

/* Active Filters */
.active-filters {
    margin-bottom: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.recipe-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all var(--transition-fast);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-glass-hover);
    background: var(--bg-glass-hover);
}

.recipe-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    background: var(--bg-secondary);
}

.recipe-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.recipe-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.recipe-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
}

.recipe-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.chip {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Empty State */
.empty {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-modern {
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

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

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

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

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

/* ============================================
   ADMIN PANEL / MODAL
   ============================================ */

.admin-panel {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    z-index: 9999;
    animation: fadeIn var(--transition-normal);
}

.admin-panel[hidden] {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.admin-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.admin-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    padding: var(--spacing-xl);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    animation: slideUp var(--transition-normal);
}

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

.admin-box h2 {
    margin-bottom: var(--spacing-lg);
    font-size: 1.8rem;
}

/* Form Styles */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.form-group .required {
    color: var(--accent-danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.7rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

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

.form-group input[type="file"] {
    padding: 0.5rem;
    cursor: pointer;
}

.error-message {
    color: var(--accent-danger);
    font-size: 0.85rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--accent-danger);
}

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

/* Image Preview */
.image-preview {
    margin-top: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-glass);
}

.btn-remove-image {
    position: absolute;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
    background: var(--accent-danger);
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.btn-remove-image:hover {
    transform: scale(1.1);
}

/* Admin Actions */
.admin-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    margin-top: var(--spacing-md);
}

/* ============================================
   RECIPE DETAIL MODAL
   ============================================ */

.recipe-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    z-index: 10000;
    animation: fadeIn var(--transition-normal);
}

.recipe-modal[hidden] {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    animation: slideUp var(--transition-normal);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
}

.modal-close:hover {
    background: var(--accent-danger);
    transform: rotate(90deg);
}

.modal-print {
    position: absolute;
    top: var(--spacing-md);
    right: 60px;
    background: var(--accent-primary);
    border: none;
    color: var(--bg-primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
}

.modal-print:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.recipe-detail {
    padding: var(--spacing-2xl);
}

.recipe-detail-header {
    margin-bottom: var(--spacing-xl);
}

.recipe-detail-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recipe-detail-header .recipe-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.recipe-detail-meta {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 1rem;
}

.meta-item strong {
    color: var(--accent-primary);
}

.recipe-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.recipe-section {
    margin-bottom: var(--spacing-xl);
}

.recipe-section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.recipe-section ul,
.recipe-section ol {
    list-style-position: inside;
    padding-left: var(--spacing-md);
}

.recipe-section li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.8;
}

.recipe-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

/* Special sections styling */
.technology-section,
.tips-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.technology-section h3,
.tips-section h3 {
    color: var(--accent-secondary);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    color: var(--text-muted);
    margin-top: var(--spacing-2xl);
}

.footer p {
    font-size: 0.9rem;
}

/* ============================================
   GOOGLE TRANSLATE OVERRIDES
   ============================================ */

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
    position: static !important;
    margin-top: 0 !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

.translated-ltr {
    margin-top: 0 !important;
}

#google_translate_element {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    /* Hide non-printable elements */
    .navbar,
    .toolbar,
    .footer,
    .admin-panel,
    .modal-close,
    .modal-print,
    .modal-overlay {
        display: none !important;
    }
    
    /* Reset colors for printing */
    body {
        background: white !important;
        color: black !important;
    }
    
    .recipe-modal {
        position: static;
        background: white;
        padding: 0;
    }
    
    .modal-content {
        background: white;
        border: none;
        box-shadow: none;
        max-height: none;
        max-width: none;
    }
    
    .recipe-detail {
        padding: 20px;
    }
    
    .recipe-detail-header h2 {
        color: black !important;
        -webkit-text-fill-color: black !important;
        background: none !important;
    }
    
    .recipe-detail-header .recipe-intro,
    .recipe-section li,
    .recipe-section p,
    .meta-item {
        color: black !important;
    }
    
    .recipe-section h3 {
        color: #333 !important;
        border-bottom: 2px solid #333;
        padding-bottom: 5px;
    }
    
    .technology-section,
    .tips-section {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }
    
    .recipe-detail-image {
        max-height: 300px;
        page-break-inside: avoid;
    }
    
    .recipe-section {
        page-break-inside: avoid;
    }
    
    /* Ensure good page breaks */
    h2, h3 {
        page-break-after: avoid;
    }
    
    ul, ol {
        page-break-inside: avoid;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 11, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: 0;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        border-bottom: 1px solid var(--border-glass);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }
    
    /* Language Selector */
    #language-buttons {
        display: none;
    }
    
    .language-menu-mobile {
        display: block;
        width: 100%;
        padding: var(--spacing-md) 0;
        border-top: 1px solid var(--border-glass);
        margin-top: var(--spacing-md);
    }
    
    .mobile-lang-title {
        color: var(--text-muted);
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
        text-align: center;
    }
    
    .mobile-lang-buttons {
        display: flex;
        justify-content: center;
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }
    
    /* Hero Section */
    .hero-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    /* Toolbar */
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar .search {
        flex-direction: column;
        min-width: 100%;
    }
    
    .toolbar input[type="search"],
    .toolbar select {
        width: 100%;
    }
    
    /* Recipe Grid */
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Admin Panel */
    .admin-box {
        padding: var(--spacing-lg);
        max-height: 95vh;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-actions button {
        width: 100%;
    }
    
    /* Recipe Detail Modal */
    .recipe-detail {
        padding: var(--spacing-lg);
    }
    
    .recipe-detail-header h2 {
        font-size: 2rem;
    }
    
    .modal-print {
        top: auto;
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .recipe-detail-meta {
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .welcome-heading {
        font-size: 2rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .recipe-img {
        height: 180px;
    }
    
    .admin-box {
        padding: var(--spacing-md);
    }
    
    .recipe-detail {
        padding: var(--spacing-md);
    }
    
    .recipe-detail-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-print {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}/* ============================================
   KOKANDUS PRO - ADDITIONAL STYLES
   Add these to the end of kokandus.css
   ============================================ */

/* ============================================
   GOOGLE TRANSLATE FIXES (CRITICAL)
   ============================================ */
body {
    top: 0 !important;
    position: static !important;
    margin-top: 0 !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

.translated-ltr {
    margin-top: 0 !important;
}

#google_translate_element {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* Force dark theme */
body.dark-theme {
    background: #fefdfb !important;
    color: #2c2c2c !important;
}

.skiptranslate {
    display: none !important;
}

/* ============================================
   PERSONAL STORY SECTION
   ============================================ */
.story-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 4rem 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.story-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    text-align: left;
}

.story-text p {
    margin-bottom: 1.5rem;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-text strong {
    color: var(--accent-primary);
    font-weight: 700;
}

.story-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.story-link:hover {
    border-bottom-color: var(--accent-primary);
}

@media (max-width: 768px) {
    .story-section {
        padding: 2rem 0;
    }
    
    .story-title {
        font-size: 2rem;
    }
    
    .story-text {
        font-size: 1rem;
        text-align: left;
    }
}

/* ============================================
   RATING SYSTEM
   ============================================ */
.recipe-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.rating-stars {
    font-size: 1rem;
    letter-spacing: 2px;
}

.rating-stars.interactive {
    cursor: pointer;
}

.rating-stars.interactive .star {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.rating-stars.interactive .star:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.8));
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rating-stars-large {
    font-size: 1.5rem;
}

.already-rated {
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.rate-this {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.rate-this p {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ============================================
   CHEF'S CHOICE BADGE
   ============================================ */
.recipe-card.chef-choice {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

.chef-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.chef-badge-large {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    margin: 0.5rem 0;
}

/* ============================================
   VIDEO BADGE
   ============================================ */
.recipe-image-container {
    position: relative;
}

.video-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
}

/* ============================================
   DIFFICULTY COLORS
   ============================================ */
.meta-item[title="Raskusaste"] {
    font-weight: 600;
}

/* ============================================
   FEATURED RECIPE
   ============================================ */
.featured-recipe-section {
    margin: 3rem 0;
}

.featured-recipe-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, var(--bg-card) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.featured-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: center;
}

.featured-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.btn-featured {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-featured:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   RECIPE ACTIONS
   ============================================ */
.recipe-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-action {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-action:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-delete {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
}

.btn-delete:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
}

/* ============================================
   RECIPE DETAIL MODAL
   ============================================ */
.recipe-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.recipe-modal[hidden] {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: sticky;
    top: 1rem;
    right: 1rem;
    float: right;
    background: rgba(244, 67, 54, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: #f44336;
    transform: rotate(90deg);
}

.recipe-detail {
    padding: 2rem;
}

.recipe-detail-header {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.recipe-detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.recipe-rating-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.recipe-meta-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.meta-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.meta-icon {
    font-size: 1.5rem;
}

.meta-box strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-box p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.print {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.recipe-video {
    margin: 2rem 0;
}

.recipe-video h3 {
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   INGREDIENTS & STEPS
   ============================================ */
.recipe-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.ingredients-section,
.steps-section {
    background: var(--bg-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
}

.ingredients-section h3,
.steps-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.ingredients-list,
.steps-list {
    margin: 0;
    padding-left: 1.5rem;
}

.ingredients-list li,
.steps-list li {
    margin: 0.8rem 0;
    line-height: 1.6;
}

.ingredient-checkbox {
    cursor: pointer;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.ingredient-checkbox:hover {
    transform: scale(1.2);
}

/* ============================================
   TAGS
   ============================================ */
.recipe-tags-large {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
}

.tag-large {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--accent-primary);
}

/* ============================================
   FLOATING FOOD ICONS
   ============================================ */
.floating-food-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.food-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    animation: float-diagonal var(--duration, 15s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes float-diagonal {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translate(100vw, -100vh) rotate(360deg);
        opacity: 0;
    }
}

.food-icon:nth-child(1) { top: 20%; left: -50px; }
.food-icon:nth-child(2) { top: 40%; left: -50px; }
.food-icon:nth-child(3) { top: 60%; left: -50px; }
.food-icon:nth-child(4) { top: 80%; left: -50px; }
.food-icon:nth-child(5) { top: 30%; left: -50px; }
.food-icon:nth-child(6) { top: 70%; left: -50px; }

/* ============================================
   DIFFICULTY FILTER
   ============================================ */
.filter-select {
    padding: 0.7rem var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    min-width: 180px;
}

.filter-select:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

/* ============================================
   RESPONSIVE UPDATES
   ============================================ */
@media (max-width: 968px) {
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .featured-img {
        height: 250px;
    }
    
    .recipe-detail-header {
        grid-template-columns: 1fr;
    }
    
    .recipe-detail-img {
        height: 300px;
    }
    
    .recipe-detail-body {
        grid-template-columns: 1fr;
    }
    
    .recipe-meta-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1rem;
        max-height: 95vh;
    }
    
    .recipe-detail {
        padding: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
    }
    
    .recipe-meta-large {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-glass);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    grid-column: 1 / -1;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .toolbar,
    .quick-categories,
    .tips-section,
    .footer,
    .modal-close,
    .share-buttons,
    .recipe-actions {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .recipe-card,
    .modal-content {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* ============================================
   LIGHT THEME SPECIFIC OVERRIDES
   ============================================ */

/* Hero section with warm gradient */
.hero-cookbook {
    background: linear-gradient(135deg, #fff5eb 0%, #fef6e4 50%, #f8f6f3 100%);
}

.hero-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* Navbar light theme */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

/* Recipe cards with warm shadows */
.recipe-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

.recipe-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

/* Story section warm bg */
.story-section {
    background: linear-gradient(135deg, #fff5eb 0%, #fef6e4 100%);
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

/* Category cards */
.category-card {
    background: var(--bg-card);
    border: 2px solid var(--border-glass);
}

.category-card:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 107, 53, 0.05);
}

/* Tips cards */
.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
}

/* Featured recipe */
.featured-recipe-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, #ffffff 100%);
    border: 2px solid rgba(255, 107, 53, 0.2);
}

/* Modal */
.modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.modal-content,
.admin-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-xl);
}

/* Forms */
input,
select,
textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-primary);
    background: #fff;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
}

/* Buttons warmth */
.btn-primary,
.btn-featured,
.share-btn.print {
    background: var(--accent-primary);
    color: white;
}

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

/* Rating stars color */
.rating-stars {
    color: #ffb800;
}

/* Chef's choice badge stays gold */
.chef-badge,
.chef-badge-large {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b4513;
}

/* Difficulty colors - keep distinctive */
.meta-item[title="Raskusaste"] {
    font-weight: 600;
}

/* Ensure good contrast */
.recipe-meta .meta-item {
    color: var(--text-secondary);
}

/* Loading spinner */
.loading-spinner {
    border-color: rgba(255, 107, 53, 0.2);
    border-top-color: var(--accent-primary);
}

/* Better shadows for images */
.recipe-img,
.featured-img,
.recipe-detail-img {
    box-shadow: var(--shadow-md);
}

/* Warm hover effects */
.recipe-card:hover {
    transform: translateY(-4px);
}

.category-card:hover {
    transform: translateY(-2px);
}

/* Story text readability */
.story-text {
    color: var(--text-secondary);
}

.story-link {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* Print styles for light theme */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
}
/* ============================================
   ELEGANT PROFESSIONAL COOKBOOK THEME
   Minimalist, Michelin-level design
   ============================================ */

/* ============================================
   ELEGANT TYPOGRAPHY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

body {
    font-family: 'Montserrat', -apple-system, sans-serif;
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    letter-spacing: 1px;
}

/* ============================================
   ELEGANT HERO
   ============================================ */
.hero-elegant {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9f7f4 0%, #fefdfb 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 4rem 2rem;
}

.hero-content-elegant {
    text-align: center;
    max-width: 700px;
}

.hero-subtitle-small {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-title-elegant {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0;
    color: #2c2c2c;
    line-height: 1.1;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: #ff6b35;
    margin: 2rem auto;
}

.hero-description-elegant {
    font-size: 1.1rem;
    color: #5a5a5a;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 2rem 0;
}

.hero-stats-elegant {
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin-top: 3rem;
}

.stat-elegant {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.stat-label-elegant {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8a8a8a;
    font-weight: 500;
}

/* ============================================
   ELEGANT STORY SECTION
   ============================================ */
.story-elegant {
    padding: 6rem 2rem;
    background: #ffffff;
}

.container-elegant {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.story-content-elegant {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-title-elegant {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.story-divider-small {
    width: 50px;
    height: 1px;
    background: #ff6b35;
    margin: 0 auto 3rem;
}

.story-text-elegant {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #5a5a5a;
    text-align: left;
    font-weight: 300;
}

.story-text-elegant p {
    margin-bottom: 1.8rem;
}

.story-highlight {
    font-style: italic;
    color: #ff6b35;
    font-weight: 400;
}

.story-link-elegant {
    color: #ff6b35;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.story-link-elegant:hover {
    border-bottom-color: #ff6b35;
}

/* ============================================
   ELEGANT CATEGORIES
   ============================================ */
.categories-elegant {
    padding: 5rem 2rem;
    background: #f9f7f4;
}

.categories-grid-elegant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.category-elegant {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-elegant:hover,
.category-elegant.active {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.02);
}

.category-name-elegant {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.category-count-elegant {
    display: block;
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    color: #ff6b35;
    font-weight: 300;
}

/* ============================================
   ELEGANT RECIPES SECTION
   ============================================ */
.recipes-elegant {
    padding: 5rem 2rem;
    background: #ffffff;
}

.toolbar-elegant {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.search-elegant,
.select-elegant {
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.search-elegant {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.select-elegant {
    min-width: 150px;
}

.search-elegant:focus,
.select-elegant:focus {
    outline: none;
    border-color: #ff6b35;
}

.btn-elegant-primary {
    padding: 0.9rem 2rem;
    background: #ff6b35;
    color: #ffffff;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.btn-elegant-primary:hover {
    background: #ff8555;
}

.btn-elegant-secondary {
    padding: 0.9rem 2rem;
    background: transparent;
    color: #2c2c2c;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-elegant-secondary:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

/* ============================================
   ELEGANT RECIPE GRID
   ============================================ */
.recipes-grid-elegant {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.recipe-card-elegant {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.recipe-card-elegant:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: #ff6b35;
}

.recipe-img-elegant {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.recipe-content-elegant {
    padding: 2rem;
}

.recipe-title-elegant {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: #2c2c2c;
}

.recipe-intro-elegant {
    font-size: 0.9rem;
    color: #8a8a8a;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.recipe-meta-elegant {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #8a8a8a;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    flex-wrap: wrap;
}

.meta-item-elegant {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ============================================
   ELEGANT LOADING
   ============================================ */
.loading-elegant {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.spinner-elegant {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #ff6b35;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

/* ============================================
   ELEGANT MODAL
   ============================================ */
.modal-elegant {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-elegant[hidden] {
    display: none;
}

.modal-overlay-elegant {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-box-elegant {
    position: relative;
    background: #ffffff;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    z-index: 1;
}

.modal-large {
    max-width: 1000px;
}

.modal-close-elegant {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #8a8a8a;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.modal-close-elegant:hover {
    color: #ff6b35;
}

.modal-title-elegant {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #2c2c2c;
}

/* ============================================
   ELEGANT FORM
   ============================================ */
.form-elegant {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.form-group-elegant {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-elegant label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #5a5a5a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group-elegant small {
    font-size: 0.75rem;
    color: #8a8a8a;
    text-transform: none;
    font-weight: 400;
}

.form-group-elegant input,
.form-group-elegant select,
.form-group-elegant textarea {
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
}

.form-group-elegant input:focus,
.form-group-elegant select:focus,
.form-group-elegant textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.form-group-elegant textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-elegant {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.checkbox-elegant input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions-elegant {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

/* ============================================
   ELEGANT FOOTER
   ============================================ */
.footer-elegant {
    background: #f9f7f4;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-elegant p {
    font-size: 0.85rem;
    color: #8a8a8a;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title-elegant {
        font-size: 2.5rem;
    }
    
    .hero-stats-elegant {
        gap: 2rem;
    }
    
    .section-title-elegant {
        font-size: 2rem;
    }
    
    .categories-grid-elegant {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .toolbar-elegant {
        flex-direction: column;
    }
    
    .search-elegant,
    .select-elegant {
        width: 100%;
        max-width: none;
    }
    
    .recipes-grid-elegant {
        grid-template-columns: 1fr;
    }
    
    .modal-box-elegant {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions-elegant {
        flex-direction: column;
    }
    
    .btn-elegant-primary,
    .btn-elegant-secondary {
        width: 100%;
    }
}
/* ============================================
   RECIPE IMAGE & BADGE STYLES - FIX
   ============================================ */
.recipe-image-elegant {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.recipe-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #2c2c2c;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recipe-tags-elegant {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag-elegant {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* View Recipe Button */
.btn-view-elegant {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-view-elegant:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
/* ============================================
   MOBILE MENU FIX - Lisa seda oma main.css-i
   ============================================ */

/* Mobiilse menüü toggle nupp */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animatsioon avatud menüüle */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobiilne vaade */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--spacing-md);
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--glass-bg);
    color: var(--accent-green);
  }

  /* Desktop keelevalik peidetud mobiilis */
  #language-buttons {
    display: none;
  }

  /* Mobiilne keelevalik nähtav */
  .language-menu-mobile {
    display: block !important;
    width: 100%;
    padding: var(--spacing-md);
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
  }

  .mobile-lang-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
  }

  .mobile-lang-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .lang-btn-mobile {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .lang-btn-mobile:hover,
  .lang-btn-mobile.active {
    background: var(--accent-green);
    color: var(--bg-primary);
    border-color: var(--accent-green);
  }

  /* Hero section kohandus ilma pildita */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .cta-group {
    justify-content: center;
  }
}

/* Desktop vaade */
@media (min-width: 769px) {
  .language-menu-mobile {
    display: none;
  }
}

/* Body scroll lock kui menüü on avatud */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   HERO SECTION ILMA PILDITA
   ============================================ */

.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-text {
  max-width: 100%;
}

/* Eemaldame .hero-image ja .profile-container klassid */
.hero-image,
.profile-container,
.profile-ring,
.profile-photo {
  display: none !important;
}