/* ===========================================
   Cronica Gastronomiei Românești — Global Styles
   Theme: Retro Culinary Archive + Modern Food Photography
   Palette: Burgundy gradient + Verde mentă + Crem
   =========================================== */

:root {
    /* Color Palette */
    --burgundy-dark: #4A001F;
    --burgundy-light: #B71C1C;
    --mint-green: #00FF99;
    --cream: #FFF8E1;
    --gray-dark: #424242;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Typography */
    --font-title: 'Playfair Display', serif;
    --font-body: 'Noto Sans', sans-serif;
    --font-label: 'Courier Prime', monospace;
    
    /* Font Sizes */
    --text-xl: 44px;
    --text-lg: 32px;
    --text-md: 24px;
    --text-body: 18px;
    --text-caption: 14px;
    
    /* Line Height */
    --line-height: 1.65;
    
    /* Container Widths */
    --width-wide: 1400px;
    --width-medium: 1000px;
    --width-compact: 720px;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 96px;
}

/* ===========================================
   Reset & Base Styles
   =========================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--line-height);
    color: var(--gray-dark);
    background-color: var(--cream);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--burgundy-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--mint-green);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===========================================
   Typography
   =========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
    color: var(--burgundy-dark);
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: var(--text-xl);
}

h2 {
    font-size: var(--text-lg);
}

h3 {
    font-size: var(--text-md);
}

p {
    margin-bottom: var(--space-sm);
}

.label {
    font-family: var(--font-label);
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mint-green);
}

/* ===========================================
   Container Utilities
   =========================================== */

.container-jumbo {
    width: 100%;
    min-height: 100vh;
    padding: var(--space-lg) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-wide {
    max-width: var(--width-wide);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.container-medium {
    max-width: var(--width-medium);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.container-compact {
    max-width: var(--width-compact);
    margin: 0 auto;
    padding: var(--space-md);
}

/* ===========================================
   Header & Navigation
   =========================================== */

.site-header {
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy-light) 100%);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-content {
    max-width: var(--width-wide);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.site-logo {
    font-family: var(--font-title);
    font-size: var(--text-md);
    color: var(--cream);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.site-logo:hover {
    color: var(--mint-green);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 28px;
    cursor: pointer;
    padding: var(--space-xs);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--cream);
    font-weight: 500;
    font-size: 16px;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--mint-green);
}

/* Mobile Navigation */
@media (max-width: 968px) {
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: var(--space-sm);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav a {
        display: block;
        padding: var(--space-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ===========================================
   Hero Section
   =========================================== */

.hero-section {
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--cream);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 153, 0.03) 2px,
            rgba(0, 255, 153, 0.03) 4px
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--width-medium);
    padding: var(--space-lg) var(--space-md);
}

.hero-label {
    font-family: var(--font-label);
    font-size: var(--text-caption);
    color: var(--mint-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    color: var(--cream);
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--text-md);
    color: var(--cream);
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: var(--text-body);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--mint-green);
    color: var(--burgundy-dark);
    border: 2px solid var(--mint-green);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--mint-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 255, 153, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cream);
    border: 2px solid var(--cream);
}

.btn-secondary:hover {
    background-color: var(--cream);
    color: var(--burgundy-dark);
    transform: translateY(-2px);
}

/* ===========================================
   Grid Layouts
   =========================================== */

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

/* ===========================================
   Cards
   =========================================== */

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(74, 0, 31, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 0, 31, 0.2);
    border-color: var(--mint-green);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy-light));
}

.card-content {
    padding: var(--space-md);
}

.card-label {
    font-family: var(--font-label);
    font-size: 12px;
    color: var(--mint-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.card-title {
    font-size: var(--text-md);
    color: var(--burgundy-dark);
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--gray-dark);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.card-link {
    font-family: var(--font-label);
    color: var(--burgundy-light);
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.card-link:hover {
    color: var(--mint-green);
}

/* ===========================================
   Timeline
   =========================================== */

.timeline {
    position: relative;
    padding: var(--space-lg) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--burgundy-dark), var(--burgundy-light));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: var(--space-md);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(74, 0, 31, 0.1);
    border: 2px solid var(--mint-green);
}

.timeline-marker {
    width: 24px;
    height: 24px;
    background: var(--mint-green);
    border: 4px solid var(--burgundy-dark);
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 2;
}

.timeline-date {
    font-family: var(--font-label);
    font-size: var(--text-caption);
    color: var(--mint-green);
    margin-bottom: var(--space-xs);
}

/* Mobile Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 50px;
    }
    
    .timeline-marker {
        position: absolute;
        left: 12px;
    }
}

/* ===========================================
   Modal
   =========================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    padding: var(--space-md);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    max-width: 800px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--burgundy-dark);
    color: var(--cream);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--mint-green);
    color: var(--burgundy-dark);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--space-lg) var(--space-md);
}

/* ===========================================
   Forms
   =========================================== */

.form-section {
    background: var(--white);
    padding: var(--space-lg) var(--space-md);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(74, 0, 31, 0.1);
    border: 2px solid var(--mint-green);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--burgundy-dark);
    margin-bottom: var(--space-xs);
    font-size: 16px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--cream);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--mint-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 153, 0.1);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
}

.form-checkbox input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.form-submit {
    background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy-light));
    color: var(--cream);
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: var(--text-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(74, 0, 31, 0.3);
}

/* ===========================================
   Footer
   =========================================== */

.site-footer {
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy-light) 100%);
    color: var(--cream);
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.footer-content {
    max-width: var(--width-wide);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h3 {
    color: var(--mint-green);
    font-size: var(--text-md);
    margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
    color: var(--cream);
    font-size: 16px;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--mint-green);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-md);
    text-align: center;
    font-size: var(--text-caption);
    opacity: 0.8;
}

/* ===========================================
   Utilities
   =========================================== */

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

.mt-lg {
    margin-top: var(--space-lg);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-label {
    font-family: var(--font-label);
    font-size: var(--text-caption);
    color: var(--mint-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    display: block;
    margin-bottom: var(--space-xs);
}

/* ===========================================
   Responsive Design
   =========================================== */

@media (max-width: 768px) {
    :root {
        --text-xl: 36px;
        --text-lg: 28px;
        --text-md: 22px;
        --text-body: 16px;
    }
    
    .container-jumbo,
    .container-wide,
    .container-medium,
    .container-compact {
        padding: var(--space-md) var(--space-sm);
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2col,
    .grid-3col {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   Accessibility
   =========================================== */

.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;
}

:focus-visible {
    outline: 3px solid var(--mint-green);
    outline-offset: 2px;
}

/* ===========================================
   Print Styles
   =========================================== */

@media print {
    .site-header,
    .site-footer,
    .nav-toggle,
    .btn,
    .form-section {
        display: none;
    }
}
