/* ==========================================================================
   LuckyDraw India - Premium Dark & Gold Luxury Design System
   ========================================================================== */

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

:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(22, 22, 28, 0.65);
    --bg-card-hover: rgba(30, 30, 38, 0.85);
    --gold-primary: #d4af37;
    --gold-hover: #b38f1d;
    --gold-light: #f3e5ab;
    --gold-gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #b38f1d 100%);
    --dark-gradient: linear-gradient(135deg, #0d0d11 0%, #15151b 100%);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.25);
    --gold-glow-strong: 0 0 35px rgba(212, 175, 55, 0.5);
    --border-glass: rgba(212, 175, 55, 0.15);
    --border-glass-hover: rgba(212, 175, 55, 0.3);
    --text-primary: #f8f9fa;
    --text-muted: #a0a0b0;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
        var(--dark-gradient);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.luxury-text {
    color: var(--gold-primary);
    font-weight: 800;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .luxury-text {
        background: var(--gold-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: none;
    }
}

/* Ensure hero copy stays visible */
.hero-title {
    color: #f8f9fa !important;
}

.hero-lead {
    color: #a0a0b0 !important;
}

.lottery-thumb {
    background: linear-gradient(135deg, #1a1a22 0%, #2a2418 100%);
    height: 180px;
    min-height: 180px;
    object-fit: cover;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.currency::before {
    content: "\20B9";
}

.text-muted {
    color: #b8b8c8 !important;
}

/* Dark theme form controls — labels & placeholders must stay readable */
.form-label {
    color: #d4af37 !important;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    background-color: #121218 !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
    color: #f8f9fa !important;
}

.form-control:focus,
.form-select:focus {
    background-color: #16161e !important;
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.2) !important;
    color: #f8f9fa !important;
}

.form-control::placeholder {
    color: #8a8a9a !important;
    opacity: 1;
}

.form-control::-webkit-input-placeholder {
    color: #8a8a9a !important;
}

.input-group-text {
    background-color: #121218 !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), var(--gold-glow);
    transform: translateY(-5px);
}

/* Luxury Buttons */
.btn-gold {
    background: var(--gold-gradient);
    border: none;
    border-radius: 30px;
    color: #000 !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 12px 28px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6), var(--gold-glow-strong);
    transform: scale(1.03);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 12px 28px;
    transition: var(--transition-smooth);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary) !important;
    box-shadow: var(--gold-glow);
}

/* Header & Navigation */
.navbar-luxury {
    background: rgba(10, 10, 12, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 0;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.nav-link-luxury {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 12px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link-luxury:hover, .nav-link-luxury.active {
    color: var(--gold-primary) !important;
}

.nav-link-luxury::after {
    background: var(--gold-gradient);
    bottom: -8px;
    content: '';
    height: 2px;
    left: 50%;
    position: absolute;
    transition: var(--transition-smooth);
    width: 0;
}

.nav-link-luxury:hover::after, .nav-link-luxury.active::after {
    left: 0;
    width: 100%;
}

/* Countdown Timer */
.countdown-box {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.countdown-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    height: 85px;
    justify-content: center;
    width: 85px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.countdown-value {
    color: var(--gold-primary);
    font-size: 1.8rem;
    font-weight: 800;
}

.countdown-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Ticket Grid/Selection */
.ticket-bubble {
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    height: 48px;
    justify-content: center;
    margin: 6px;
    transition: var(--transition-smooth);
    width: 48px;
    user-select: none;
}

.ticket-bubble:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: scale(1.1);
}

.ticket-bubble.selected {
    background: var(--gold-gradient);
    border-color: transparent;
    color: #000;
    box-shadow: var(--gold-glow-strong);
}

/* Footer Section */
.footer-luxury {
    background: #060608;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 20px;
}

.footer-link {
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}
