/* --- THEME SYSTEM --- */
:root {
    /* Helpers */
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;

    /* DARK MODE (Default) */
    --bg-body: #050507;
    --text-main: #ffffff;
    --text-muted: #9ca3af;

    --bg-card: rgba(30, 30, 35, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);

    --month-card-bg: rgba(255, 255, 255, 0.03);
    --month-card-border: rgba(255, 255, 255, 0.08);
    --month-header-border: rgba(255, 255, 255, 0.05);
    --month-number: rgba(255, 255, 255, 0.03);

    --blob-opacity: 0.15;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.2);

    /* Reset global gradient that causes white background in dark mode */
    --bg-gradient: none !important;
}

/* LIGHT MODE OVERRIDES */
[data-theme="light"] {
    --bg-body: #f1f5f9;
    /* Slate 100 */
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #475569;
    /* Slate 600 */

    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: rgba(15, 23, 42, 0.12);

    --month-card-bg: rgba(255, 255, 255, 0.98);
    --month-card-border: rgba(15, 23, 42, 0.08);
    --month-header-border: rgba(15, 23, 42, 0.1);
    --month-number: rgba(59, 130, 246, 0.08);

    --blob-opacity: 0.06;
    /* Subtler blobs on light */
    --primary-glow: rgba(59, 130, 246, 0.25);
    --shadow-card: 0 4px 20px -4px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Global reset removed to prevent conflicts with style.min.css */
*,
:after,
:before {
    box-sizing: border-box;
}

/* Body specific to Zile Libere */
body {
    background-color: var(--bg-body) !important;
    background-image: none !important;
    background: var(--bg-body) !important;
}

/* High specificity forced reset for dark mode */
html[data-theme="dark"],
html[data-theme="dark"] body {
    background: #050507 !important;
    background-color: #050507 !important;
    background-image: none !important;
    --bg-gradient: none !important;
}

[data-theme="light"] body {
    background-image: radial-gradient(circle at 0% 0%, rgb(248, 249, 250), rgb(233, 236, 239));
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
}

/* Toggle Button styles moved to global style.css */
/* .header-actions { ... } */
/* .theme-toggle { ... } */

/* Background Glows */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    opacity: var(--blob-opacity);
    filter: blur(80px);
    animation: floatBlob 20s infinite alternate ease-in-out;
    transition: opacity 0.5s ease;
}

.blob-1 {
    top: -200px;
    left: -100px;
}

.blob-2 {
    bottom: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation styles moved to global style.css */
/* 
nav { ... }
.logo { ... }
.logo span { ... }
.nav-links { ... }
.nav-link { ... }
*/

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Stats Cards - Modern Grid */
.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-color: rgba(15, 23, 42, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(150, 150, 150, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color, var(--primary));
    opacity: 0.8;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1;
}

[data-theme="light"] .stat-value {
    color: #1e293b;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-icon {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 32px;
    opacity: 0.2;
    color: var(--text-main);
}

.card-green {
    --card-color: var(--accent-green);
}

.card-blue {
    --card-color: var(--primary);
}

.card-purple {
    --card-color: var(--accent-purple);
}

/* Filter Tabs */
.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(100, 100, 100, 0.1);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--text-main);
    color: var(--bg-body);
    border-color: var(--text-main);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Calendar Grid Premium Layout - COMPACT 3-COLUMN */
.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    /* Allows 3 columns on desktop */
    gap: 24px;
    margin-bottom: 100px;
    justify-content: center;
}

.month-card-new {
    background: var(--month-card-bg) !important;
    border: 1px solid var(--month-card-border) !important;
    border-radius: 20px;
    padding: 24px;
    /* Slightly more compact */
    height: 100%;
    /* Equal height in row if used with align-items stretch */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.month-card-new:hover {
    transform: translateY(-4px);
    border-color: var(--primary) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.month-card-new::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0.4;
}

.month-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--month-header-border);
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: -0.5px;
}

[data-theme="light"] .month-title {
    color: #0f172a;
}

.month-title span {
    font-size: 48px;
    font-weight: 900;
    color: var(--month-number);
    font-family: 'Outfit', sans-serif;
    position: absolute;
    right: 24px;
    top: 16px;
    pointer-events: none;
}

[data-theme="light"] .month-title span {
    color: rgba(59, 130, 246, 0.12);
}

.holiday-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: all 0.2s;
    cursor: default;
    align-items: center;
}

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

.holiday-item:hover {
    padding-left: 8px;
}

.h-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border-radius: 12px;
    width: 64px;
    height: 64px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.d-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

[data-theme="light"] .d-num {
    color: #1e293b;
}

.d-day {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

.h-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.h-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--text-main);
}

[data-theme="light"] .h-name {
    color: #0f172a;
}

.h-type {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
}

.tag-legal {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.tag-national {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.tag-religious {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Dark Theme Specific Adjustments for tags */
[data-theme="light"] .tag-legal {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .tag-national {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .tag-religious {
    background: rgba(59, 130, 246, 0.2);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}


/* Vacation Tips Section */
.tips-section {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 60px;
    border: 1px solid var(--border-color);
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

.tips-intro {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.tips-intro h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.tips-intro p {
    font-size: 18px;
    color: var(--text-muted);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 2;
}

.tip-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
}

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

.tip-icon {
    font-size: 28px;
    background: var(--bg-glass);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.tip-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .tip-badge {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.tip-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.tip-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.tip-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--accent-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="light"] .tip-footer {
    color: #059669;
}


/* Strategy Cards Specifics */
.strategy-section-bg {
    /* Strategy has its own subtle background or uses standard card bg */
    background: var(--bg-card);
}

.strategy-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.strategy-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.strategy-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-card);
}

.s-header {
    background: var(--bg-glass);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.s-month {
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.s-month::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-orange);
}

.s-gain {
    background: var(--bg-glass);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
}

.s-body {
    padding: 24px;
}

.s-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.s-row:last-of-type {
    border-bottom: none;
}

.s-label {
    color: var(--text-muted);
}

.s-value {
    font-weight: 600;
    color: var(--text-main);
}

.s-value.highlight-red {
    color: #f87171;
}

.s-value.highlight-green {
    color: #34d399;
}

[data-theme="light"] .s-value.highlight-red {
    color: #dc2626;
}

[data-theme="light"] .s-value.highlight-green {
    color: #059669;
}

.s-dates {
    background: rgba(59, 130, 246, 0.1);
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--primary);
    margin-top: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-align: center;
}

.s-dates strong {
    color: var(--text-main);
    display: block;
    margin-top: 4px;
    font-size: 16px;
}

.s-detail {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    opacity: 0.9;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 100px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.faq-q {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.faq-a {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
/* Footer styles moved to global style.css */
/* footer { ... } */

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .stats-wrapper {
        grid-template-columns: 1fr;
    }

    .months-grid {
        grid-template-columns: 1fr;
    }


    .tips-section {
        padding: 32px;
    }
}