/* Global CSS Stylesheet - Premium Dark/Gold Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,500;1,700&display=swap');

:root {
    --bg-dark: #0B132B;
    --bg-card: rgba(28, 37, 65, 0.45);
    --gold: #D4AF37;
    --gold-hover: #F3E5AB;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --light-blue: #53B6FF;
    --light-blue-glow: rgba(83, 182, 255, 0.3);
    --white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.65);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1C2541 100%);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background glows */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(83, 182, 255, 0.06) 0%, rgba(0,0,0,0) 70%);
    top: 5%;
    left: -10%;
    z-index: -1;
}

body::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(0,0,0,0) 70%);
    bottom: 5%;
    right: -10%;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, .luxury-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.text-gold {
    color: var(--gold) !important;
}

.text-blue {
    color: var(--light-blue) !important;
}

/* Navigation bar */
.navbar-premium {
    background: rgba(11, 19, 43, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold) !important;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--light-blue) !important;
    background: rgba(83, 182, 255, 0.1);
}

/* Premium Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #AA8C2C 100%);
    color: var(--bg-dark) !important;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    padding: 0.65rem 1.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--light-blue) 0%, #3596E6 100%);
    color: var(--bg-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--light-blue-glow);
}

.btn-blue-outline {
    border: 1px solid var(--light-blue);
    color: var(--light-blue) !important;
    background: transparent;
    font-weight: 600;
    border-radius: 30px;
    padding: 0.65rem 1.75rem;
    transition: var(--transition);
}

.btn-blue-outline:hover {
    background: rgba(83, 182, 255, 0.1);
    transform: translateY(-2px);
}

/* Glassmorphism Card style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(83, 182, 255, 0.4);
    box-shadow: 0 12px 35px rgba(0,0,0,0.45);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    padding: 10rem 0 7rem;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(11, 19, 43, 0.45) 0%, rgba(11, 19, 43, 0.95) 100%), url('../images/hero_banner.png') no-repeat center center;
    background-size: cover;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-top: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--gold);
    display: block;
    text-shadow: 0 0 15px var(--gold-glow);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Jackpot Board */
.jackpot-container {
    background: rgba(11, 19, 43, 0.8);
    border: 2px solid var(--gold);
    box-shadow: 0 0 25px var(--gold-glow);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.jackpot-label {
    font-size: 0.9rem;
    color: var(--light-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.jackpot-amount {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--gold-glow);
    animation: pulseGlow 2s infinite ease-in-out;
}

/* Countdown Clock */
.countdown-box {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.countdown-segment {
    background: rgba(28, 37, 65, 0.8);
    border: 1px solid rgba(83, 182, 255, 0.3);
    border-radius: 12px;
    padding: 1rem;
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.countdown-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--light-blue);
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Live Stats */
.stat-box {
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
}

.stat-box:last-child {
    border-right: none;
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-lbl {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* Step list */
.step-card {
    position: relative;
    padding-top: 3.5rem !important;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, #AA8C2C 100%);
    color: var(--bg-dark);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px var(--gold-glow);
}

/* Form Styles */
.form-control, .form-select {
    background: rgba(11, 19, 43, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--white) !important;
    border-radius: 10px;
    padding: 0.65rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--light-blue) !important;
    box-shadow: 0 0 10px var(--light-blue-glow) !important;
}

.form-label {
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.4rem;
}

/* Winners Table Styling */
.table-premium {
    color: var(--white) !important;
}

.table-premium th {
    background: rgba(11, 19, 43, 0.8) !important;
    border-bottom: 2px solid var(--gold) !important;
    color: var(--gold) !important;
    font-weight: 600;
}

.table-premium td {
    background: rgba(28, 37, 65, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    vertical-align: middle;
}

/* Profile Upload Image Circle */
.profile-upload-container {
    position: relative;
    display: inline-block;
}

.profile-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.profile-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--light-blue);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--bg-dark);
}

/* Animations */
@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 15px var(--gold-glow);
    }
    50% {
        text-shadow: 0 0 28px rgba(212, 175, 55, 0.7);
    }
    100% {
        text-shadow: 0 0 15px var(--gold-glow);
    }
}

/* Footer layout */
.footer-premium {
    background: #060B18;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
}

/* Claim status indicators */
.badge-status {
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.badge-status.pending {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.badge-status.approved {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-status.rejected {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ============================================================
   👑 PREMIUM CLASSY ANIMATIONS & DESIGN UPGRADES
   ============================================================ */

/* Metallic sweep shimmer on buttons */
.btn-gold, .btn-blue-outline, .btn-outline-light {
    position: relative;
    overflow: hidden;
}

.btn-gold::after, .btn-blue-outline::after, .btn-outline-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-30deg);
    transition: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.btn-gold:hover::after, .btn-blue-outline:hover::after, .btn-outline-light:hover::after {
    left: 150%;
}

/* Slow float movement for key components */
@keyframes floatUp {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

.animate-float {
    animation: floatUp 6s ease-in-out infinite;
}

/* Card hover glare effect */
.glass-card {
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(83, 182, 255, 0.04) 0%, rgba(212, 175, 55, 0.02) 50%, rgba(0,0,0,0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    transform: translate(0, 0);
}

.glass-card:hover::after {
    opacity: 1;
    transform: translate(25px, 25px);
}

/* Dynamic Scroll Reveal Engine */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay classes */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Custom Luxury Background Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
    mix-blend-mode: screen;
}

.glow-orb-blue {
    background: radial-gradient(circle, var(--light-blue) 0%, rgba(0,0,0,0) 70%);
    width: 350px;
    height: 350px;
}

.glow-orb-gold {
    background: radial-gradient(circle, var(--gold) 0%, rgba(0,0,0,0) 70%);
    width: 400px;
    height: 400px;
}

/* How It Works Progress Connector Line */
.step-connector-line {
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 29px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold) 0%, var(--light-blue) 100%);
    opacity: 0.25;
    z-index: -1;
}

.step-card {
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 8px 25px var(--gold-glow) !important;
}

/* Smooth input state scaling */
.form-control, .form-select {
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    transform: scale(1.01);
}

/* ============================================================
   📱 RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZATIONS)
   ============================================================ */

@media (max-width: 991.98px) {
    /* Navbar Mobile Adaptations */
    .navbar-premium {
        padding: 0.75rem 0;
    }
    .navbar-collapse .d-flex {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 0.75rem !important;
    }
    .navbar-collapse .d-flex a, 
    .navbar-collapse .d-flex button {
        width: 100%;
        text-align: center;
    }
    .navbar-nav {
        text-align: center;
        margin-top: 0.5rem;
    }
    .nav-link {
        margin: 0.25rem 0;
    }
}

@media (max-width: 767.98px) {
    /* General Typography */
    h1, .hero-title {
        font-size: 2.2rem !important;
    }
    h2 {
        font-size: 1.8rem !important;
    }
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* Hero section resizing */
    .hero-section {
        padding: 5rem 1rem 4rem;
        margin-top: 1rem;
        border-radius: 16px;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .hero-section .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    .hero-section .d-flex a {
        width: 100%;
    }

    /* Jackpot adjustments */
    .jackpot-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
        border-radius: 16px;
    }
    .jackpot-amount {
        font-size: 2.2rem;
    }
    .jackpot-amount span {
        font-size: 1.1rem !important;
    }

    /* Stats Grid stack borders */
    .stat-box {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1.2rem 0;
    }
    .stat-box:last-child {
        border-bottom: none;
    }

    /* Glass Cards spacing */
    .glass-card {
        padding: 1.5rem;
    }

    /* User Subnav stacking */
    .glass-card.p-3.d-flex.flex-wrap {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    .glass-card.p-3.d-flex.flex-wrap .d-flex.align-items-center {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .glass-card.p-3.d-flex.flex-wrap .d-flex.flex-wrap {
        justify-content: center !important;
        width: 100% !important;
    }
    .glass-card.p-3.d-flex.flex-wrap .d-flex.flex-wrap a {
        flex-grow: 1;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem !important;
    }
}

@media (max-width: 575.98px) {
    /* Countdown clocks resizing for narrow viewports */
    .countdown-box {
        gap: 0.5rem !important;
    }
    .countdown-segment {
        padding: 0.5rem !important;
        min-width: 60px !important;
        border-radius: 8px;
    }
    .countdown-number {
        font-size: 1.35rem !important;
    }
    .countdown-label {
        font-size: 0.65rem !important;
        letter-spacing: 0px !important;
    }
    
    /* Footer elements */
    .footer-premium {
        padding: 2.5rem 0 1.5rem;
        text-align: center;
    }
    .footer-premium .d-flex {
        justify-content: center;
    }
    .footer-premium .badge {
        margin-bottom: 0.5rem;
    }
}
