/* Royal Reels - Main Styles */

:root {
    /* Brand Colors derived from Image */
    --bg-dark: #0b0c15;
    --bg-card: #161826;
    --bg-card-hover: #1e2133;
    --primary-purple: #8b5cf6;
    --primary-purple-hover: #7c3aed;
    --accent-gold: #fbbf24;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --success-green: #10b981;

    /* Dimensions */
    --container-width: 1200px;
    --header-height: 70px;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: white;
}
.text-gold { color: var(--accent-gold); }
.text-purple { color: var(--primary-purple); }

/* Header */
header {
    background: rgba(11, 12, 21, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo svg { width: 32px; height: 32px; fill: var(--accent-gold); }
.nav-links { display: none; gap: 20px; }
.header-actions { display: flex; gap: 10px; }

@media(min-width: 768px) {
    .nav-links { display: flex; }
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    background: radial-gradient(circle at 50% 0%, #2e1065 0%, var(--bg-dark) 60%);
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.1;
}
.hero h1 span { color: var(--primary-purple); }
.hero-banner {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
    display: block;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.bonus-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}
.bonus-icon {
    font-size: 2.5rem;
    background: linear-gradient(to bottom right, #fbbf24, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bonus-details h3 { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; }
.bonus-details .amount { font-size: 2rem; font-weight: 800; color: white; }

/* Game Grid */
.section-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 60px;
}
@media(min-width: 768px) {
    .games-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .hero h1 { font-size: 4rem; }
}
.game-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}
.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.game-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1f2937, #111827);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    text-align: center;
}
.game-card .game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.game-card .game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 1;
}
.game-name { margin-top: 10px; font-weight: 700; font-size: 0.9rem; }

/* Winners Ticker (Simulated) */
.winners-bar {
    background: var(--bg-card);
    padding: 15px 0;
    margin-bottom: 60px;
    border-radius: 8px;
    overflow: hidden;
}
.winner-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.winner-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.winner-amount { color: var(--success-green); font-weight: 700; }
.avatar {
    width: 32px; height: 32px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* SEO Content Styling */
.seo-content {
    background: #11121d;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 80px;
    border: 1px solid rgba(255,255,255,0.05);
}

.seo-content h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-purple);
    padding-left: 15px;
}

.seo-content h2:first-child { margin-top: 0; }

.seo-content h3 {
    font-size: 1.4rem;
    color: #e5e7eb;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

.seo-content ul {
    margin-bottom: 2rem;
    padding-left: 20px;
}

.seo-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #d1d5db;
}

.seo-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

.seo-content ol {
    counter-reset: my-counter;
    margin-bottom: 2rem;
    padding-left: 20px;
}

.seo-content ol li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #d1d5db;
}

.seo-content ol li::before {
    counter-increment: my-counter;
    content: counter(my-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--primary-purple);
}

.seo-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.seo-content th {
    background-color: #1f2133;
    color: var(--accent-gold);
    padding: 15px;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.seo-content td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #d1d5db;
}

.seo-content tr:last-child td { border-bottom: none; }
.seo-content tr:hover td { background-color: rgba(255,255,255,0.02); }

/* Responsive Table */
@media (max-width: 600px) {
    .seo-content table { display: block; overflow-x: auto; white-space: nowrap; }
    .seo-content { padding: 20px; }
    .seo-content h2 { font-size: 1.5rem; }
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0 100px 0; /* Extra padding bottom for sticky mobile CTA */
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-brands {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    opacity: 0.5;
    flex-wrap: wrap;
}

/* Mobile Sticky Footer */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(11, 12, 21, 0.95);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    z-index: 999;
    backdrop-filter: blur(5px);
}
.sticky-mobile-cta .btn { width: 100%; }
@media(min-width: 768px) {
    .sticky-mobile-cta { display: none; }
    footer { padding-bottom: 40px; }
}
