@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.prize-timeline-wrapper {
    font-family: 'Poppins', sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    position: relative;
}

/* --- HERO CARD --- */
.timeline-hero {
    margin-bottom: 40px;
    text-align: center;
}
.timeline-hero .timeline-card {
    border: none;
    background: linear-gradient(135deg, #1d976c, #93f9b9);
    color: #fff;
    box-shadow: 0 8px 32px rgba(30, 100, 60, 0.18);
    transform: scale(1.04);
}
.timeline-hero .card-title,
.timeline-hero .card-time {
    color: #fff;
}
.timeline-hero .card-time {
    background: rgba(255,255,255,0.18);
}
.timeline-hero .card-result-number {
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 3.5em;
    font-weight: 700;
    letter-spacing: 2px;
}

/* --- TIMELINE --- */
.timeline-list {
    position: relative;
    padding-left: 0;
    margin: 0;
}
.prize-timeline-wrapper .timeline-list::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1d976c;
    transform: translateX(-50%);
    z-index: 1;
}
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    z-index: 2;
    list-style: none;
}
.timeline-item::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -17.5px;
    width: 15px;
    height: 15px;
    background: #fff;
    border: 3px solid #ccc;
    border-radius: 50%;
    z-index: 3;
    transition: all 0.3s ease;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 30px;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 30px;
}
.timeline-item:nth-child(even)::after {
    left: -17.5px;
}

/* --- CARD STYLING --- */
.timeline-card {
    background: #fcf69c;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}
.card-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}
.card-time {
    font-size: 0.9em;
    font-weight: 400;
    color: #777;
    padding: 3px 8px;
    border-radius: 20px;
}
.card-result {
    text-align: center;
}
.card-result-number {
    font-size: 2.2em;
    font-weight: 700;
    color: #005a2b;
    line-height: 1.1;
    letter-spacing: 2px;
}

/* --- STATE MODIFIERS --- */
.timeline-item.is-pending .card-result-number {
    font-size: 1.5em;
    font-weight: 600;
    color: #d4176a;
    font-style: italic;
    animation: blinkText 1s infinite;
}

/* Blinking keyframes */
@keyframes blinkText {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* .timeline-item.is-past .timeline-card {
    opacity: 0.8;
    filter: grayscale(50%);
} */
.timeline-item.is-past:hover .timeline-card {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- ⭐️ FULLY MOBILE RESPONSIVE ⭐️ --- */
@media (max-width: 768px) {
    .prize-timeline-wrapper {
        padding: 15px 10px;
    }
    .prize-timeline-wrapper .timeline-list::before {
        left: 20px; 
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 45px;
        padding-right: 0;
        margin-bottom: 30px;
    }
    .timeline-item::after {
        left: 12.5px !important; 
        right: auto;
    }
    .timeline-hero .timeline-card {
        transform: scale(1);
    }
    .timeline-hero .card-result-number {
        font-size: 1.8em;
    }
    .timeline-card {
        padding: 15px 20px;
    }
    .card-result-number {
        font-size: 1.8em;
    }
    .timeline-item.is-pending .card-result-number {
        font-size: 1.3em;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}