:root {
    --bg-gradient-start: #e0c3fc;
    --bg-gradient-end: #8ec5fc;
    --bg-card: #ffffff;
    --bg-card-hover: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-creator: #333;
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-timeline: #1d4ed8;
    --accent-next: #f97316;
    --border-color: #d1d5db;
    --shadow-card: rgba(15, 23, 42, 0.16);
    --shadow-box: rgba(15, 23, 42, 0.12);
    --timeline-gradient-start: #3b82f6;
    --timeline-gradient-end: #1d4ed8;
}

html.dark {
    --bg-gradient-start: #1e1b4b;
    --bg-gradient-end: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-creator: #e2e8f0;
    --accent-primary: #60a5fa;
    --accent-secondary: #3b82f6;
    --accent-timeline: #93c5fd;
    --accent-next: #fb923c;
    --border-color: #475569;
    --shadow-card: rgba(0, 0, 0, 0.3);
    --shadow-box: rgba(0, 0, 0, 0.2);
    --timeline-gradient-start: #60a5fa;
    --timeline-gradient-end: #3b82f6;
}

.main-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.countdown-item {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 20px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, border-color 0.2s;
}

    .countdown-item:hover {
        transform: translateY(-5px);
        border-color: #0d6efd;
    }

.number {
    font-size: 3rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1;
    font-family: sans-serif;
}

.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6c757d;
    font-weight: bold;
    margin-top: 8px;
    font-family: sans-serif;
}

h1.titulo-feriado {
    font-family: sans-serif;
    font-weight: 900;
    color: #212529;
}

.holiday-subtitle {
    font-size: 1.05rem;
    letter-spacing: 0.20em;
}

.holiday-title {
    font-size: 3rem;
    font-weight: 900;
}

.holiday-date {
    font-size: 1.1rem;
}

.countdown-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent-primary);
}

.countdown-label {
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    color: var(--text-secondary);
}

.countdown-grid {
    margin-top: 2.5rem;
}

.holiday-card {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.holiday-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.holiday-subtitle {
    font-size: 1.05rem;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.holiday-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.holiday-date {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.countdown-box {
    padding: 1.75rem 2.25rem;
}

.countdown-number {
    font-size: 2.8rem;
    font-weight: 900;
}

.countdown-label {
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: var(--text-secondary);
}

.holiday-card {
    border-radius: 32px;
    box-shadow: 0 28px 60px var(--shadow-card), 0 0 0 1px rgba(148, 163, 184, 0.10);
    background-color: var(--bg-card);
}

.countdown-box {
    border-radius: 20px;
    box-shadow: 0 18px 40px var(--shadow-box), 0 0 0 1px var(--border-color);
    background-color: var(--bg-card);
}

.holiday-card {
    animation: holiday-card-enter 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes holiday-card-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.countdown-box {
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out, background-color 0.18s ease-out;
}

    .countdown-box:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18), 0 0 0 1px var(--accent-secondary);
        background-color: var(--bg-card-hover);
    }

        .countdown-box:hover .countdown-number {
            transform: scale(1.04);
        }

.countdown-number {
    transition: transform 0.18s ease-out;
}

.holiday-today .countdown-number {
    animation: countdown-pulse-once 0.6s ease-out, countdown-breathe 2.4s 0.7s ease-in-out infinite;
}

@keyframes countdown-pulse-once {
    0% {
        transform: scale(1) translateY(0);
    }

    35% {
        transform: scale(1.18) translateY(-4px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

@keyframes countdown-breathe {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.holiday-today .countdown-box:nth-child(1) .countdown-number {
    animation-delay: 0s, 0.7s;
}

.holiday-today .countdown-box:nth-child(2) .countdown-number {
    animation-delay: 0.12s, 0.82s;
}

.holiday-today .countdown-box:nth-child(3) .countdown-number {
    animation-delay: 0.24s, 0.94s;
}

.holiday-today .countdown-box:nth-child(4) .countdown-number {
    animation-delay: 0.36s, 1.06s;
}

.creator-card {
    margin: 20px auto 0 auto;
    width: fit-content;
    padding: 10px 18px;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-creator);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.88;
    align-self: flex-end;
    margin-right: 40px;
    transition: all 0.25s ease;
}

    .creator-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 14px rgba(33, 150, 243, 0.35);
    }

.creator-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.linkedin-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.holiday-timeline-wrapper {
    margin-top: 1.8rem;
}

.holiday-timeline-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.holiday-timeline {
    position: relative;
    margin-top: 0.5rem;
    padding-left: 1.6rem;
}

    .holiday-timeline::before {
        content: "";
        position: absolute;
        left: 0.5rem;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, var(--timeline-gradient-start), var(--timeline-gradient-end));
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        animation: holidayLineGrow 0.6s ease-out forwards;
    }

.holiday-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(8px);
    animation: holidayItemFadeUp 0.4s ease-out forwards;
}

.holiday-timeline-item:nth-child(1) {
    animation-delay: 0.15s;
}

.holiday-timeline-item:nth-child(2) {
    animation-delay: 0.25s;
}

.holiday-timeline-item:nth-child(3) {
    animation-delay: 0.35s;
}

.holiday-timeline-item:nth-child(4) {
    animation-delay: 0.45s;
}

.holiday-timeline-dot {
    position: relative;
    margin-top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 2px solid var(--accent-secondary);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.holiday-timeline-content {
    display: flex;
    flex-direction: column;
}

.holiday-timeline-date {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-timeline);
    margin-bottom: 2px;
}

.holiday-timeline-name {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.holiday-timeline-item:hover .holiday-timeline-dot {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.18);
}

.holiday-timeline-item.is-next .holiday-timeline-dot {
    animation: holidayDotPulse 1.5s ease-out infinite;
    border-color: var(--accent-next);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
}

.holiday-timeline-item.is-next .holiday-timeline-date {
    color: var(--accent-next);
}

@keyframes holidayLineGrow {
    from {
        transform: scaleY(0);
        opacity: 0;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes holidayItemFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes holidayDotPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45);
    }

    70% {
        transform: scale(1.12);
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-box);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 6px 20px var(--shadow-card);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-primary);
    stroke: var(--accent-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(20deg);
}

.sun-icon {
    display: none;
}

html.dark .sun-icon {
    display: block;
}

html.dark .moon-icon {
    display: none;
}

@media (max-width: 480px) {

    .holiday-timeline {
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

        .holiday-timeline::before {
            left: 0.35rem;
            width: 1.5px;
        }

    .holiday-timeline-item {
        gap: 0.6rem;
        margin-bottom: 0.9rem;
        animation-delay: 0s !important;
    }

    .holiday-timeline-dot {
        width: 9px;
        height: 9px;
        margin-top: 3px;
    }

    .holiday-timeline-date {
        font-size: 0.8rem;
    }

    .holiday-timeline-name {
        font-size: 0.82rem;
        max-width: 230px;
        line-height: 1.1;
        word-break: break-word;
    }

    .holiday-timeline-title {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .holiday-timeline-wrapper {
        padding: 1.2rem 1rem !important;
        border-radius: 18px;
    }
}
