/* SEVILLE POOLS - Fresh Mediterranean Layout */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --ocean-deep: #0077BE;
    --ocean-light: #00A3E0;
    --ocean-pale: #E8F4FC;
    --sky-light: #F0F9FF;
    --sun-yellow: #FFD93D;
    --sun-orange: #F7931E;
    --coral: #FF6B6B;
    --navy: #1E3A5F;
    --navy-light: #2D5280;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --sand: #FEF9F3;
    --success: #10B981;
    --danger: #EF4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--sky-light);
    min-height: 100vh;
    color: var(--text-dark);
}

/* ========== TOP WAVE HEADER ========== */
.top-header {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-light) 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: relative;
    z-index: 10;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section img {
    height: 55px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.logo-text {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.2);
}

.nav-menu a.active {
    background: var(--white);
    color: var(--ocean-deep);
}

/* Wave SVG at bottom of header */
.wave-divider {
    display: block;
    width: 100%;
    height: 60px;
    margin-top: -5px;
}

/* ========== HERO COUNTDOWN SECTION ========== */
.hero-section {
    background: var(--white);
    margin: -30px 40px 30px;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 119, 190, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 20;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-left h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-left h1 span {
    color: var(--sun-orange);
}

.hero-left p {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.hero-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ocean-pale);
    color: var(--ocean-deep);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
}

.hero-right {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-right::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.next-draw-label {
    color: var(--sun-yellow);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.next-draw-type {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.countdown-item {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 15px 20px;
    min-width: 80px;
}

.countdown-item .number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    display: block;
}

.countdown-item .label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== DRAW SELECTION TABS ========== */
.draw-tabs-section {
    padding: 0 40px;
    margin-bottom: 30px;
}

.draw-tabs-container {
    display: flex;
    gap: 20px;
}

.draw-tab-btn {
    flex: 1;
    background: var(--white);
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 25px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.draw-tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.draw-tab-btn.active {
    border-color: var(--ocean-deep);
    background: linear-gradient(135deg, var(--ocean-pale) 0%, var(--white) 100%);
}

.tab-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.morning-icon {
    background: linear-gradient(135deg, var(--sun-yellow) 0%, var(--sun-orange) 100%);
}

.night-icon {
    background: linear-gradient(135deg, var(--navy) 0%, #4a6fa5 100%);
}

.tab-info {
    text-align: left;
}

.tab-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.tab-info .time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ocean-deep);
}

.tab-status {
    margin-left: auto;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-live {
    background: #FEE2E2;
    color: #DC2626;
    animation: pulse-status 2s infinite;
}

.status-upcoming {
    background: #FEF3C7;
    color: #92400E;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ========== RESULTS SECTION ========== */
.results-section {
    padding: 0 40px 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
}

.view-all-btn {
    color: var(--ocean-deep);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.view-all-btn:hover {
    gap: 10px;
}

/* Result Cards - Horizontal Style */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card-horizontal {
    background: var(--white);
    border-radius: 20px;
    padding: 25px 30px;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 30px;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 5px solid var(--ocean-deep);
}

.result-card-horizontal:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.result-card-horizontal.morning {
    border-left-color: var(--sun-orange);
}

.result-card-horizontal.night {
    border-left-color: var(--navy);
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.result-info .draw-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

.result-info .draw-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.result-prizes {
    display: flex;
    gap: 30px;
}

.prize-group {
    text-align: center;
}

.prize-group .label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prize-numbers {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.num-ball {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    background: var(--navy-light);
}

.num-ball.gold {
    background: linear-gradient(135deg, var(--sun-yellow) 0%, var(--sun-orange) 100%);
    color: var(--navy);
}

.num-ball.silver {
    background: linear-gradient(135deg, #94A3B8 0%, #64748B 100%);
}

.num-ball.bronze {
    background: linear-gradient(135deg, var(--sun-orange) 0%, #EA580C 100%);
}

.expand-btn {
    background: var(--ocean-pale);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--ocean-deep);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: var(--ocean-deep);
    color: var(--white);
}

/* Expanded Details */
.result-expanded {
    display: none;
    grid-column: 1 / -1;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 2px dashed var(--ocean-pale);
}

.result-expanded.show {
    display: block;
}

.expanded-prizes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.expanded-section {
    background: var(--sky-light);
    border-radius: 16px;
    padding: 20px;
}

.expanded-section h4 {
    font-size: 0.9rem;
    color: var(--ocean-deep);
    margin-bottom: 15px;
    font-weight: 700;
}

.expanded-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.expanded-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.small-ball {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: var(--navy-light);
}

/* ========== LIVE DRAW CONTENT ========== */
.draw-content {
    display: none;
}

.draw-content.active {
    display: block;
}

.live-draw-container {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    margin: 0 40px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.live-badge-container {
    text-align: center;
    margin-bottom: 30px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.live-badge .dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

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

.spinner-section {
    text-align: center;
    padding: 20px 0;
}

.spinner-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}

.spinner-subtitle {
    color: var(--text-medium);
    margin-bottom: 40px;
}

.spinner-prizes {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.spinner-prize-row {
    text-align: center;
}

.spinner-prize-row .label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sun-orange);
    margin-bottom: 12px;
}

.spinner-balls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.spinner-ball {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    animation: spin3d 0.8s linear infinite;
}

.spinner-ball.gold {
    background: linear-gradient(135deg, var(--sun-yellow), var(--sun-orange));
    color: var(--navy);
}

.spinner-ball.silver {
    background: linear-gradient(135deg, #94A3B8, #64748B);
    color: white;
}

.spinner-ball.bronze {
    background: linear-gradient(135deg, var(--sun-orange), #EA580C);
    color: white;
}

.spinner-ball.default {
    background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
    color: var(--navy);
}

@keyframes spin3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Previous Draw Banner */
.previous-banner {
    background: linear-gradient(135deg, var(--ocean-pale) 0%, #E0F2FE 100%);
    border: 2px solid var(--ocean-light);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.previous-banner h3 {
    color: var(--ocean-deep);
    font-size: 1rem;
    margin-bottom: 5px;
}

.previous-banner p {
    color: var(--navy);
    font-weight: 700;
}

/* No Result Message */
.no-result {
    text-align: center;
    padding: 60px 20px;
}

.no-result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-result h3 {
    color: var(--navy);
    margin-bottom: 10px;
}

.no-result p {
    color: var(--text-medium);
}

/* ========== FOOTER ========== */
footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 30px 40px;
    margin-top: 40px;
}

footer p {
    font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        margin: -30px 20px 30px;
    }
    
    .header-content {
        padding: 20px 30px;
    }
    
    .draw-tabs-section,
    .results-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .live-draw-container {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .result-card-horizontal {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .result-prizes {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .expand-btn {
        width: 100%;
        height: auto;
        padding: 12px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu a {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .hero-section {
        margin: -20px 15px 20px;
        padding: 25px;
    }
    
    .hero-left h1 {
        font-size: 2rem;
    }
    
    .countdown-display {
        gap: 10px;
    }
    
    .countdown-item {
        padding: 12px 15px;
        min-width: 65px;
    }
    
    .countdown-item .number {
        font-size: 1.6rem;
    }
    
    .draw-tabs-container {
        flex-direction: column;
    }
    
    .draw-tab-btn {
        padding: 20px;
    }
    
    .tab-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .num-ball {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .small-ball {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    
    .expanded-prizes {
        grid-template-columns: 1fr;
    }
    
    .spinner-ball {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-section img {
        height: 40px;
    }
    
    .hero-left h1 {
        font-size: 1.6rem;
    }
    
    .hero-right {
        padding: 25px 20px;
    }
    
    .next-draw-type {
        font-size: 1.4rem;
    }
    
    .countdown-item {
        padding: 10px 12px;
        min-width: 55px;
    }
    
    .countdown-item .number {
        font-size: 1.3rem;
    }
    
    .prize-numbers {
        gap: 3px;
    }
    
    .num-ball {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .small-ball {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
        min-width: 22px;
    }
    
    .result-prizes {
        gap: 15px;
    }
    
    .spinner-ball {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .spinner-balls {
        gap: 6px;
    }
}
