/* 
 * Bet88 Guide - Professional Information Platform
 * Theme: Premium Dark (Zinc/Blue) with Glassmorphism
 */

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

:root {
    /* Color Palette - Zinc Based Dark Mode */
    --b88-bg-body: #020617;
    /* Slate 950 */
    --b88-bg-surface: #0f172a;
    /* Slate 900 */
    --b88-bg-card: rgba(30, 41, 59, 0.5);
    /* Glassy Slate 800 */
    --b88-bg-card-hover: rgba(51, 65, 85, 0.6);

    /* Accents - Trustworthy Blue */
    --b88-accent: #3b82f6;
    /* Blue 500 */
    --b88-accent-dark: #2563eb;
    /* Blue 600 */
    --b88-accent-subtle: rgba(59, 130, 246, 0.1);

    /* Text */
    --b88-text-primary: #f8fafc;
    /* Slate 50 */
    --b88-text-secondary: #94a3b8;
    /* Slate 400 */
    --b88-text-tertiary: #64748b;
    /* Slate 500 */

    /* UI Elements */
    --b88-border: rgba(148, 163, 184, 0.1);
    --b88-border-hover: rgba(148, 163, 184, 0.2);
    --b88-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --b88-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --b88-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --b88-shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

    --b88-radius-sm: 6px;
    --b88-radius-md: 12px;
    --b88-radius-lg: 24px;

    --b88-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --b88-container-width: 1280px;
    --b88-header-height: 72px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--b88-header-height) + 2rem);
}

body {
    background-color: var(--b88-bg-body);
    color: var(--b88-text-primary);
    font-family: var(--b88-font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(147, 51, 234, 0.05), transparent 25%);
    background-attachment: fixed;
}

a {
    color: var(--b88-accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: hsl(217, 91%, 70%);
    /* Lighter Blue */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--b88-radius-md);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--b88-text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--b88-border);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--b88-text-secondary);
    font-size: 1.05rem;
}

strong {
    color: var(--b88-text-primary);
    font-weight: 600;
}

/* Layout */
.b88run-container {
    width: 100%;
    max-width: var(--b88-container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.b88run-section {
    padding: 5rem 0;
}

/* Header & Nav */
.b88run-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--b88-border);
    height: var(--b88-header-height);
    transition: all 0.3s ease;
}

.b88run-header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.b88run-brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--b88-text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.b88run-brand-logo span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--b88-accent), var(--b88-accent-dark));
    border-radius: 8px;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.b88run-nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.b88run-nav-link {
    color: var(--b88-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.b88run-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--b88-accent);
    transition: width 0.3s ease;
}

.b88run-nav-link:hover {
    color: var(--b88-text-primary);
}

.b88run-nav-link:hover::after {
    width: 100%;
}

.b88run-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--b88-border);
    color: var(--b88-text-primary);
    padding: 0.5rem;
    border-radius: var(--b88-radius-sm);
    cursor: pointer;
}

/* Hero Section */
.b88run-hero-banner {
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background glow effect for hero */
.b88run-hero-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.b88run-hero-title {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.b88run-hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--b88-text-secondary);
    font-weight: 400;
}

.b88run-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--b88-accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.b88run-cta-primary:hover {
    background: var(--b88-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    color: white;
}

/* Main Content Layout */
.b88run-content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(300px, 1fr);
    gap: 4rem;
    align-items: start;
}

/* Cards & Grid */
.b88run-grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.b88run-card-item {
    background: var(--b88-bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--b88-border);
    border-radius: var(--b88-radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
}

.b88run-card-item:hover {
    background: var(--b88-bg-card-hover);
    border-color: var(--b88-accent);
    transform: translateY(-5px);
    box-shadow: var(--b88-shadow-glow);
}

.b88run-card-icon {
    font-size: 1.75rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--b88-border);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.b88run-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--b88-text-primary);
}

/* Sidebar Styling */
aside {
    position: sticky;
    top: calc(var(--b88-header-height) + 2rem);
}

.b88run-sidebar-widget {
    background: var(--b88-bg-surface);
    border: 1px solid var(--b88-border);
    border-radius: var(--b88-radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.b88run-widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--b88-text-secondary);
    border-bottom: 1px solid var(--b88-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.b88run-link-list li {
    margin-bottom: 0.5rem;
}

.b88run-link-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    margin: 0 -0.75rem;
    border-radius: var(--b88-radius-sm);
    color: var(--b88-text-secondary);
    font-size: 0.95rem;
}

.b88run-link-list a:hover {
    color: var(--b88-text-primary);
    background: rgba(255, 255, 255, 0.03);
    padding-left: 1rem;
}

/* Prose Content */
.b88run-article-main {
    background: transparent;
}

.b88run-meta-info {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--b88-bg-surface);
    border: 1px solid var(--b88-border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--b88-text-tertiary);
    margin-bottom: 2rem;
}

.b88run-prose h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.b88run-prose p {
    line-height: 1.8;
}

.b88run-prose ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.b88run-prose li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--b88-text-secondary);
}

.b88run-prose li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--b88-accent);
    font-weight: bold;
}

.b88run-disclaimer {
    background: rgba(239, 68, 68, 0.05);
    /* Very subtle red tint */
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 1.5rem;
    border-radius: var(--b88-radius-md);
    margin-top: 4rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Footer */
.b88run-footer-wrapper {
    border-top: 1px solid var(--b88-border);
    background: var(--b88-bg-surface);
    margin-top: 6rem;
    padding: 5rem 0 2rem;
}

.b88run-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.b88run-footer-col h3 {
    color: var(--b88-text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.b88run-footer-links {
    list-style: none;
}

.b88run-footer-links li {
    margin-bottom: 0.75rem;
}

.b88run-footer-links a {
    color: var(--b88-text-tertiary);
}

.b88run-footer-links a:hover {
    color: var(--b88-accent);
}

.b88run-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--b88-border);
    color: var(--b88-text-tertiary);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .b88run-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    aside {
        position: static;
        margin-top: 3rem;
    }

    .b88run-footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .b88run-nav-menu {
        display: none;
    }

    .b88run-mobile-toggle {
        display: block;
    }

    .b88run-hero-title {
        font-size: 2.25rem;
    }
}

/* =========================================
   Compatibility & Page Specific Styles
   ========================================= */

:root {
    /* Legacy Variable Mappings */
    --b88-bg-primary: var(--b88-bg-body);
    --b88-bg-secondary: var(--b88-bg-surface);
    --b88-bg-tertiary: var(--b88-bg-card);
    --b88-text-main: var(--b88-text-primary);
    --b88-text-muted: var(--b88-text-secondary);
    --b88-radius: var(--b88-radius-md);
}

/* Content Boxes (Casino Games, etc) */
.b88run-content-box {
    background: var(--b88-bg-card);
    border: 1px solid var(--b88-border);
    border-radius: var(--b88-radius-md);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.b88run-content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--b88-accent);
    opacity: 0.5;
}

.b88run-content-box h2 {
    margin-top: 0;
    color: var(--b88-text-primary);
}

/* Review Boxes (Bonuses) */
.review-box {
    background: var(--b88-bg-card);
    border: 1px solid var(--b88-border);
    border-radius: var(--b88-radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.2s ease;
}

.review-box:hover {
    transform: translateY(-2px);
    border-color: var(--b88-accent);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--b88-border);
}

.pros h4 {
    color: #10b981;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cons h4 {
    color: #f43f5e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros ul,
.cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros li,
.cons li {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.75rem;
    color: var(--b88-text-secondary);
}

.pros li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

.cons li::before {
    content: "✗";
    color: #f43f5e;
    font-weight: bold;
}

@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Safety Alerts (Responsible Gambling) */
.safety-alert {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    padding: 2rem;
    border-radius: 0 var(--b88-radius-md) var(--b88-radius-md) 0;
    margin: 3rem 0;
}

.safety-alert h3 {
    color: #fca5a5;
    margin-top: 0;
}

.safety-alert li {
    color: #cbd5e1;
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.resource-card {
    background: var(--b88-bg-surface);
    padding: 2rem;
    border-radius: var(--b88-radius-md);
    border: 1px solid var(--b88-border);
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: var(--b88-accent);
    transform: translateY(-3px);
    background: var(--b88-bg-card-hover);
}

.resource-card h3 {
    color: var(--b88-accent);
    font-size: 1.1rem;
}

/* Tables */
.odds-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: var(--b88-bg-surface);
    border: 1px solid var(--b88-border);
    border-radius: var(--b88-radius-md);
    overflow: hidden;
}

.odds-table th,
.odds-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--b88-border);
    text-align: left;
    color: var(--b88-text-secondary);
}

.odds-table th {
    background: var(--b88-bg-card);
    color: var(--b88-text-primary);
    font-weight: 600;
}

.odds-table tr:last-child td {
    border-bottom: none;
}

/* Code & Examples */
.example-box {
    background: var(--b88-bg-surface);
    border-left: 4px solid var(--b88-accent);
    padding: 1.5rem;
    font-family: monospace;
    margin: 1.5rem 0;
    border-radius: 0 var(--b88-radius-md) var(--b88-radius-md) 0;
    color: var(--b88-text-secondary);
}

pre {
    background: var(--b88-bg-surface);
    padding: 1.5rem;
    border-radius: var(--b88-radius-md);
    overflow-x: auto;
    border: 1px solid var(--b88-border);
    color: var(--b88-text-secondary);
    margin: 1.5rem 0;
}

code {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--b88-text-primary);
}

/* FAQ Section Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    transition: all 0.3s ease;
    position: relative;
}

.faq-item:hover {
    border-color: var(--b88-accent);
    transform: translateX(5px);
    box-shadow: var(--b88-shadow-glow);
}

.faq-item h3 {
    color: var(--b88-text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-item h3::before {
    content: '❓';
    font-size: 1.5rem;
    opacity: 0.7;
}

.faq-item p {
    color: var(--b88-text-secondary);
    line-height: 1.8;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
}