/* ==========================================
   SEO Landing Pages (Stock Market Casino)
   Shared styling for:
   - stock-market-casino.html
   - stock-market-casino-game.html
   - stock-market-slot-game.html
   ========================================== */

:root {
    --title-h: clamp(10vh, 14vh, 18vh);
    --title-w: min(92vw, 900px);
    --container-w: min(92vw, 980px);
}

/* Base */
html,
body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background video (same concept as homepage) */
#video-background-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top logo */
#casino-title-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5vh 2.5vw 1vh 2.5vw;
}

#casino-title-link {
    display: block;
    width: var(--title-w);
}

#casino-title-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Back arrow positioned inside the container */
.seo-back-button {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;
    text-decoration: none;
}

.seo-back-arrow {
    animation: arrowWhitePulse 1.4s infinite;
    filter: drop-shadow(0 0 6px white);
    cursor: pointer;
}

@keyframes arrowWhitePulse {
    0% {
        fill: rgba(255, 255, 255, 0.7);
        transform: scale(1);
    }

    50% {
        fill: rgba(255, 255, 255, 1);
        transform: scale(1.12);
    }

    100% {
        fill: rgba(255, 255, 255, 0.7);
        transform: scale(1);
    }
}

/* Content container */
.seo-container {
    position: relative;
    z-index: 2;
    width: var(--container-w);
    margin: 18px auto 0 auto;
    padding: 34px 28px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.62);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.65);
    padding-top: 52px;
}

/* Typography */
.seo-container h1 {
    margin: 0 0 16px 0;
    font-size: clamp(1.6rem, 4.2vw, 2.4rem);
    text-align: center;
}

.seo-container h2 {
    margin: 30px 0 10px 0;
    font-size: clamp(1.2rem, 3.2vw, 1.55rem);
    text-align: center;
}

.seo-container p {
    margin: 12px 0;
    font-size: 1.02rem;
    line-height: 1.6;
}

.seo-container ul,
.seo-container ol {
    margin: 12px auto;
    padding-left: 20px;
    max-width: 850px;
}

.seo-container li {
    margin: 10px 0;
    line-height: 1.55;
}

/* Links inside the content */
.seo-container a {
    color: #00ff99;
    text-decoration: underline;
}

.seo-disclaimer {
    margin-top: 28px;
    font-size: 0.9rem;
    opacity: 0.85;
    text-align: center;
}

/* Footer wrapper spacing (works with your existing casino_legal.css footer style too) */
.seo-footer {
    width: var(--container-w);
    margin: 0 auto 22px auto;
    position: relative;
    z-index: 2;
}

/* Give footer some breathing room above it */
.seo-footer .legal-links {
    margin-top: 22px;
    margin-bottom: 22px;
}

/* Mobile tweaks */
@media (max-width: 480px) {

    .seo-back-button {
        top: 12px;
        left: 12px;
    }

    .seo-back-arrow {
        width: 36px;
        height: 36px;
    }

    /* ✅ KEY FIX: reserve space for arrow */
    .seo-container {
        padding: 52px 16px 20px 16px;
        /* top right bottom left */
        margin-top: 10px;
    }

    .seo-container h1 {
        margin-top: 0;
        /* keep it tight but safe */
    }

    .seo-container p,
    .seo-container li {
        font-size: 0.98rem;
    }
}

/* Mobile landscape tweaks */
@media (max-height: 500px) and (min-width: 640px) {
    #casino-title-container {
        padding-top: 12px;
        padding-bottom: 6px;
    }

    .seo-container {
        margin-top: 10px;
        padding: 18px 18px;
    }
}