/* =================================================================
   TheVegasLab.com - Main Stylesheet
   Dark premium casino aesthetic
   ================================================================= */

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

:root {
    --bg-dark:       #09090e;
    --bg-card:       #111318;
    --bg-card-hover: #181b22;
    --bg-surface:    #0d0f14;
    --green-felt:    #1a6b3c;
    --green-light:   #22c55e;
    --green-glow:    #16a34a;
    --gold:          #c9a84c;
    --gold-light:    #e8cc7a;
    --gold-dim:      #8a6e2a;
    --blue-steel:    #1e6a8a;
    --blue-steel-lt: #2d8ab0;
    --blue-steel-dim:#144d66;
    --red-accent:    #dc2626;
    --text-primary:  #ede8df;
    --text-secondary:#908a80;
    --text-muted:    #5c5850;
    --border:        #22252e;
    --border-light:  #2e3240;
    --radius:        10px;
    --radius-lg:     16px;
    --max-width:     1100px;
    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700&family=Oswald:wght@400;600;700&family=Playfair+Display:wght@600;700;900&display=swap');

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 15, 20, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.logo:hover { color: var(--gold); }
.logo:hover .logo-img { opacity: 0.85; }
.logo-img {
    height: 34px;
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    max-height: 34px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s;
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.main-nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.main-nav a:hover { color: var(--text-primary); }
.nav-auth { display: flex; gap: 10px; margin-left: 12px; }

/* Nav buttons */
.btn-nav {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid var(--border-light);
    color: var(--text-secondary) !important;
    transition: all 0.2s;
}
.btn-nav:hover {
    border-color: var(--gold-dim);
    color: var(--gold) !important;
}
.btn-nav.btn-accent {
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    border-color: var(--gold);
    color: #0a0a0e !important;
}
.btn-nav.btn-accent:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: var(--gold-light);
    color: #0a0a0e !important;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
    }
    .main-nav.open { display: flex; }
    .nav-auth { 
        margin-left: 0; 
        flex-direction: column;
        width: 100%;
    }
    .btn-nav { text-align: center; }
}

/* --- Main --- */
.site-main {
    min-height: calc(100vh - 64px - 200px);
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 50%, rgba(30, 106, 138, 0.07) 0%, transparent 50%),
        var(--bg-dark);
}
.hero-content { max-width: 700px; margin: 0 auto; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.hero-tagline {
    font-size: 20px;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 8px;
}
.hero-sub {
    font-size: 16px;
    color: var(--text-secondary);
}

/* --- Section titles --- */
.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* --- Game Grid --- */
.games-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 60px;
}
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.game-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-primary);
}
.game-card:hover {
    border-color: var(--gold-dim);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.game-card-visual {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 80%, rgba(30, 106, 138, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
        var(--bg-surface);
    border-bottom: 1px solid var(--border);
}
.game-card-icon { font-size: 64px; }
.game-card-info { padding: 24px; }
.game-card-info h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}
.game-card-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}
.game-card-cta {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--green-light);
    transition: color 0.2s;
}
.game-card:hover .game-card-cta { color: var(--gold-light); }

/* --- Features --- */
.features-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}
.feature {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}
.feature h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 48px 24px 0;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-brand { max-width: 400px; }
.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.footer-brand .logo-img-sm {
    height: 26px;
    width: 26px;
    min-width: 26px;
    max-width: 26px;
    max-height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}
.footer-brand .footer-logo-text {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
}
.footer-tagline { color: var(--text-secondary); font-size: 14px; margin-top: 12px; }
.footer-disclaimer {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.5;
}
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}
.footer-col a {
    color: var(--text-secondary);
    font-size: 14px;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .footer-inner { flex-direction: column; }
    .footer-links { gap: 40px; }
    .hero { padding: 50px 20px 40px; }
}

/* --- Utility --- */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--green-felt);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover {
    background: var(--green-glow);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
}
.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--gold);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 8px;
    border: 1px solid var(--gold-dim);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: rgba(212, 168, 67, 0.1);
    border-color: var(--gold);
    color: var(--gold-light);
}

/* --- Article content (for future .md rendering) --- */
.article-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
.article-content h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.article-content h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
}
.article-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}
.article-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.article-content ul, .article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
}
.article-content li { margin-bottom: 6px; }
.article-content code {
    font-family: var(--font-mono);
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}
.article-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}
.article-content pre code { background: none; padding: 0; }
.article-content blockquote {
    border-left: 3px solid var(--gold-dim);
    padding-left: 16px;
    margin: 20px 0;
    color: var(--text-muted);
    font-style: italic;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.article-content th, .article-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}
.article-content th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-primary);
}
.article-content td { color: var(--text-secondary); }

.article-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* --- Game wrapper (for Play.aspx) --- */
.game-fullwidth {
    width: 100%;
    max-width: 100%;
    min-height: 600px;
}
