/*
Theme Name: Casino
Description: Dark casino-focused Gutenberg theme with hero cards and sticky CTA
Version: 1.0.0
*/

/* ===============================
   ROOT VARIABLES
================================ */

:root {
    --bg-main: #0b0f14;
    --bg-card: #121823;
    --bg-soft: #161c28;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --primary: #22c55e;
    --primary-hover: #16a34a;

    --border-dark: #1f2937;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-card: 0 20px 40px rgba(0,0,0,0.45);

    --container-width: 1100px;
}

/* ===============================
   RESET & BASE
================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Inter, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);

    background:
        radial-gradient(
            ellipse at top,
            rgba(34,197,94,0.15),
            rgba(11,15,20,0.95)
        ),
        url("assets/casino-bg.jpg") center top / cover no-repeat fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ===============================
   LAYOUT
================================ */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 32px 24px;
}

.site-content {
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

/* ===============================
   HEADER
================================ */

.site-header {
    background: rgba(11,15,20,0.85);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-dark);
}

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

.site-logo {
    font-size: 20px;
    font-weight: 800;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--text-main);
}

/* ===============================
   FOOTER
================================ */

.site-footer {
    background: rgba(11,15,20,0.85);
    border-top: 1px solid var(--border-dark);
    color: var(--text-muted);
    font-size: 14px;
}

/* ===============================
   TYPOGRAPHY
================================ */

h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-top: 0;
}

h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

p {
    color: var(--text-muted);
    font-size: 16px;
}

/* ===============================
   GUTENBERG BLOCKS
================================ */

.site-content .wp-block {
    margin-bottom: 36px;
}

.wp-block-group {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-card);
    padding: 40px;
}

.wp-block-columns {
    gap: 32px;
}

.wp-block-image img {
    border-radius: var(--radius-md);
}

/* ===============================
   HERO CASINO CARD
================================ */

.wp-block-group.hero-casino {
    background: linear-gradient(
        180deg,
        rgba(18,24,35,0.92),
        rgba(18,24,35,0.98)
    );
    padding: 56px;
}

.wp-block-group.hero-casino h1 {
    font-size: 44px;
}

/* ===============================
   BUTTONS - PLAY NOW
================================ */

.wp-block-button__link,
.btn-play {
    display: inline-block;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    color: #02120a;
    font-weight: 900;
    padding: 14px 28px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 25px rgba(34,197,94,0.45);
    transition: all 0.2s ease;
}

.wp-block-button__link:hover,
.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(34,197,94,0.6);
}

/* ===============================
   STICKY PLAY BUTTON
================================ */

.sticky-play-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;

    background: linear-gradient(180deg, #22c55e, #16a34a);
    color: #02120a;
    font-weight: 900;
    padding: 16px 28px;
    border-radius: 999px;

    box-shadow: 0 20px 45px rgba(34,197,94,0.6);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.sticky-play-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .sticky-play-btn {
        left: 16px;
        right: 16px;
        bottom: 16px;
        text-align: center;
        padding: 18px;
        font-size: 18px;
    }
}

/* ===============================
   MOBILE TUNING
================================ */

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        gap: 14px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 30px; }
    h2 { font-size: 22px; }

    .wp-block-group {
        padding: 26px;
    }

    body {
        background-attachment: scroll;
        background-position: center top;
    }
}
/* ===============================
   HEADER HERO CARD
================================ */

.casino-hero {
    position: relative;
    min-height: 420px;
    margin-bottom: 60px;

    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;

    box-shadow: var(--shadow-card);
}

.casino-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(11,15,20,0.55),
            rgba(11,15,20,0.92)
        );
}

.casino-hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.casino-hero h1 {
    font-size: 46px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .casino-hero {
        min-height: 320px;
        margin-bottom: 40px;
    }

    .casino-hero-inner {
        padding: 32px;
    }

    .casino-hero h1 {
        font-size: 30px;
    }
}
