/* ==========================================
   SEOULTOTO - Black & Gold Theme
   Premium, Elegant, Dark Mode
   ========================================== */

:root {
    --primary: #1a1a1a;
    --primary-dark: #0a0a0a;
    --primary-light: #222222;
    --accent: #c6a359;
    --accent-light: #e8d48b;
    --accent-dark: #a68a3e;
    --gold: #c6a359;
    --gold-light: #e8d48b;
    --gold-dark: #a68a3e;
    --bg-body: #111111;
    --bg-card: #1a1a1a;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --text-light: #555555;
    --text-white: #f0f0f0;
    --border: #2a2a2a;
    --border-gold: rgba(198,163,89,0.25);
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.5);
    --shadow-gold: rgba(198,163,89,0.15);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ==========================================
   HEADER / LOGO BANNER
   ========================================== */
.site-header-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #151515 100%);
    text-align: center;
    padding: 30px 20px 24px;
    position: relative;
    overflow: hidden;
}

.site-header-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(198,163,89,0.06) 0%, transparent 70%);
}

.site-header-banner .logo-img {
    width: 200px;
    height: auto;
    margin: 0 auto 8px;
    display: block;
    position: relative;
    z-index: 1;
}

.site-header-banner .logo-text {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 6px;
    text-shadow: 0 1px 8px rgba(198,163,89,0.3);
    position: relative;
    z-index: 1;
}

.site-header-banner .logo-text span {
    color: var(--gold-light);
}

.site-header-banner .logo-subtitle {
    color: rgba(198,163,89,0.5);
    font-size: 0.8rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

.site-header-banner .logo-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 12px auto 0;
    position: relative;
    z-index: 1;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.site-navbar {
    background: var(--primary);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-navbar .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.site-navbar a,
.site-navbar button {
    display: inline-block;
    padding: 13px 28px;
    color: #666;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
}

.site-navbar a:hover,
.site-navbar a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ==========================================
   WINNING NUMBERS HERO SECTION
   ========================================== */
.winning-hero {
    background: linear-gradient(180deg, #0f0f0f, var(--primary));
    padding: 36px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.winning-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(198,163,89,0.08) 0%, transparent 60%);
}

.winning-hero .hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary-dark);
    padding: 7px 22px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.winning-hero .hero-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.winning-hero .hero-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.winning-hero .hero-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(198,163,89,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.winning-hero .hero-number:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================
   MAIN CONTENT AREA
   ========================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ==========================================
   LOTTERY RESULT SECTION
   ========================================== */
.result-section {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.result-section .section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.result-section .section-date {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.result-section .section-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 20px;
}

/* Prize Rows */
.prize-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.prize-row:hover {
    transform: translateY(-2px);
}

.prize-row.first-prize {
    background: linear-gradient(135deg, rgba(198,163,89,0.12), rgba(198,163,89,0.06));
    border: 1px solid rgba(198,163,89,0.3);
}

.prize-row.second-prize {
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
}

.prize-row.third-prize {
    background: rgba(255,255,255,0.02);
    border: 1px solid #2a2a2a;
}

.prize-label {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 170px;
}

.prize-row.first-prize .prize-label { color: var(--gold); }
.prize-row.second-prize .prize-label { color: #888; }
.prize-row.third-prize .prize-label { color: #777; }

.prize-balls {
    display: flex;
    gap: 6px;
}

.prize-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.prize-ball:hover {
    transform: scale(1.15) rotate(5deg);
}

/* 1st prize = GOLD */
.prize-row.first-prize .prize-ball {
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    color: var(--primary-dark);
    box-shadow: 0 3px 12px rgba(198,163,89,0.35);
}

/* 2nd prize = SILVER */
.prize-row.second-prize .prize-ball {
    background: linear-gradient(145deg, #555, #3a3a3a);
    color: #e0e0e0;
    border: 1px solid #555;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 3rd prize = DARK SILVER */
.prize-row.third-prize .prize-ball {
    background: linear-gradient(145deg, #444, #2e2e2e);
    color: #bbb;
    border: 1px solid #444;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ==========================================
   COUNTDOWN SECTION
   ========================================== */
.countdown-section {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(198,163,89,0.04) 0%, transparent 70%);
    border-radius: 12px;
}

.countdown-section .countdown-title {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.countdown-timer-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.countdown-digit-box {
    background: #222;
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 14px 18px;
    min-width: 75px;
    text-align: center;
}

.countdown-digit-box .digit {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.countdown-digit-box .label {
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(198,163,89,0.35);
    animation: blink 1s infinite;
}

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

/* ==========================================
   HISTORY CARDS
   ========================================== */
.history-section {
    margin-bottom: 30px;
}

.history-section .section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 18px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.history-card {
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.history-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-gold);
    box-shadow: 0 8px 25px var(--shadow-gold);
}

.history-card .card-header {
    background: linear-gradient(135deg, rgba(198,163,89,0.2), rgba(198,163,89,0.08));
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.history-card .card-header .card-date {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
}

.history-card .card-body {
    padding: 14px;
}

.history-card .mini-prize-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #222;
}

.history-card .mini-prize-row:last-child {
    border-bottom: none;
}

.history-card .mini-prize-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
}

.history-card .mini-prize-balls {
    display: flex;
    gap: 3px;
}

.history-card .mini-ball {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.mini-ball.gold {
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    color: var(--primary-dark);
}

.mini-ball.silver {
    background: linear-gradient(145deg, #555, #3a3a3a);
    color: #ddd;
    border: 1px solid #555;
}

.mini-ball.dark {
    background: linear-gradient(145deg, #444, #2e2e2e);
    color: #bbb;
    border: 1px solid #444;
}

/* ==========================================
   WAITING STATE
   ========================================== */
.waiting-state {
    text-align: center;
    padding: 40px 20px;
}

.waiting-state .dice-icon {
    font-size: 4rem;
    animation: dice-spin 3s ease-in-out infinite;
}

@keyframes dice-spin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.waiting-state .waiting-text {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 15px;
}

/* ==========================================
   DISCLAIMER / FOOTER
   ========================================== */
.disclaimer-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
    text-align: center;
}

.disclaimer-section p {
    color: var(--text-light);
    font-size: 0.78rem;
    line-height: 1.6;
}

.badge-strip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-strip .badge-item {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--primary);
}

.site-footer {
    background: var(--primary-dark);
    text-align: center;
    padding: 18px;
    color: rgba(198,163,89,0.4);
    font-size: 0.85rem;
    border-top: 1px solid rgba(198,163,89,0.15);
}

/* ==========================================
   ADMIN THEME (kobe-* compat)
   ========================================== */
.kobe-gradient-primary {
    background: linear-gradient(135deg, var(--primary), #222);
}

.kobe-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.kobe-text-secondary {
    color: var(--gold);
}

.kobe-button-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--primary-dark);
}

.kobe-button-primary:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.admin-page input[type="text"],
.admin-page input[type="email"],
.admin-page input[type="password"],
.admin-page input[type="date"],
.admin-page input[type="number"],
.admin-page select,
.admin-page textarea {
    background: #222;
    border: 1px solid #333;
    color: var(--text-primary);
    border-radius: 8px;
    padding: 8px 12px;
}

.admin-page input:focus,
.admin-page select:focus,
.admin-page textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(198,163,89,0.15);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .site-header-banner .logo-text {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .site-header-banner .logo-img {
        width: 140px;
    }

    .site-navbar a, .site-navbar button {
        padding: 10px 16px;
        font-size: 0.75rem;
    }

    .winning-hero .hero-number {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .prize-row {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .prize-label {
        min-width: unset;
    }

    .countdown-digit-box {
        min-width: 60px;
        padding: 10px 12px;
    }

    .countdown-digit-box .digit {
        font-size: 1.5rem;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .prize-ball {
        width: 35px;
        height: 35px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .site-header-banner {
        padding: 20px 15px 18px;
    }

    .site-header-banner .logo-text {
        font-size: 1.6rem;
    }

    .winning-hero {
        padding: 24px 15px;
    }

    .winning-hero .hero-number {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .result-section {
        padding: 20px 15px;
    }

    .countdown-timer-wrap {
        gap: 8px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.firework {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-light);
    animation: firework-burst 0.8s ease-out forwards;
    z-index: 9999;
    pointer-events: none;
}

@keyframes firework-burst {
    0% { transform: scale(0); opacity: 1; }
    50% { transform: scale(3); opacity: 0.7; }
    100% { transform: scale(6); opacity: 0; }
}

.number-reveal {
    animation: numberPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

@keyframes numberPop {
    0% { opacity: 0; transform: scale(0.3) rotate(-10deg); }
    60% { transform: scale(1.1) rotate(3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.scrollbar-hidden::-webkit-scrollbar { display: none; }
.scrollbar-hidden { -ms-overflow-style: none; scrollbar-width: none; }
