/* ═══════════════════════════════════════════════
   LANDING PAGE — Overrides and additions to home.css
   ═══════════════════════════════════════════════ */

/* ── Immersive fixed background ── */
.landing-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.landing-bg::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(220, 38, 38, .08) 0%, transparent 70%);
    filter: blur(100px);
    animation: bgDrift1 20s ease-in-out infinite alternate;
}

.landing-bg::after {
    content: "";
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(147, 51, 234, .08) 0%, transparent 70%);
    filter: blur(100px);
    animation: bgDrift2 18s ease-in-out infinite alternate;
}

.landing-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

@keyframes bgDrift1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 8%) scale(1.1); }
}
@keyframes bgDrift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-6%, -5%) scale(1.15); }
}

/* ── Ensure content sits above fixed bg ── */
.landing-main {
    position: relative;
    z-index: 1;
}

.landing-footer {
    position: relative;
    z-index: 1;
}

/* ── Dark base on the fixed bg, transparent body so it shows through ── */
.landing-bg {
    background: #0a0a0a;
}

body {
    background: transparent !important;
}

header {
    z-index: 1000;
}

footer {
    position: relative;
    z-index: 1;
}

.section-epic,
.footer-epic,
.footer-home,
.page-header,
.auth-page,
.auth-main,
footer,
.home-section,
.hero-section,
.game-details-section,
.dev-section,
.patreon-section,
.games-section {
    background: transparent !important;
}

/* ── Explore Our Games button: solid dark background ── */
.btn-hero-secondary {
    background: #1a1a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-hero-secondary:hover {
    background: #252540 !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* ── Profile card: solid visible background ── */
.profile-header-epic {
    background: rgba(20, 20, 40, 0.85) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
}

/* ── Consistent footer across all pages ── */
.footer-home {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 3rem 0 !important;
    text-align: center !important;
    background: transparent !important;
    position: relative;
    z-index: 1;
}

.footer-home p {
    color: var(--text-muted) !important;
    font-size: 0.875rem !important;
}

.footer-home .footer-link {
    color: var(--text-muted) !important;
    text-decoration: none;
}

.footer-home .footer-link:hover {
    color: var(--text-primary) !important;
}

/* ── Uniform section widths — match hero-inner (1200px) ── */
.landing-main .patreon-inner {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 1rem;
}

.landing-main .dev-grid {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 1rem;
}

.landing-main .patreon-card {
    max-width: 100%;
}

/* ── LoyalFans purple theme — overrides on .patreon-card ── */
.loyalfans-theme .patreon-icon {
    background: linear-gradient(135deg, var(--accent-secondary), #7c22c9);
    box-shadow: 0 8px 30px rgba(147, 51, 234, .4);
}

.loyalfans-theme .perk:hover {
    border-color: rgba(147, 51, 234, .3);
    background: rgba(147, 51, 234, .05);
}

.loyalfans-theme .perk-icon {
    background: rgba(147, 51, 234, .15);
}

.loyalfans-theme .perk-icon svg {
    color: var(--accent-secondary);
}

.loyalfans-theme .btn-patreon {
    background: linear-gradient(135deg, var(--accent-secondary), #7c22c9);
    box-shadow: 0 4px 25px rgba(147, 51, 234, .5);
}

.loyalfans-theme .btn-patreon:hover {
    box-shadow: 0 8px 40px rgba(147, 51, 234, .7);
}

.landing-main .games-section .container {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}

.landing-main .games-section .container::-webkit-scrollbar {
    height: 6px;
}

.landing-main .games-section .container::-webkit-scrollbar-track {
    background: transparent;
}

.landing-main .games-section .container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.2);
    border-radius: 3px;
}

/* ── Games scroll: no vertical scroll, always-visible horizontal bar ── */
.games-scroll,
.games-scroll-wrapper .games-scroll,
div.games-scroll {
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    scrollbar-width: auto !important;
    scrollbar-color: rgba(255,255,255,0.35) rgba(255,255,255,0.08) !important;
}

.games-scroll::-webkit-scrollbar,
div.games-scroll::-webkit-scrollbar {
    width: 0px !important;
    height: 10px !important;
    display: block !important;
    background: rgba(255,255,255,0.08) !important;
}

.games-scroll::-webkit-scrollbar-track,
div.games-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08) !important;
    border-radius: 5px !important;
    border: none !important;
}

.games-scroll::-webkit-scrollbar-thumb,
div.games-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.35) !important;
    border-radius: 5px !important;
    border: none !important;
}

.games-scroll::-webkit-scrollbar-thumb:hover,
div.games-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5) !important;
}

/* ── Shared page title block — used by /games and /photoshoots ── */
.page-title-section {
    padding: 4rem 0 1.5rem;
    background: transparent !important;
}

.page-title-section .section-title-epic {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0 0 0.6rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ffffff; /* fallback if gradient text not supported */
    line-height: 1.1;
}

.page-title-section .section-subtitle {
    color: var(--text-muted, #8b8b9a);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .page-title-section { padding: 2.5rem 0 1rem; }
    .page-title-section .section-subtitle { font-size: 1rem; padding: 0 1rem; }
}

/* ── Subscribe row (two CTAs side-by-side at the bottom of the patreon-card) ── */
.landing-subscribe-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.btn-subscribestar-large {
    background: linear-gradient(135deg, #1e3a8a, #2b4db0) !important;
    box-shadow: 0 4px 25px rgba(30, 58, 138, 0.4) !important;
}

.btn-subscribestar-large:hover {
    box-shadow: 0 8px 40px rgba(30, 58, 138, 0.55) !important;
}

/* ── Hero SubscribeStar button (alongside Patreon) ── */
.btn-hero-subscribestar {
    background: linear-gradient(135deg, #1e3a8a, #2b4db0);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.4);
}
.btn-hero-subscribestar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.55);
    color: #fff;
}

/* ── Landing-page-specific responsive layout ── */

.landing-meet {
    padding-top: 3rem;
}

.landing-meet-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.landing-meet-photo {
    flex-shrink: 0;
    width: 360px;
    aspect-ratio: 360 / 470;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    position: relative;
}

.landing-meet-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 968px) {
    .landing-meet-inner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .landing-meet-photo {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 600px) {
    .landing-main .patreon-card { padding: 2rem 1.25rem; }
    .landing-meet { padding-top: 1.5rem; }
    .landing-meet-photo { max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
    .landing-bg::before,
    .landing-bg::after {
        animation: none;
    }
}
