/* Core Styles - Road to Rio */
:root {
    /* Colors */
    --color-ice-blue: #e0f7fa;
    --color-ice-white: #ffffff;
    --color-intel-blue: #0071c5;
    --color-gold: #ffd700;
    --color-bg-dark: #0b1026;

    /* Gradients */
    --gradient-frost: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --gradient-gold: linear-gradient(45deg, #ffd700, #ffecb3, #ffd700);
    --gradient-mission: linear-gradient(to right, rgba(0, 113, 197, 0.1), transparent);

    /* Fonts */
    --font-primary: 'IntelOne Display', sans-serif;
    --font-UI: 'VT323', monospace;
}

@font-face {
    font-family: 'IntelOne Display';
    src: url('assets/fonts/intelone-display-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'IntelOne Display';
    src: url('assets/fonts/intelone-display-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'IntelOne Display';
    src: url('assets/fonts/intelone-display-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'IntelOne Display';
    src: url('assets/fonts/intelone-display-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}



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

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-ice-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Utilities */
.glass-panel {
    background: rgba(11, 16, 38, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    border-radius: 0;
    position: relative;
}

.glass-panel::before,
.glass-panel::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    pointer-events: none;
    z-index: 10;
}

.glass-panel::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--color-gold);
    border-left: 2px solid var(--color-gold);
}

.glass-panel::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--color-gold);
    border-right: 2px solid var(--color-gold);
}



.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}



/* Sections */
section {
    padding: 4rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero */
#hero {
    background: url('assets/BG.png') no-repeat center center/cover;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 6rem;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 16, 38, 0.7) 0%, var(--color-bg-dark) 100%);
    z-index: 0;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: url('assets/Asset-LP-bg-.png') no-repeat center top/cover;
    mix-blend-mode: screen;
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
}

/* Ranking Table */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.ranking-table th {
    text-align: left;
    padding: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-pos {
    font-weight: bold;
    color: var(--color-intel-blue);
}

.rank-1 .rank-pos {
    color: var(--color-gold);
}

.rank-2 .rank-pos {
    color: #c0c0c0;
}

.rank-3 .rank-pos {
    color: #cd7f32;
}

.trend-up {
    color: #2e7d32;
}

.trend-down {
    color: #d32f2f;
}





/* Responsive */
@media (max-width: 768px) {
    #hero {
        padding-top: 4rem;
    }

    h1 {
        font-size: 2rem;
    }

    .ranking-table th:nth-child(4),
    .ranking-table td:nth-child(4) {
        display: none;
    }



    .glass-panel {
        padding: 1.5rem;
    }

    section {
        padding: 3rem 1rem;
    }

    h2 {
        font-size: 2rem !important;
    }



    .rewards-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }



}

/* =========================================
   Mobile Responsiveness Updates
   ========================================= */

/* Hero Container */
.hero-section {
    min-height: 100vh;
    padding-top: 8rem;
    align-items: flex-start;
}

.hero-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-left-col {
    flex: 2 1 400px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.hero-identity {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    background: radial-gradient(ellipse at center, rgba(11, 16, 38, 0.85) 0%, rgba(11, 16, 38, 0.5) 60%, transparent 100%);
    padding: 2rem;
    border-radius: 20px;
}

/* Table Responsive Wrapper */
.table-responsive {
    width: 100%;
    padding-right: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* FAQ Section */
.faq-section {
    background-color: var(--color-bg-dark);
    padding: 4rem 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    bottom: -950px;
    left: -40px;
    width: 100%;
    height: 2100px;
    background: url('assets/PORTAL.png') no-repeat center bottom/cover;
    mix-blend-mode: screen;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-container {
        padding: 0 2rem;
    }

    .hero-identity {
        gap: 2rem;
        justify-content: center;
        text-align: center;
    }

    .hero-identity img {
        margin: 0 auto;
    }

    .hero-identity>div {
        margin-top: 20px !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
    }

    .hero-container {
        flex-direction: column;
        padding: 0 1rem;
        gap: 1rem;
    }

    .hero-left-col {
        flex: 1 1 auto;
        width: 100%;
    }

    .hero-identity {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .hero-identity h1 {
        font-size: 2rem !important;
    }

    .hero-identity p {
        font-size: 1.1rem !important;
    }

    .glass-panel {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
    }

    /* Adjust lists in How to Participate */
    ul li {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    ul li>div:first-child {
        margin-bottom: 10px;
    }

    /* Rewards Grid */
    .rewards-grid {
        gap: 1rem !important;
    }

    .rewards-grid>div {
        flex: 1 1 120px !important;
    }

    /* FAQ padding */
    .faq-section {
        padding: 3rem 1rem;
    }

    .right-col {
        flex: 1 1 auto;
        width: 100%;
    }

    /* Center Section Titles and Subtitles on Mobile */
    .glass-panel h2,
    .glass-panel h2+p {
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .modern-timer {
        gap: 4px;
    }

    .time-block {
        width: 60px;
        padding: 8px 6px;
    }

    .time-value {
        font-size: 1.6rem;
    }

    .time-label {
        font-size: 0.6rem;
    }

    .time-separator {
        font-size: 1.6rem;
        padding-bottom: 14px;
    }
}

@media (max-width: 480px) {
    .hero-identity h1 {
        font-size: 1.8rem !important;
    }

    .glass-panel h2 {
        font-size: 1.6rem !important;
    }

    .time-block {
        width: 50px;
        padding: 6px 4px;
    }

    .time-value {
        font-size: 1.3rem;
    }

    .time-separator {
        font-size: 1.3rem;
        padding-bottom: 12px;
    }
}

/* Timer Moderno */
.modern-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(11, 16, 38, 0.9);
    border: 1px solid rgba(0, 113, 197, 0.6);
    padding: 12px 10px;
    width: 75px; /* Fixed width to prevent dancing */
    box-shadow: inset 0 0 20px rgba(0, 113, 197, 0.2);
}

.time-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-ice-white);
    line-height: 1;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
    font-variant-numeric: tabular-nums; /* Ensures numbers take up same width */
}

.time-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.time-separator {
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(0, 113, 197, 0.8);
    line-height: 1;
    padding-bottom: 18px; /* Alinhar com os números */
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.timer-header {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--color-ice-white);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.timer-header::before, .timer-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 113, 197, 0.8), transparent);
}

.pulse-dot {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 15px var(--color-gold); }
    100% { transform: scale(0.95); opacity: 0.8; }
}
