/*
Theme Name: Hello Elementor Child (Elite Architect Edition)
Theme URI: https://royal-clone-project.com
Description: Optimized Child Theme for High-Performance Elementor Sites.
Author: Elite WP Architect
Author URI: https://your-profile.com
Template: hello-elementor
Version: 1.0.1
*/

/* --- 1. Global Setup & Variables --- */
:root {
    --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 50%, #b38728 100%);
    --dark-bg: #0b0b0b;
    --accent-gold: #d4af37;
    --text-white: #ffffff;
    --container-width: 1200px;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Prompt', 'Kanit', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Design */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 10px; }

/* --- 2. Custom Header Styles (No Login/Lang) --- */
.site-header {
    background: rgba(11, 11, 11, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 0;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

.header-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 15px;
    transition: 0.3s;
}

.header-menu a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* --- 3. Home Page Core Layout --- */

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1516738901171-8eb4fc13bd20?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, var(--dark-bg) 5%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Buttons */
.btn-gold {
    background: var(--gold-gradient);
    color: #000 !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.4);
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(191, 149, 63, 0.7);
}

/* Game Grid Section */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gold-gradient);
    margin: 0 auto;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.game-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 450px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: 0.4s;
}

.game-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.game-card:hover img {
    transform: scale(1.1);
}

.card-info {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 40px 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 20%, transparent 100%);
    text-align: center;
}

/* Jackpot Bar */
.jackpot-wrapper {
    background: #151515;
    padding: 30px 0;
    border-top: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    text-align: center;
    margin: 40px 0;
}

.jackpot-amount {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-family: 'Courier New', monospace;
    font-weight: 900;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

/* --- 4. Responsive --- */
@media (max-width: 768px) {
    .header-menu { display: none; } /* ซ่อนเมนูบนมือถือเพื่อทำ Hamburger ทีหลัง */
    .hero-section { height: 60vh; }
    .section-padding { padding: 50px 0; }
}