/* ============================================
   Premium Casino Website - Main Stylesheet
   Based on Professional Casino Design Standards
   ============================================ */

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Casino Gold Theme (Reference: lodi291app.ph) */
    --primary-color: #D4AF37;
    --primary-dark: #B8941F;
    --primary-light: #E5C158;
    
    /* Accent Colors - Gold/Orange Gold */
    --accent-gold: #FFB84D;
    --accent-gold-dark: #FF9500;
    --accent-blue: #00B4FF;
    
    /* Background Colors - Dark Theme with Texture */
    --bg-primary: #1A1A1A;
    --bg-secondary: #252525;
    --bg-tertiary: #2A2A2A;
    --bg-card: #2F2F2F;
    --bg-card-hover: #353535;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #888888;
    --text-dark: #1A1A2E;
    
    /* Border & Divider */
    --border-color: #2A2A3E;
    --divider-color: #333348;
    
    /* Status Colors */
    --success: #00C853;
    --warning: #FFB300;
    --error: #FF1744;
    --info: #00B4FF;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Typography */
    --font-primary: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Arial Black', 'Arial Bold', Arial, sans-serif;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none !important;
    border-bottom: none !important;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
    text-decoration: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== Container ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-sm {
    padding: var(--spacing-lg) 0;
}

/* ========== Header Navigation ========== */
.header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo:hover {
    color: var(--primary-color);
}

/* Navigation Menu */
nav {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-sm);
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: none !important;
    text-decoration: none !important;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color) !important;
    text-decoration: none !important;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown > a span {
    font-size: 0.7rem;
    margin-left: 4px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 220px;
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-xs);
    border: 1px solid var(--border-color);
    z-index: 100;
    list-style: none;
    /* Extend hover area */
    padding-top: 10px;
    margin-top: -10px;
}

/* Show dropdown menu on hover with delayed close mechanism */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    margin-bottom: var(--spacing-xs);
    list-style: none;
}

/* Ensure all list items have no list markers */
.dropdown-menu,
.dropdown-menu ul,
.nav-menu,
.nav-menu ul {
    list-style: none;
    padding-left: 0;
}

.dropdown-menu a {
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    display: block;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none !important;
    border-bottom: none !important;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background: var(--bg-card-hover);
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.btn {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-lg {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ========== Hero Section ========== */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-banner.webp') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Game Grid ========== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.game-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.game-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--bg-secondary);
}

.game-card-info {
    padding: var(--spacing-sm);
    text-align: center;
}

.game-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card-provider {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== Provider Section ========== */
.provider-section {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
}

.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.provider-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.provider-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--spacing-md);
    object-fit: contain;
}

.provider-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.provider-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== Promo Cards ========== */
.promo-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.promo-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
}

.promo-amount {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-desc {
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    line-height: 1.6;
}

/* ========== Cards ========== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-secondary);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

/* ========== Grid Layouts ========== */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

.grid-5 {
    grid-template-columns: 1fr;
}

/* ========== Footer ========== */
.footer {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
    border-bottom: none !important;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
    text-decoration: none !important;
    border-bottom: none !important;
}

.footer-bottom {
    border-top: 1px solid var(--divider-color);
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-bottom a,
.footer a {
    text-decoration: none !important;
    border-bottom: none !important;
}

.footer-bottom a:hover,
.footer a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-decoration: none !important;
    border-bottom: none !important;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    text-decoration: none !important;
    border-bottom: none !important;
}

/* ========== Compliance Notice ========== */
.compliance-notice {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
    border-left: 4px solid var(--warning);
}

.compliance-notice p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.age-restriction {
    display: inline-block;
    background: var(--error);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: var(--spacing-xs);
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ========== Utility Classes ========== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.hidden {
    display: none;
}

/* ========== Responsive Design ========== */
@media (min-width: 768px) {
    html {
        font-size: 17px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        border: none;
    }
    
    .nav-menu.active {
        position: static;
        flex-direction: row;
        border: none;
        margin: 0;
    }
    
    .nav-menu > li > a {
        border-bottom: none !important;
        text-decoration: none !important;
    }
    
    .nav-menu > li > a:hover,
    .nav-menu > li > a.active {
        border-bottom: 2px solid var(--primary-color) !important;
        text-decoration: none !important;
    }
    
    /* Ensure dropdown menus are visible on desktop */
    .nav-menu .dropdown-menu {
        display: none;
    }
    
    .nav-menu .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .grid-5 {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero {
        min-height: 600px;
    }
    
    .section {
        padding: var(--spacing-xxl) 0;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
