/* ============================================
   DARK LUXE CASINO THEME — Complete Visual Override
   Replaces purple/yellow with black/gold/emerald
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-purple: #0D0D0D;
    --primary-yellow: #D4AF37;
    --dark-grey: #F0E6D2;
    --text-color: #F0E6D2;
    --bg-light: #0A0A0A;
    --brand-1: #0D0D0D;
    --brand-2: #1A1A2E;
    --accent-1: #D4AF37;
    --accent-2: #F5D76E;
    --emerald: #2ECC71;
    --emerald-dark: #1A9B52;
    --surface: #141414;
    --surface-2: #1E1E1E;
    --surface-3: #2A2A2A;
    --border-subtle: rgba(212,175,55,0.12);
    --text-muted: #8A8A8A;
    --text-body: #C0C0C0;
}

* {
    font-family: 'Outfit', 'Poppins', sans-serif !important;
}

body {
    background-color: #0A0A0A !important;
    color: var(--text-body) !important;
}

::selection {
    background: rgba(212,175,55,0.35) !important;
    color: #fff !important;
}

/* Scrollbar */
::-webkit-scrollbar-track { background: #111 !important; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4AF37, #1A1A2E) !important;
    border-radius: 10px !important;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F5D76E, #D4AF37) !important;
}

/* ---- Page Wrapper ---- */
.page-wrapper {
    background: #111111 !important;
    box-shadow: none !important;
}

/* ---- Navbar ---- */
.navbar {
    background: linear-gradient(135deg, #0D0D0D 0%, #1A1A2E 100%) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 1px 0 var(--border-subtle) inset !important;
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    color: #F0E6D2 !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
}

.logo span {
    color: #D4AF37 !important;
    text-shadow: 0 0 20px rgba(212,175,55,0.4) !important;
}

/* ---- Buttons ---- */
.btn-login {
    background: linear-gradient(135deg, #D4AF37 0%, #B8962E 50%, #D4AF37 100%) !important;
    background-image: linear-gradient(135deg, #D4AF37 0%, #B8962E 50%, #D4AF37 100%) !important;
    color: #0D0D0D !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(212,175,55,0.3) !important;
    border: 1px solid rgba(212,175,55,0.3) !important;
}
.btn-login:hover {
    box-shadow: 0 8px 30px rgba(212,175,55,0.5) !important;
    filter: brightness(1.1) !important;
}

.btn-contact {
    background: linear-gradient(135deg, #2ECC71 0%, #1A9B52 100%) !important;
    background-image: linear-gradient(135deg, #2ECC71 0%, #1A9B52 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(46,204,113,0.3) !important;
}
.btn-contact:hover {
    box-shadow: 0 8px 25px rgba(46,204,113,0.35) !important;
}

.btn:hover {
    box-shadow: 0 8px 22px rgba(212,175,55,0.25) !important;
}

:focus-visible {
    outline: 2px solid #D4AF37 !important;
}

/* ---- Hero Section ---- */
.hero {
    background: #111 !important;
}

.hero-slide {
    background: linear-gradient(160deg, #111111 0%, #1A1A2E 100%) !important;
}

.hero-slide::before {
    background: radial-gradient(ellipse at 70% 50%, rgba(212,175,55,0.08) 0%, transparent 60%) !important;
}

.hero-text h1 {
    letter-spacing: -1px !important;
}

.hero-text h1 .purple-text,
.hero-text h1 span,
.hero-text h1 b,
.hero-text h1 em {
    background: linear-gradient(90deg, #D4AF37, #F5D76E, #D4AF37) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.hero-text h1 .black-text {
    color: #F0E6D2 !important;
    -webkit-text-fill-color: #F0E6D2 !important;
    background: none !important;
}

.hero-text p {
    color: #999 !important;
}

.hero-image {
    filter: drop-shadow(0 20px 40px rgba(212,175,55,0.15)) drop-shadow(0 0 80px rgba(212,175,55,0.08)) !important;
}

/* Carousel */
.carousel-dots {
    background: transparent;
}
.dot {
    border-color: #D4AF37 !important;
    background: transparent !important;
}
.dot.active {
    background: linear-gradient(90deg, #D4AF37, #F5D76E) !important;
    box-shadow: 0 0 12px rgba(212,175,55,0.5) !important;
    border-color: #D4AF37 !important;
}

/* ---- Sections ---- */
.section {
    background: #111111 !important;
}

.section[style*="background:#f9f9fb"],
.section[style*="background: #f9f9fb"] {
    background: #0D0D0D !important;
}

.section-title {
    color: #F0E6D2 !important;
}

.section-title::after {
    background: linear-gradient(90deg, #D4AF37, #2ECC71) !important;
    box-shadow: 0 0 14px rgba(212,175,55,0.4) !important;
}

.yellow-triangle {
    border-top-color: #D4AF37 !important;
}

/* ---- Game Cards — Premium Redesign ---- */
.game-card {
    background: var(--surface) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
}
.game-card:hover {
    border-color: rgba(212,175,55,0.5) !important;
    box-shadow: 0 8px 32px rgba(212,175,55,0.18), 0 4px 20px rgba(0,0,0,0.5) !important;
    transform: translateY(-8px) scale(1.02) !important;
}
.game-card::before {
    background: linear-gradient(120deg, transparent 0%, rgba(212,175,55,0.08) 50%, transparent 100%) !important;
}

/* Image wrapper — taller, proper aspect ratio */
.game-image-wrapper {
    background: linear-gradient(135deg, #0D0D0D, #1A1A2E) !important;
    height: 200px !important;
    position: relative !important;
    overflow: hidden !important;
}
/* Gradient overlay on image for title readability */
.game-image-wrapper::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%) !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

/* Image fills the card properly */
.game-image-wrapper .game-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
    mix-blend-mode: normal !important;
    border-radius: 0 !important;
    transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1) !important;
}
.game-card:hover .game-image-wrapper .game-image,
.game-card:hover .game-image {
    transform: scale(1.08) !important;
}

/* Title info bar */
.game-info {
    background: var(--surface) !important;
    border-top: 1px solid var(--border-subtle);
    padding: 12px 14px !important;
}

.game-title, .game-title-card {
    color: #F0E6D2 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
}

/* Games grid — better sizing */
.games-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 22px !important;
    padding: 30px 5% 50px !important;
}

/* Responsive grid */
@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 16px !important;
    }
    .game-image-wrapper {
        height: 160px !important;
    }
}
@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .game-image-wrapper {
        height: 130px !important;
    }
    .game-title, .game-title-card {
        font-size: 12px !important;
    }
    .game-info {
        padding: 8px 10px !important;
    }
}

/* ---- Process Section ---- */
.process-content h3 {
    color: #F0E6D2 !important;
}
.process-content p {
    color: #999 !important;
}

.icon-circle {
    background: radial-gradient(circle at center, #2ECC71 0%, #0D2818 100%) !important;
    box-shadow: 0 15px 50px rgba(46,204,113,0.25) !important;
    border: 2px solid rgba(46,204,113,0.3) !important;
}
.icon-circle::after {
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%) !important;
}
.icon-circle:hover {
    box-shadow: 0 0 0 6px rgba(212,175,55,0.1), 0 15px 40px rgba(46,204,113,0.3) !important;
}

.icon-circle img {
    filter: brightness(1.5) contrast(1.1) drop-shadow(0 0 10px rgba(255,255,255,0.15)) !important;
    mix-blend-mode: screen !important;
}

.process-divider {
    background: linear-gradient(90deg, transparent, #D4AF37, transparent) !important;
}

/* ---- Concept Cards ---- */
.concept-card h3 {
    color: #F0E6D2 !important;
}
.concept-card img {
    border-radius: 14px !important;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* ---- Animations Section ---- */
.animations-text h2 {
    background: linear-gradient(90deg, #D4AF37, #F5D76E) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* ---- Dev Cards ---- */
.dev-card {
    background: var(--surface) !important;
    border: 1px solid var(--border-subtle) !important;
}
.dev-card:hover {
    border-color: rgba(212,175,55,0.35) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important;
    transform: translateY(-6px) !important;
}

.card-header {
    background: linear-gradient(135deg, #D4AF37, #B8962E) !important;
    color: #0D0D0D !important;
    font-weight: 800 !important;
}

.card-body {
    background: var(--surface) !important;
}
.card-body p {
    color: #C0C0C0 !important;
}

.dev-card ul li {
    color: #999 !important;
}
.dev-card ul li::before {
    color: #2ECC71 !important;
}

/* ---- About Section ---- */
.about-stats-container {
    background: linear-gradient(135deg, #1A1A2E 0%, #0D0D0D 100%) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}
.about-stats-container::after {
    background: repeating-linear-gradient(to right, transparent, transparent 20px, rgba(212,175,55,0.04) 20px, rgba(212,175,55,0.04) 60px) !important;
}

.about-stat-item {
    color: #E0D5C0 !important;
}
.about-stat-item span {
    color: #2ECC71 !important;
}

/* ---- Footer ---- */
.landscape-footer {
    border-top: 1px solid var(--border-subtle);
}
.landscape-footer::before {
    background: linear-gradient(to bottom, #111111, transparent) !important;
}

.footer-badge {
    background: linear-gradient(135deg, #D4AF37, #B8962E) !important;
    color: #0D0D0D !important;
    box-shadow: 0 10px 40px rgba(212,175,55,0.3) !important;
}
.footer-badge a {
    color: #0D0D0D !important;
    font-weight: 800 !important;
}
.footer-badge:hover {
    box-shadow: 0 14px 40px rgba(212,175,55,0.45) !important;
}

.footer-links a {
    color: rgba(255,255,255,0.8) !important;
}
.footer-links a:hover {
    color: #D4AF37 !important;
}

.footer {
    background: #0A0A0A !important;
    border-top-color: #D4AF37 !important;
}
.footer::before {
    background: linear-gradient(90deg, transparent, #D4AF37, #2ECC71, transparent) !important;
}

.footer-col h3 { color: #D4AF37 !important; }
.footer-col p, .footer-col a { color: #888 !important; }

.footer a::after, .footer-links a::after {
    background: linear-gradient(90deg, #D4AF37, #2ECC71) !important;
}

/* ---- Modal ---- */
.modal-overlay {
    background-color: rgba(0,0,0,0.7) !important;
}
.modal-content {
    background: #1A1A1A !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,175,55,0.1) inset !important;
}
.modal-close {
    color: #D4AF37 !important;
}
.modal-title {
    color: #F0E6D2 !important;
}

.form-group label {
    color: #C0C0C0 !important;
}
.form-group input, .form-group select {
    border-bottom-color: #444 !important;
    color: #E0D5C0 !important;
    background: transparent !important;
}
.form-group input::placeholder {
    color: #666 !important;
}
.form-group select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23D4AF37" viewBox="0 0 16 16"%3E%3Cpath d="M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/%3E%3C/svg%3E') !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.15) !important;
}

.btn-login-submit {
    background: linear-gradient(135deg, #D4AF37, #B8962E) !important;
    background-color: #D4AF37 !important;
    color: #0D0D0D !important;
    box-shadow: 0 4px 15px rgba(212,175,55,0.3) !important;
}
.btn-login-submit:hover {
    box-shadow: 0 8px 25px rgba(212,175,55,0.45) !important;
}

.validation-msg {
    color: #ef4444 !important;
}

/* ---- Credit Footer ---- */
.mb-credit-footer {
    background: #0A0A0A !important;
}
.mb-credit-text {
    color: #888 !important;
}
.mb-credit-logo {
    background: rgba(20,20,20,0.95) !important;
    border-color: rgba(212,175,55,0.2) !important;
    box-shadow: 0 0 10px rgba(212,175,55,0.1) !important;
}

/* ---- Games Grid Background ---- */
.games-grid {
    background: #0D0D0D !important;
    border-radius: 0 !important;
}

/* ---- Filter Bar (more_games.html) ---- */
.filter-bar {
    background: #111111 !important;
}
.filter-btn {
    background: var(--surface) !important;
    color: #C0C0C0 !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}
.filter-btn:hover {
    color: #D4AF37 !important;
    border-color: rgba(212,175,55,0.3) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important;
}
.filter-btn.active {
    background: linear-gradient(135deg, #D4AF37, #B8962E) !important;
    color: #0D0D0D !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 4px 18px rgba(212,175,55,0.35) !important;
}
.filter-btn.active:hover {
    box-shadow: 0 8px 25px rgba(212,175,55,0.5) !important;
}

.search-container {
    background: var(--surface) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}
.search-container:focus-within {
    border-color: #D4AF37 !important;
    box-shadow: 0 8px 25px rgba(212,175,55,0.15) !important;
}
.search-input {
    color: #E0D5C0 !important;
}
.search-input::placeholder {
    color: #666 !important;
}
.search-icon {
    stroke: #D4AF37 !important;
}

.view-more-btn {
    background: linear-gradient(135deg, #D4AF37, #B8962E) !important;
    color: #0D0D0D !important;
    box-shadow: 0 6px 20px rgba(212,175,55,0.3) !important;
}
.view-more-btn:hover {
    box-shadow: 0 12px 30px rgba(212,175,55,0.45) !important;
}

/* ---- Games Hero (more_games) ---- */
.games-hero {
    background: linear-gradient(135deg, #0D0D0D, #1A1A2E) !important;
}
.games-hero::before {
    background: radial-gradient(circle at center, rgba(212,175,55,0.08) 0%, transparent 60%) !important;
}

/* ---- Game Detail Page ---- */
.game-page {
    background: #111111 !important;
}
.game-container {
    background: transparent !important;
}

.poster-window {
    border-color: #D4AF37 !important;
    background: var(--surface) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.poster-fallback {
    background: linear-gradient(135deg, #0D0D0D, #1A1A2E) !important;
}

.info-box h1 {
    color: #F0E6D2 !important;
}
.info-row {
    border-bottom-color: rgba(212,175,55,0.1) !important;
}
.info-label {
    color: #D4AF37 !important;
}
.info-value {
    color: #C0C0C0 !important;
}

.btn-play {
    background: linear-gradient(135deg, #D4AF37, #B8962E) !important;
    color: #0D0D0D !important;
    box-shadow: 0 12px 24px rgba(212,175,55,0.25) !important;
}
.btn-play:hover {
    box-shadow: 0 18px 36px rgba(212,175,55,0.35) !important;
}

.about-section h2 {
    color: #F0E6D2 !important;
}
.about-text {
    color: #999 !important;
}
.about-bullets {
    color: #999 !important;
}

.debug-panel {
    background: rgba(10,10,10,0.95) !important;
    border-color: rgba(212,175,55,0.2) !important;
}

.more-games-section {
    border-top-color: rgba(212,175,55,0.15) !important;
}
.more-games-section h2 {
    color: #F0E6D2 !important;
}

/* Override inline styles on animation section dark panel */
.section > div[style*="background: linear-gradient(135deg, #0A0D1F, #281B7A)"] {
    background: linear-gradient(135deg, #0D0D0D, #1A1A2E) !important;
    border: 1px solid var(--border-subtle) !important;
}

/* ---- Subtle Animations ---- */
@keyframes goldShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.logo span {
    background: linear-gradient(90deg, #D4AF37 20%, #F5D76E 40%, #D4AF37 60%, #B8962E 80%, #D4AF37 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: goldShimmer 4s linear infinite !important;
}

/* Glow pulse for cards on hover */
.game-card:hover .game-image-wrapper {
    box-shadow: inset 0 0 30px rgba(212,175,55,0.05);
}

/* Softer p text globally */
p {
    color: #999;
}

/* Section inline style overrides */
h2[style*="color: var(--dark-grey)"] {
    color: #F0E6D2 !important;
}
p[style*="color: #555"] {
    color: #999 !important;
}
