/* --- 1. CORE VARIABLES & RESET --- */
:root {
    --bg-dark: #0a0e17;       /* Main Background */
    --bg-card: #151a25;       /* Card/Section Background */
    --gold: #fdcb58;          /* Brand Gold */
    --gold-hover: #ffdb85;    /* Lighter Gold */
    --text-main: #ffffff;
    --text-muted: #8b929e;
    --danger: #ff4d4f;
    --container-width: 1240px;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* --- 2. UTILITY CLASSES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--bg-dark);
}
.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(253, 203, 88, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #364052;
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* --- 3. HEADER --- */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--gold); }
.logo i { font-style: normal; font-size: 1.8rem; line-height: 1; }

.auth-nav { display: flex; gap: 12px; }

/* --- 4. HERO SECTION --- */
.hero {
    position: relative;
    /* Using placeholder image. Replace URL with your actual banner */
    background-image: 
        linear-gradient(90deg, rgba(10,14,23, 1) 0%, rgba(10,14,23, 0.6) 50%, rgba(10,14,23, 0.2) 100%),
        url('img/royalreels.png'); 
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-text {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* --- 5. GAMES GRID --- */
.games-section { padding: 80px 0; }

.section-header { margin-bottom: 40px; }
.section-title { font-size: 2rem; color: var(--gold); margin-bottom: 10px; }
.section-subtitle { color: var(--text-muted); }

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    group: hover;
}

.game-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.game-img-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    background: #232936;
    position: relative;
    overflow: hidden;
}

.game-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.game-card:hover .game-img-wrap img { transform: scale(1.1); }

.game-meta {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.game-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-play {
    width: 100%;
    background: var(--gold);
    color: var(--bg-dark);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}
.btn-play:hover { background: var(--gold-hover); }

/* --- 6. SEO CONTENT STYLES (Tables & Lists) --- */
.seo-block {
    background: #0d111a;
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.seo-content {
    max-width: 900px; /* Optimal reading width */
    margin: 0 auto;
}

.seo-content h2 { font-size: 2rem; color: #fff; margin-bottom: 20px; }
.seo-content h3 { font-size: 1.5rem; color: var(--gold); margin-top: 40px; margin-bottom: 15px; }
.seo-content p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.05rem; }

/* Custom Lists */
.seo-content ul { margin-bottom: 30px; }
.seo-content ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    color: var(--text-main);
}
.seo-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 900;
    font-size: 1.2rem;
}

.seo-content ol { counter-reset: item; margin-bottom: 30px; }
.seo-content ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
    color: var(--text-main);
}
.seo-content ol li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: var(--gold);
    color: var(--bg-dark);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}

.seo-content table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-size: 0.95rem;
    min-width: 600px; /* Ensure readability on mobile */
}

.seo-content th {
    background: rgba(253, 203, 88, 0.15);
    color: var(--gold);
    font-weight: 700;
    text-align: left;
    padding: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.seo-content td {
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.seo-content tr:last-child td { border-bottom: none; }
.seo-content tr:hover td { background: rgba(255,255,255,0.02); color: #fff; }

/* --- 7. FOOTER --- */
footer {
    padding: 50px 0 30px;
    background: #080b12;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-warning {
    background: #3e1215;
    color: #ffcccc;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid var(--danger);
    font-weight: 600;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.footer-links a:hover { color: var(--gold); text-decoration: underline; }

.copyright { text-align: center; opacity: 0.6; }

/* --- 8. RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(4, 1fr); }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { min-height: auto; padding: 100px 0 60px; text-align: center; justify-content: center; }
    .hero-text { margin: 0 auto; }
    .hero h1 { font-size: 2.2rem; }
    .btn { width: 100%; margin-bottom: 10px; }
    .auth-nav .btn { width: auto; margin: 0; padding: 8px 16px; font-size: 0.8rem; }
    .header-content { padding: 0 15px; }
}
