﻿/**
 * Homepage WOW Enhancement â€” Gold-Navy Premium Theme
 * File: assets/css/homepage-wow.css
 * 
 * Implements 7 UI/UX improvements:
 * 1. Hero Section (large, with gradient)
 * 2. Brand Identity (Gold accents)
 * 3. Table Redesign (rounded, shadows, hover, glow)
 * 4. Color Palette (Gold-Navy accent system)
 * 5. Visual Section Dividers
 * 6. Footer Transition Zone (gradient CTA)
 * 7. Micro-Animations (scroll reveal, hover, pulse)
 */

/* ============================================
   GOLD-NAVY ACCENT SYSTEM
   ============================================ */


/* ============================================
   1. HERO SECTION â€” Large, Premium
   ============================================ */
.hero-section {}

/* Animated background particles */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(251,191,36,0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(59,130,246,0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(255,255,255,0.05) 0%, transparent 40%);
    animation: heroBgShift 15s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Subtle floating orbs */
.hero-section::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251,191,36,0.08) 0%, transparent 70%);
    top: -50px; right: -50px;
    animation: heroOrbFloat 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroBgShift {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes heroOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 30px) scale(1.2); }
}









@keyframes logoPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(245,158,11,0.3); }
    50% { box-shadow: 0 8px 32px rgba(245,158,11,0.5); }
}





@keyframes goldShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}



/* Hero Info Cards Row */


















/* Quick links in hero */








/* Wave separator under hero */




/* ============================================
   2. BRAND IDENTITY â€” Gold Header Accent
   ============================================ */


/* ============================================
   3. TABLE REDESIGN â€” Premium Look
   ============================================ */
/* Results table wrapper */
.color333 {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color, #E5E7EB);
    transition: box-shadow 0.3s ease;
}

.color333:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.04);
}

/* Table base */
.table-kq-border {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 0 !important;
}

/* Title row */
.title_row {
    background: linear-gradient(135deg, var(--navy-700), var(--navy-600)) !important;
}

.title_row td {
    color: #fff !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    border: none !important;
}

/* Prize rows */
.prize-row th {
    background: var(--bg-hover, #F3F4F6) !important;
    font-weight: 600;
    color: var(--text-primary) !important;
    border-right: 2px solid var(--border-color) !important;
    vertical-align: middle;
    font-size: 13px;
}

.prize-row:hover th,
.prize-row:hover td {
    background: rgba(30,64,175,0.03) !important;
}

/* Äáº·c Biá»‡t (DB) prize â€” Glow Effect */
.prize-level-ÄB td,
tr[data-prize-level="ÄB"] td {
    position: relative;
}

.prize-level-ÄB .maudo,
tr[data-prize-level="ÄB"] .maudo {
    text-shadow: 0 0 8px rgba(220,38,38,0.3), 0 0 16px rgba(220,38,38,0.15) !important;
    animation: dbGlow 2s ease-in-out infinite alternate;
}

@keyframes dbGlow {
    0% { text-shadow: 0 0 8px rgba(220,38,38,0.3), 0 0 16px rgba(220,38,38,0.15); }
    100% { text-shadow: 0 0 12px rgba(220,38,38,0.5), 0 0 24px rgba(220,38,38,0.2); }
}

/* Loto table premium */
.loto-table {
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.loto-table .loto-head {
    background: linear-gradient(135deg, var(--navy-600), var(--navy-700)) !important;
    color: #fff !important;
    font-weight: 700;
    text-align: center;
    min-width: 44px;
}

.loto-table tbody tr:hover {
    background: rgba(30,64,175,0.04) !important;
}

/* ============================================
   4. ENHANCED CARD STYLES
   ============================================ */
/* Result card header - Gold accent */
.result-card .card-header.bg-danger {
    background: linear-gradient(135deg, var(--navy-700), var(--navy-600)) !important;
    border-bottom: 3px solid var(--gold-500);
}

.result-card .card-header h5 i.fa-trophy {
    color: var(--gold-400) !important;
}

/* Card shadow & hover */
.result-card,
.card.shadow-sm {
    border-radius: 14px !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.result-card:hover,
.card.shadow-sm:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.08) !important;
}

.card-header {
    border-radius: 14px 14px 0 0 !important;
}

/* Quick Stats block */
.quick-stats-block {
    border-radius: 14px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-card, #fff) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.quick-stats-title {
    color: var(--navy-600);
    font-weight: 700;
}

/* ============================================
   5. INSIGHTS CENTER â€” Premium Tabs
   ============================================ */
.insights-center {
    margin-top: 32px;
    padding-top: 32px;
    position: relative;
}

/* Section titles with gold accent */
.section-title-fancy {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-700);
    margin-bottom: 20px;
}

.section-title-fancy::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
    border-radius: 2px;
    flex-shrink: 0;
}

/* ============================================
   6. VISUAL SECTION DIVIDERS
   ============================================ */
.section-divider {
    position: relative;
    height: 40px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: var(--gradient-section-divider);
}

.section-divider-icon {
    position: relative;
    z-index: 1;
    width: 36px; height: 36px;
    background: var(--bg-main, #F8F9FA);
    border: 2px solid var(--gold-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-600);
    font-size: 14px;
}

/* ============================================
   7. FOOTER TRANSITION ZONE
   ============================================ */
.footer-transition {
    background: linear-gradient(180deg, var(--bg-main, #F8F9FA) 0%, #E0E5F0 100%);
    padding: 48px 0;
    text-align: center;
    position: relative;
}

.footer-transition::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.footer-cta-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-700);
    margin-bottom: 8px;
}

.footer-cta-subtitle {
    color: var(--text-secondary, #6B7280);
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 28px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.footer-cta-btn.primary {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(245,158,11,0.3);
    border: none;
}

.footer-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245,158,11,0.4);
}

.footer-cta-btn.secondary {
    background: rgba(30,64,175,0.08);
    color: var(--navy-600) !important;
    border: 2px solid var(--navy-400);
}

.footer-cta-btn.secondary:hover {
    background: var(--navy-600);
    color: #fff !important;
    border-color: var(--navy-600);
    transform: translateY(-3px);
}

/* Footer itself â€” add gold top border */
.footer {
    border-top: 3px solid var(--gold-500) !important;
}

.footer h5 i {
    color: var(--gold-400) !important;
}

/* ============================================
   8. MICRO-ANIMATIONS
   ============================================ */
/* Scroll Reveal */
.wow-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wow-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveals */
.wow-reveal-delay-1 { transition-delay: 0.1s; }
.wow-reveal-delay-2 { transition-delay: 0.2s; }
.wow-reveal-delay-3 { transition-delay: 0.3s; }

/* Card hover lift */
.wow-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wow-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1) !important;
}

/* Sidebar cards interactive */
.sidebar-card,
.sidebar-widget {
    border-radius: 14px !important;
    transition: all 0.3s ease;
}

.sidebar-card:hover,
.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* "CÃ³ Thá»ƒ Báº¡n Quan TÃ¢m" links */
.links-interest-item {
    border-radius: 12px !important;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color, #E5E7EB) !important;
}

.links-interest-item:hover {
    border-color: var(--gold-400) !important;
    background: var(--gold-50) !important;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(245,158,11,0.12);
}

/* Nav tabs â€” Premium style */
#regionTabs .nav-link {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent !important;
    border-bottom: none !important;
    padding: 12px 24px !important;
}

#regionTabs .nav-link.active {
    background: var(--bg-card, #fff) !important;
    border-color: var(--border-color) !important;
    border-bottom-color: var(--bg-card, #fff) !important;
    color: var(--navy-600) !important;
    font-weight: 700;
    position: relative;
}

#regionTabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 3px;
    background: var(--gold-500);
    border-radius: 3px 3px 0 0;
}

/* Live Pulse enhanced */
.live-pulse {
    display: inline-block;
    width: 10px; height: 10px;
    background: #EF4444;
    border-radius: 50%;
    animation: livePulseGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.4);
}

@keyframes livePulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
    50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* Back to Top â€” Premium */
.back-to-top {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600)) !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(245,158,11,0.3) !important;
    width: 44px; height: 44px;
    border-radius: 50% !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
}

.back-to-top:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(245,158,11,0.4) !important;
}

/* Region title bars - gold accent */
.region-title {
    border-left: 4px solid var(--gold-500) !important;
}

/* DB highlight in loto */
.db-highlight {
    color: var(--lottery-red, #DC2626) !important;
    font-weight: 800 !important;
    background: rgba(220,38,38,0.06);
    padding: 1px 4px;
    border-radius: 4px;
}

/* Soi cau sidebar shortcuts â€” premium icons */
.soicau-shortcut-grid .shortcut-icon {
    transition: all 0.3s ease;
}

.soicau-shortcut-grid .shortcut-icon:hover {
    transform: scale(1.1) translateY(-2px);
}



/* ============================================
   9. "CÃ“ THá»‚ Báº N QUAN TÃ‚M" â€” Grid Enhancement
   ============================================ */
.interest-section {
    margin-top: 32px;
    padding: 32px 0;
}

.interest-section .section-title-fancy {
    justify-content: center;
}

/* ============================================
   RESPONSIVE â€” Mobile First Adjustments
   ============================================ */
@media (max-width: 767.98px) {
    .footer-transition {
        padding: 32px 16px;
    }
    
    .footer-cta-title {
        font-size: 18px;
    }
    
    .footer-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

[data-bs-theme="dark"] .color333,
[data-theme="dark"] .color333 {
    border-color: var(--border-color, #334155);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] .footer-transition,
[data-theme="dark"] .footer-transition {
    background: linear-gradient(180deg, var(--bg-main, #0F172A) 0%, #1A2340 100%);
}

[data-bs-theme="dark"] .footer-cta-title,
[data-theme="dark"] .footer-cta-title {
    color: var(--gold-300);
}

[data-bs-theme="dark"] .section-divider-icon,
[data-theme="dark"] .section-divider-icon {
    background: var(--bg-card, #1E293B);
}



