/*
 * Weekly Lucky Draw – Elegant, Swapping Icons, Badge Top‑Left
 */

.weekly-lucky-draw {
    background: linear-gradient(135deg, #fdfbfb 0%, #f9f4f0 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/* Badge – now top‑left corner */
.draw-badge {
    position: absolute;
    top: 15px;
    left: 20px;                     /* ← moved to left */
    background: #fff;
    padding: 8px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-weight: 700;
    font-size: 0.85rem;
    color: #d81b60;
    letter-spacing: 1px;
    z-index: 5;
}

/* Main flex container */
.draw-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Gift visual area – relative positioning for swap */
.draw-visuals {
    position: relative;
    width: 80px;                   /* fixed width for the container */
    height: 200px;                 /* enough height for the icons */
}

/* Each gift icon – absolutely positioned, swap animation */
.gift-icon {
    font-size: 3rem;
    position: absolute;
    left: 0;
    opacity: 0.9;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));
}

/* Assign different animation durations/delays for smooth continuous swap */
.icon-1 {
    animation: swapPosition 4s infinite ease-in-out;
}

.icon-2 {
    animation: swapPosition 4s infinite ease-in-out 1.6s;
}

.icon-3 {
    animation: swapPosition 4s infinite ease-in-out 3.2s;
}

/* Swap keyframes – move from top to middle to bottom and back */
@keyframes swapPosition {
    0%, 100% {
        top: 0;
        transform: scale(1);
    }
    25% {
        top: 70px;                 /* middle */
        transform: scale(1.1);
    }
    50% {
        top: 140px;                /* bottom */
        transform: scale(1);
    }
    75% {
        top: 70px;                 /* back to middle */
        transform: scale(1.1);
    }
}

/* Right content */
.draw-content {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

/* Colour‑shifting title */
@keyframes titleShift {
    0%   { color: #4caf50; }
    14%  { color: #d81b60; }
    28%  { color: #e63946; }
    42%  { color: #1b3022; }
    57%  { color: #8b5e3c; }
    71%  { color: #7b1fa2; }
    85%  { color: #1976d2; }
    100% { color: #4caf50; }
}

.draw-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 15px;
    line-height: 1.3;
    animation: titleShift 6s infinite linear;
}

.draw-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.draw-subtitle strong {
    color: #d81b60;
    font-weight: 800;
}

/* Countdown */
.draw-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.time-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 85px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.time-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.time-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1b3022;
    line-height: 1;
}

.time-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #777;
    margin-top: 6px;
}

/* Explore button */
.draw-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #1b3022;
    color: #fff;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.3s, transform 0.3s;
    letter-spacing: 0.5px;
}

.draw-btn:hover {
    background: #d81b60;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(216,27,96,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .draw-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .draw-visuals {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    /* On mobile, icons side by side, no swap animation */
    .gift-icon {
        position: static;
        animation: none !important;
    }
    .draw-title {
        font-size: 2.2rem;
    }
    .draw-badge {
        left: 10px;
        top: 10px;
        font-size: 0.75rem;
        padding: 6px 16px;
    }
}

@media (max-width: 480px) {
    .draw-title {
        font-size: 1.8rem;
    }
    .time-card {
        min-width: 65px;
        padding: 12px;
    }
    .time-number {
        font-size: 1.8rem;
    }
}