/* CSS Moderno para Home - Baseado no design Next/Tailwind solicitado */
/* Versão Ajustada (Compacta) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Card Container */
.next-event-card {
    /* Margin top controlada via style inline no PHP agora */
    padding: 0 16px;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

.next-event-card-inner {
    position: relative;
    border-radius: 20px;
    /* Reduzido levemente */
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: white;
    padding: 24px;
    /* Reduzido de 32px */
    min-height: 240px;
    /* Reduzido de 300px */
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.1), 0 8px 8px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 640px) {
    .next-event-card-inner {
        padding: 32px;
        /* Reduzido de 40px */
        min-height: 280px;
        /* Reduzido de 340px */
    }
}

.card-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Reduzido gap */
}

@media (min-width: 640px) {
    .card-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* Left Content */
.left-content {
    flex: 1;
}

.badge-next {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 13px;
    /* Reduzido */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-radius: 9999px;
    padding: 4px 12px;
    /* Mais compacto */
    margin-bottom: 16px;
}

/* Countdown */
.countdown-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 16px;
    /* Mais compacto */
    min-width: 70px;
    /* Reduzido */
}

.countdown-value {
    font-size: 24px;
    /* Reduzido de 30px */
    font-weight: 800;
    line-height: 1;
    color: white;
}

@media (min-width: 640px) {
    .countdown-value {
        font-size: 30px;
        /* Reduzido de 36px */
    }
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
}

.pulse {
    animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Event Details */
.event-title {
    margin-top: 20px;
    font-size: 26px;
    /* Reduzido de 30px */
    font-weight: 800;
    line-height: 1.1;
    word-break: break-word;
}

@media (min-width: 640px) {
    .event-title {
        font-size: 32px;
        /* Reduzido de 36px */
    }
}

.event-meta {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    /* Reduzido */
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 640px) {
    .event-meta {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
}

.meta-item {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.meta-icon {
    width: 18px;
    /* Reduzido icon */
    height: 18px;
    margin-right: 8px;
}

/* Buttons */
.calendar-buttons {
    margin-top: 24px;
    /* Reduzido margin */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 640px) {
    .calendar-buttons {
        flex-direction: row;
        gap: 12px;
    }
}

.btn-calendar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 8px 16px;
    /* Mais compacto */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    /* Reduzido */
    cursor: pointer;
    border: none;
}

.btn-calendar-google {
    background-color: white;
    color: var(--blue-600);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-calendar-google:hover {
    background-color: #f3f4f6;
}

.btn-calendar-apple {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-calendar-apple:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Sponsor Logo */
.right-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .right-content {
        justify-content: flex-end;
    }
}

.sponsor-logo-img {
    height: 80px;
    /* Reduzido */
    width: auto;
    object-fit: contain;
}

@media (min-width: 640px) {
    .sponsor-logo-img {
        height: 120px;
        /* Reduzido */
    }
}

/* Link Styles */
a.hover-underline:hover {
    text-decoration: underline;
}

/* ===== BOTÃO TODAS ETAPAS ===== */
.all-events-btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-all-events {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-all-events:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-all-events .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-all-events:hover .btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .all-events-btn-container {
        justify-content: center;
    }

    .btn-all-events {
        width: 100%;
        justify-content: center;
    }
}

/* ===== SEÇÃO CLASSIFICAÇÃO ===== */
.classification-section {
    max-width: 1024px;
    margin: 30px auto;
    padding: 0 16px;
}

.classification-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.classification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.3);
}

.classification-content {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 20px;
}

.classification-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
}

.classification-text {
    flex: 1;
}

.classification-text h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    background: linear-gradient(135deg, #ffd700, #ffec8b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.classification-text p {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
}

.classification-arrow {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.classification-card:hover .classification-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Pódio Preview */
.classification-preview {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    height: 80px;
}

.podium-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.position-number {
    font-size: 16px;
    font-weight: 800;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podium-bar {
    width: 50px;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
}

.podium-position.first .position-number {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #1a1a2e;
}

.podium-position.first .podium-bar {
    height: 60px;
    background: linear-gradient(180deg, #ffd700, #cc9900);
}

.podium-position.second .position-number {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #1a1a2e;
}

.podium-position.second .podium-bar {
    height: 45px;
    background: linear-gradient(180deg, #c0c0c0, #888888);
}

.podium-position.third .position-number {
    background: linear-gradient(135deg, #cd7f32, #a05a2c);
    color: white;
}

.podium-position.third .podium-bar {
    height: 35px;
    background: linear-gradient(180deg, #cd7f32, #8b4513);
}

.classification-card:hover .podium-bar {
    transform: scaleY(1.1);
}

@media (min-width: 640px) {
    .classification-content {
        padding: 32px;
    }

    .classification-icon {
        font-size: 56px;
    }

    .classification-text h2 {
        font-size: 26px;
    }

    .podium-bar {
        width: 70px;
    }
}

/* ===== SEÇÃO PATROCINADORES HOME ===== */
.sponsors-section-home {
    max-width: 1024px;
    margin: 40px auto;
    padding: 0 16px 40px;
}

.sponsors-section-home .sponsors-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.sponsors-container-home {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sponsor-tier-home {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.sponsor-card-home {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sponsor-card-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sponsor-card-home img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Tier 1 - Principal */
.sponsor-tier-home.tier-1 .sponsor-card-home {
    padding: 20px 32px;
}

.sponsor-tier-home.tier-1 .sponsor-card-home img {
    max-height: 70px;
}

/* Tier 2 - Secundários */
.sponsor-tier-home.tier-2 .sponsor-card-home img {
    max-height: 45px;
}

/* Tier 3 - Apoiadores */
.sponsor-tier-home.tier-3 .sponsor-card-home {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.85);
}

.sponsor-tier-home.tier-3 .sponsor-card-home img {
    max-height: 35px;
}

@media (max-width: 640px) {
    .classification-content {
        flex-direction: column;
        text-align: center;
    }

    .classification-arrow {
        display: none;
    }

    .sponsor-card-home img {
        max-height: 40px;
    }

    .sponsor-tier-home.tier-1 .sponsor-card-home img {
        max-height: 55px;
    }
}