/* =============================================================
   LYRIHOST — Brand overlay
   Loaded AFTER the Vite-built app.css. Adds the website's design
   vocabulary (gold-gradient, glass, arabesque, panel-mockup, etc.)
   without requiring a CSS rebuild. All custom rules use the `.lh-`
   prefix so they cannot collide with Paymenter / Filament classes.
   ============================================================= */
:root {
    --lh-gold:        #d4af37;
    --lh-gold-light:  #e8c964;
    --lh-gold-dark:   #a88b2c;
    --lh-green:       #006c35;
    --lh-green-light: #00873e;
    --lh-bg:          #0a0a0a;
    --lh-surface:     #131313;
    --lh-elevated:    #1a1a1a;
    --lh-border:      #2a2a2a;
    --lh-fg:          #f5f5f5;
    --lh-muted:       #a0a0a0;
    --lh-shadow-gold:  0 0 32px -8px rgba(212, 175, 55, 0.35);
    --lh-shadow-card:  0 12px 32px -16px rgba(0, 0, 0, 0.6);
    --lh-font-display: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
    --lh-font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* ---- Body backdrop (radial gold/green tints, fixed) ---- */
html.dark body,
html[lang="ar"] body {
    background-image:
        radial-gradient(circle at 15% -10%, rgba(212, 175, 55, 0.06), transparent 45%),
        radial-gradient(circle at 90% 10%,  rgba(0, 108, 53, 0.05), transparent 45%);
    background-attachment: fixed;
}

::selection { background: rgba(212, 175, 55, 0.3); color: #fff; }

/* ---- Headings use IBM Plex Sans Arabic ---- */
h1, h2, h3, h4, h5, h6, .lh-display {
    font-family: var(--lh-font-display);
    letter-spacing: -0.01em;
}

/* ---- Mono for numbers / panel stats ---- */
.lh-mono, .lh-num {
    font-family: var(--lh-font-mono);
    font-feature-settings: "tnum", "lnum";
}

/* ---- Gold gradient text (logo wordmark, hero highlights) ---- */
.lh-gold-gradient {
    background: linear-gradient(135deg, var(--lh-gold-light) 0%, var(--lh-gold) 50%, var(--lh-gold-dark) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

/* ---- Soft gold border ---- */
.lh-border-gold-soft { border-color: rgba(212, 175, 55, 0.25) !important; }

/* ---- Glass effects ---- */
.lh-glass {
    background: rgba(19, 19, 19, 0.6);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
            backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.lh-glass-elevated {
    background: rgba(26, 26, 26, 0.75);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
            backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* ---- Glows & shadows ---- */
.lh-shadow-gold { box-shadow: var(--lh-shadow-gold); }
.lh-shadow-card { box-shadow: var(--lh-shadow-card); }
.lh-ring-gold {
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.25),
        0 0 32px -10px rgba(212, 175, 55, 0.4);
}

/* ---- Patterns ---- */
.lh-pattern-dots {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 18px 18px;
}
.lh-pattern-arabesque {
    background-image: radial-gradient(circle at 1px 1px, rgba(212, 175, 55, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
}

/* ---- Primary CTA button (gradient) ---- */
.lh-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 0.75rem;
    font-weight: 600;
    color: #0a0a0a;
    background: linear-gradient(135deg, var(--lh-gold-light) 0%, var(--lh-gold) 55%, var(--lh-gold-dark) 100%);
    box-shadow: 0 4px 16px -4px rgba(212, 175, 55, 0.45);
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}
.lh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px -8px rgba(212, 175, 55, 0.6);
}

.lh-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.3rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--lh-gold);
    transition: background .2s, border-color .2s;
    text-decoration: none;
}
.lh-btn-outline:hover {
    background: rgba(212, 175, 55, 0.06);
    border-color: var(--lh-gold);
}

/* ---- Cards ---- */
.lh-card {
    position: relative;
    border-radius: 1rem;
    border: 1px solid var(--lh-border);
    background: rgba(19, 19, 19, 0.7);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    box-shadow: var(--lh-shadow-card);
}
.lh-card-interactive {
    position: relative;
    border-radius: 1rem;
    border: 1px solid var(--lh-border);
    background: rgba(19, 19, 19, 0.7);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    box-shadow: var(--lh-shadow-card);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.lh-card-interactive:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 24px 48px -24px rgba(212, 175, 55, 0.25);
}

/* ---- Chip / eyebrow ---- */
.lh-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.06);
    color: var(--lh-gold);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---- Hero atmosphere helpers ---- */
.lh-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 8vw, 6rem);
}
.lh-hero-glow-gold {
    position: absolute;
    inset-inline-start: 25%;
    top: 0;
    width: 520px;
    height: 520px;
    background: rgba(212, 175, 55, 0.10);
    border-radius: 9999px;
    filter: blur(120px);
    pointer-events: none;
}
.lh-hero-glow-green {
    position: absolute;
    inset-inline-end: 25%;
    top: 8rem;
    width: 420px;
    height: 420px;
    background: rgba(0, 108, 53, 0.10);
    border-radius: 9999px;
    filter: blur(100px);
    pointer-events: none;
}

/* ---- Arabesque decoration positioning ---- */
.lh-arabesque-corner {
    position: absolute;
    inset-inline-end: -8rem;
    top: 3rem;
    width: 600px;
    opacity: 0.04;
    pointer-events: none;
}

/* ---- Trust strip ---- */
.lh-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--lh-muted);
}
.lh-trust-item svg { color: var(--lh-gold); }

/* ---- Footer link styling ---- */
.lh-footer-col-title {
    font-family: var(--lh-font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--lh-fg);
    margin-bottom: 1rem;
}
.lh-footer-link {
    display: block;
    color: var(--lh-muted);
    font-size: 0.875rem;
    transition: color .2s;
    text-decoration: none;
    padding: 0.2rem 0;
}
.lh-footer-link:hover { color: var(--lh-gold); }

.lh-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--lh-border);
    background: rgba(19, 19, 19, 0.6);
    color: var(--lh-fg);
    transition: border-color .2s, color .2s;
}
.lh-social-btn:hover { border-color: rgba(212, 175, 55, 0.5); color: var(--lh-gold); }

/* ---- Login / auth card ---- */
.lh-auth-shell {
    position: relative;
    overflow: hidden;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 4rem 1.25rem;
}
.lh-auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 26rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(19, 19, 19, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
            backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 32px 80px -32px rgba(212, 175, 55, 0.2);
    padding: 2rem;
}

/* ---- Animations (light) ---- */
@keyframes lh-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.lh-animate-float { animation: lh-float 6s ease-in-out infinite; }

@keyframes lh-pulse-gold {
    0%,100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    50%     { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); }
}
.lh-animate-pulse-gold { animation: lh-pulse-gold 2.5s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .lh-animate-float, .lh-animate-pulse-gold { animation: none; }
    .lh-card-interactive { transition: none; }
}

/* ---- Stat block (Lyri-Panel style) ---- */
.lh-stat {
    border-radius: 1rem;
    border: 1px solid var(--lh-border);
    background: rgba(26, 26, 26, 0.4);
    padding: 1.1rem;
}
.lh-stat-label { font-size: 0.75rem; color: var(--lh-muted); }
.lh-stat-value {
    font-family: var(--lh-font-mono);
    font-weight: 700;
    font-size: 1.6rem;
    margin-top: 0.25rem;
}
.lh-stat-value.is-gold  { color: var(--lh-gold); }
.lh-stat-value.is-green { color: var(--lh-green-light); }
.lh-stat-hint { font-size: 0.7rem; color: var(--lh-muted); margin-top: 0.15rem; }

/* =============================================================
   Phase 13.1 — Grid rules (replace Tailwind arbitrary values
   that do not exist in the prebuilt CSS).
   ============================================================= */
.lh-footer-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) and (max-width: 1023px) {
    .lh-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .lh-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

.lh-products-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .lh-products-grid { grid-template-columns: 260px 1fr; }
}

.lh-h1-tight { line-height: 1.1; }

/* =============================================================
   Phase 14 — Game card with official artwork
   ============================================================= */
.lh-game-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    min-height: 280px;
    border-radius: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.15);
    background: var(--lh-surface);
    transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
    text-decoration: none;
    display: block;
}
.lh-game-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 55, 0.15);
    transform: translateY(-6px);
}

.lh-game-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.9) brightness(0.7);
    transition: transform .6s ease, filter .4s ease;
}
.lh-game-card:hover .lh-game-card-bg {
    transform: scale(1.08);
    filter: saturate(1.1) brightness(0.8);
}

.lh-game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,10,0.30) 0%,
        rgba(10,10,10,0.70) 50%,
        rgba(10,10,10,0.95) 100%
    );
}
.lh-game-card-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(212,175,55,0.05) 70%,
        rgba(212,175,55,0.15) 100%
    );
    pointer-events: none;
}

.lh-game-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    gap: 0.4rem;
}
.lh-game-card-logo {
    height: 36px;
    width: auto;
    max-width: 160px;
    margin-bottom: 0.4rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
    align-self: flex-start;
}
.lh-game-card-title {
    font-family: var(--lh-font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.55);
}
.lh-game-card-subtitle {
    font-family: var(--lh-font-sans, "Tajawal","Segoe UI",sans-serif);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.72);
    margin: 0;
}
.lh-game-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lh-gold);
    font-weight: 600;
    margin-top: 0.6rem;
    transition: gap .3s ease;
    font-size: 0.92rem;
}
.lh-game-card:hover .lh-game-card-cta { gap: 0.9rem; }

/* Mark for games WITHOUT an image yet — pure gradient surface */
.lh-game-card.is-fallback .lh-game-card-bg {
    background: linear-gradient(135deg, var(--gc-c1, #1a1a1a) 0%, var(--gc-c2, #2a2a2a) 100%);
    filter: none;
}
.lh-game-card.is-fallback:hover .lh-game-card-bg { transform: none; }
.lh-game-card.is-fallback .lh-game-card-overlay {
    background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.5) 100%);
}
.lh-game-card-fallback-mark {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    font-family: var(--lh-font-mono);
    font-size: 0.7rem;
    color: rgba(212,175,55,0.7);
    letter-spacing: 0.06em;
}

@media (max-width: 768px) {
    .lh-game-card {
        min-height: 220px;
        aspect-ratio: 16/10;
    }
    .lh-game-card-logo { height: 28px; }
    .lh-game-card-title { font-size: 1.25rem; }
}
