/* 
 * Data e Hora - Modern Stylesheet v2.0
 * Responsive design with CSS custom properties for theming
 */

/* ===================================
   COLOR PALETTE & THEME SYSTEM
   =================================== */

:root {
    color-scheme: light dark;
    /* Color Palette - Light Mode */
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Borders */
    --hr-color: rgba(148, 163, 184, 0.12);
    --border-radius: 16px;
    
    /* Feriados specific colors */
    --color-feriados: #3b82f6;
    --color-feriadoes: #4338ca;
    --color-prolongado: #10b981;
    --color-emenda: #f59e0b;
    --y2026: #3b82f6;
    --y2027: #4338ca;
    --y2028: #0891b2;
    --next-bg: #3b82f6;
    --holiday-color: #ef4444;
    
    /* Settings */
    --settings-switch-bg: #e2e8f0;
    --settings-slider: #ffffff;
    --settings-border: rgba(148, 163, 184, 0.2);
}

/* Prevent transitions during initial page load to avoid flickering */
.no-transition * {
    transition: none !important;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --hr-color: rgba(248, 250, 252, 0.15);
    
    /* Dark mode feriados colors */
    --y2026: #60a5fa;
    --y2027: #818cf8;
    --y2028: #22d3ee;
    --next-bg: #1d4ed8;
    
    /* Dark mode settings */
    --settings-switch-bg: #334155;
    --settings-slider: #475569;
    --settings-border: rgba(255, 255, 255, 0.12);
}

/* ===================================
   BASE RESET & TYPOGRAPHY
   =================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-body);
    color: var(--text-main);
    padding: 0 20px 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Scale */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
}
h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
}
h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
}
p {
    max-width: 65ch;
    line-height: 1.7;
}

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

.top-nav {
    width: 100%;
    max-width: 1200px;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -1.5px;
    transition: all 0.3s ease;
    position: relative;
}

.logo-text:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

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

.hero {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 30px;
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

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

.label-topo {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 800;
    display: block;
}

.hero .label-topo {
    font-size: 0.875rem;
}

#clock {
    font-size: clamp(3.8rem, 20vw, 13rem);
    font-weight: 900;
    letter-spacing: -6px;
    line-height: 0.85;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#date {
    font-size: clamp(1rem, 4vw, 2rem);
    margin-top: 25px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: capitalize;
}

.btn-fullscreen {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--hr-color);
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.btn-fullscreen:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--bg-card);
}

/* ===================================
   DIVIDER
   =================================== */

hr.discreet {
    border: 0;
    height: 1px;
    background: var(--hr-color);
    width: 100%;
    max-width: 600px;
    margin: 45px 0;
}

/* ===================================
   HOLIDAY SECTION
   =================================== */

.holiday-section {
    text-align: center;
    max-width: 700px;
    color: var(--text-main);
    font-size: clamp(1rem, 3.5vw, 1.35rem);
    line-height: 1.5;
    font-weight: 500;
}

.holiday-section strong {
    color: var(--accent);
    font-weight: 800;
}

.holiday-today {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.06) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 22px 32px;
    font-size: clamp(1.1rem, 4vw, 1.55rem);
    font-weight: 600;
    box-shadow: 0 4px 18px -4px rgba(59, 130, 246, 0.18);
}

[data-theme="dark"] .holiday-today {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12) 0%, rgba(99, 102, 241, 0.07) 100%);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 4px 18px -4px rgba(96, 165, 250, 0.2);
}

.upcoming-holidays-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 600px;
}

.upcoming-holiday-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--hr-color);
    font-size: clamp(0.88rem, 2.8vw, 1.05rem);
    text-align: left;
}

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

.upcoming-holiday-name strong {
    color: var(--accent);
    font-weight: 700;
}

.upcoming-holiday-date {
    color: var(--text-muted);
    font-size: 0.9em;
    white-space: nowrap;
    text-align: right;
}

.upcoming-holiday-days {
    color: var(--text-muted);
    font-size: 0.85em;
    white-space: nowrap;
    text-align: right;
    min-width: 55px;
}

@media (max-width: 480px) {
    .upcoming-holiday-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .upcoming-holiday-date {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
    }
    .upcoming-holiday-days {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
    }
}

/* ===================================
   MENU GRID
   =================================== */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.menu-item {
    background: var(--bg-card);
    border: 1px solid var(--hr-color);
    padding: 35px 25px;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.menu-item span {
    font-weight: 800;
    font-size: 1.2rem;
}

.menu-item small {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
}

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

.breadcrumb,
.nav-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0 30px 0;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--hr-color);
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-link,
.nav-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

.breadcrumb-link:hover,
.nav-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.breadcrumb-separator,
.nav-sep {
    color: var(--text-muted);
    user-select: none;
    font-weight: 700;
}

.breadcrumb-current,
.nav-current {
    color: var(--text-main);
    font-weight: 700;
}

/* ===================================
   REUSABLE COMPONENTS
   =================================== */

/* Buttons */
.btn,
.btn-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: 2px solid transparent;
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 2px solid var(--hr-color);
}

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

.btn-settings {
    padding: 14px 30px;
    border-radius: 50px;
    color: var(--text-muted);
    background: transparent;
    border: 1.5px solid var(--hr-color);
    font-size: 0.9rem;
}

.btn-settings:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-settings:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--hr-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success,
.prolongado {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-warning,
.emenda {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
}

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

footer {
    margin-top: 80px;
    padding: 60px 20px 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    width: 100%;
    border-top: 1px solid var(--hr-color);
    background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
}

footer p {
    margin: 8px 0;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ===================================
   CONTAINER
   =================================== */

.container {
    width: 100%;
    max-width: 750px;
    animation: fadeIn 0.4s ease-out;
    margin: 0 auto;
}

.header {
    margin-bottom: 55px;
    text-align: left;
}

.header h1 {
    margin: 0;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-top: 12px;
    font-weight: 500;
    max-width: 550px;
    line-height: 1.5;
}

/* ===================================
   SETTINGS PAGE
   =================================== */

.settings-container {
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.4s ease-out;
    margin-bottom: 40px;
}

.settings-header {
    margin-bottom: 40px;
}

.settings-header h1 {
    font-size: 2.4rem;
    margin: 0;
    letter-spacing: -1.8px;
    font-weight: 900;
}

.settings-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 5px;
    font-weight: 500;
}

.settings-section {
    background: var(--bg-card);
    padding: clamp(25px, 5vw, 40px);
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--hr-color);
    margin-bottom: 30px;
}

.settings-section h2 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.setting-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Quad Switch */
.quad-switch {
    position: relative;
    display: flex;
    background: var(--settings-switch-bg);
    border-radius: 16px;
    padding: 5px;
    height: 52px;
    user-select: none;
    border: 1px solid var(--settings-border);
}

.quad-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.quad-switch label {
    flex: 1;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    transition: color 0.3s;
    text-transform: uppercase;
}

.quad-switch input:checked + label {
    color: var(--text-main);
}

.quad-switch input:focus-visible + label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(25% - 7.5px);
    height: calc(100% - 10px);
    background: var(--settings-slider);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 1;
}

#default:checked ~ .slider { transform: translateX(0); }
#auto:checked ~ .slider { transform: translateX(100%); }
#light:checked ~ .slider { transform: translateX(200%); }
#dark:checked ~ .slider { transform: translateX(300%); }

.contact-text {
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 500;
}

/* Theme descriptions */
.theme-descriptions {
    margin-top: 12px;
}

.theme-desc {
    display: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--hr-color);
}

.theme-desc.active {
    display: block;
}

.theme-desc strong {
    color: var(--text-main);
}

.email-link {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 16px 32px;
    background: var(--accent);
    border-radius: 18px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.email-link:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   FERIADOS PAGES
   =================================== */

.hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.hub-card {
    background: var(--bg-card);
    border: 2px solid var(--hr-color);
    border-radius: 32px;
    padding: 40px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.hub-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--card-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    line-height: 1;
}

.card-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -1.2px;
    transition: color 0.3s;
    line-height: 1.1;
}

.card-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
}

.card-feriados { --card-color: var(--color-feriados); }
.card-feriadoes { --card-color: var(--color-feriadoes); }

.hub-card:hover .card-title {
    color: var(--card-color);
}

.btn-action {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--card-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Banner */
.next-banner {
    background: linear-gradient(135deg, var(--next-bg) 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 50px 35px;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.35);
    margin-bottom: 65px;
}

.next-banner .label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    opacity: 0.85;
    letter-spacing: 2.5px;
    display: block;
    margin-bottom: 18px;
}

.next-banner .date {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    display: block;
    letter-spacing: -2.5px;
    line-height: 1;
}

.next-banner .name {
    font-size: 1.7rem;
    font-weight: 700;
    margin-top: 18px;
    display: block;
    opacity: 0.95;
}

/* Year sections */
.year-section,
.year-group {
    margin-top: 65px;
}

.year-divider,
.year-title {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 35px;
    letter-spacing: -3.5px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.year-divider::after,
.year-title::after {
    content: '';
    flex-grow: 1;
    height: 5px;
    border-radius: 5px;
    opacity: 0.18;
}

.y-2026 .year-divider,
.y-2026 .year-title { color: var(--y2026); }
.y-2026 .year-divider::after,
.y-2026 .year-title::after { background: var(--y2026); }

.y-2027 .year-divider,
.y-2027 .year-title { color: var(--y2027); }
.y-2027 .year-divider::after,
.y-2027 .year-title::after { background: var(--y2027); }

.y-2028 .year-divider,
.y-2028 .year-title { color: var(--y2028); }
.y-2028 .year-divider::after,
.y-2028 .year-title::after { background: var(--y2028); }

/* Holiday rows */
.holiday-row {
    display: grid;
    grid-template-columns: 130px 160px 1fr;
    align-items: center;
    padding: 22px 20px;
    border-bottom: 1px solid var(--hr-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 -10px;
}

.holiday-row:hover:not(.past) {
    background: var(--bg-card);
    border-radius: 18px;
    transform: translateX(10px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.holiday-row.past {
    opacity: 0.4;
    filter: grayscale(0.8);
}

.col-date {
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.col-weekday {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: capitalize;
}

.col-name {
    font-weight: 800;
    text-align: right;
    font-size: 1.15rem;
    color: var(--text-main);
}

/* Filter section */
.filter-section {
    background: var(--bg-card);
    border: 1px solid var(--hr-color);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.filter-select {
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid var(--hr-color);
    background: var(--bg-body);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

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

/* Month groups */
.month-group {
    margin-bottom: 35px;
}

.month-label {
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
    color: var(--text-muted);
    opacity: 0.9;
}

/* Trip cards */
.trip-card {
    background: var(--bg-card);
    border: 1px solid var(--hr-color);
    border-radius: 26px;
    padding: 28px 32px;
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.trip-card:hover:not(.past) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.trip-card.past {
    opacity: 0.4;
    filter: grayscale(0.8);
}

.trip-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.info-week {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 700;
}

.info-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.badge-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.desc-folga {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.trip-counter {
    text-align: center;
    padding-left: 28px;
    border-left: 2px solid var(--hr-color);
    min-width: 90px;
}

.days-val {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    display: block;
    letter-spacing: -1px;
}

.days-lbl {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* ===================================
   ADSENSE INTEGRATION
   =================================== */

.top-nav-wrapper {
    width: 100%;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-body) 100%);
    border-bottom: 1px solid var(--hr-color);
    padding: 15px 20px;
}

.top-nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-ad {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 90px;
}

.header-ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
}

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

/* Mobile (up to 640px) */
@media (max-width: 640px) {
    :root {
        --border-radius: 12px;
    }
    
    body {
        padding: 0 16px 40px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    #clock {
        font-size: 4.5rem;
        letter-spacing: -3px;
    }
    
    .top-nav {
        justify-content: center;
    }
    
    .quad-switch label span {
        display: none;
    }
    
    .quad-switch label::after {
        content: attr(data-icon);
        font-size: 1.3rem;
    }
    
    .settings-header h1 {
        font-size: 2rem;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .hub-card {
        padding: 30px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.6rem;
    }
    
    .next-banner {
        padding: 35px 25px;
    }
    
    .next-banner .date {
        font-size: 2.5rem;
    }
    
    .next-banner .name {
        font-size: 1.3rem;
    }
    
    .year-divider,
    .year-title {
        font-size: 2.8rem;
    }
    
    .holiday-row {
        grid-template-columns: 100px 1fr;
        padding: 18px 15px;
        margin: 0;
    }
    
    .holiday-row:hover:not(.past) {
        transform: translateX(5px);
    }
    
    .col-date {
        font-size: 1.2rem;
    }
    
    .col-weekday {
        display: none;
    }
    
    .col-name {
        font-size: 1.05rem;
        text-align: left;
    }
    
    .trip-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }
    
    .info-main {
        font-size: 1.2rem;
    }
    
    .trip-counter {
        border-left: none;
        border-top: 2px solid var(--hr-color);
        padding: 18px 0 0 0;
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 10px;
    }
    
    .days-val {
        font-size: 2.2rem;
    }
    
    .top-nav-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .header-ad {
        width: 100%;
        justify-content: center;
        overflow: hidden;
    }
    
    .header-ad .adsbygoogle {
        width: 320px !important;
        height: 100px !important;
    }
    
    .header-ad-container .adsbygoogle {
        width: 320px !important;
        height: 100px !important;
    }

    .hero {
        position: relative;
        z-index: 1;
    }
}

/* Tablet (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .container {
        max-width: 720px;
    }
    
    .header-ad .adsbygoogle {
        width: 468px !important;
        height: 60px !important;
    }
    
    .header-ad-container .adsbygoogle {
        width: 468px !important;
        height: 60px !important;
    }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
}