/* =====================================================
   FiveM Page Styles
   ===================================================== */

.page-fivem {
    --primary-color: #f59e0b;
    --primary-color-rgb: 245, 158, 11;
}

/* ── Hero ── */

.hero-section--fivem {
    overflow: hidden;
}

.page-fivem .orbs-background { z-index: 0; }

/* ── Tier name colors ── */
.page-fivem .tier-card__name--rookie    { color: #94a3b8; }
.page-fivem .tier-card__name--hustler   { color: #fb923c; }
.page-fivem .tier-card__name--kingpin   { color: #f59e0b; }
.page-fivem .tier-card__name--syndicate { color: #ef4444; }

/* ── Featured badge dark text ── */
.page-fivem .tier-card__badge {
    color: #0a1628;
}

/* ── Frameworks feature grid ── */
.page-fivem .fm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-sm);
    margin-top: var(--gap-md);
    position: relative;
    z-index: 1;
}
.page-fivem .fm-card {
    background: linear-gradient(180deg, #1b1b1b, #171717);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--surf-bevel), var(--btn-lift);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.page-fivem .fm-card:hover {
    transform: translateY(-4px);
}
.page-fivem .fm-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.page-fivem .fm-card:hover::after {
    opacity: 1;
}
.page-fivem .fm-card__icon {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
}
.page-fivem .fm-card__icon svg {
    width: 100%;
    height: 100%;
}
.page-fivem .fm-card__title {
    font-family: var(--title-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}
.page-fivem .fm-card__desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ── Deco edge fade ── */
/* franklin, trevor and gunman are all cropped mid-body in the source art (the bottom
   57-73% of that edge is solid pixels). They are positioned so the cut sits behind a
   card, but fading the last stretch means the cut can never read as a hard line even
   if a layout shift lifts them clear. Same technique as .hero-banner in _shared.css. */
.page-fivem .section-deco {
    -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 97%);
            mask-image: linear-gradient(to bottom, #000 66%, transparent 97%);
}

/* ── Deco positioning (desktop) ── */
/* Offsets only. Never set top/right/left/transform here - see the anchoring
   contract in _shared.css. Scoped per band so the bands never fight. */
@media (min-width: 992px) {
    .page-fivem #plans .section-deco { --deco-x: -66px; --deco-y: 127px; }
    .page-fivem #hardware .section-deco { --deco-x: -66px; --deco-y: 117px; }
    .page-fivem #faq .section-deco { --deco-x: 0px; --deco-y: 79px; }
}

/* ── Deco positioning (tablet) ── */
@media (min-width: 769px) and (max-width: 991px) {
    .page-fivem #plans .section-deco { --deco-x: -46px; --deco-y: 143px; }
    .page-fivem #hardware .section-deco { --deco-x: -47px; --deco-y: 802px; }
    .page-fivem #faq .section-deco { --deco-x: 0px; --deco-y: 92px; }
}

/* ── Deco positioning (small) ── */
@media (min-width: 576px) and (max-width: 768px) {
    .page-fivem #plans .section-deco { --deco-x: -54px; --deco-y: 187px; }
    .page-fivem #hardware .section-deco { --deco-x: -55px; --deco-y: 263px; }
    .page-fivem #faq .section-deco { --deco-x: 0px; --deco-y: 92px; }
}

/* ── Deco positioning (phone) ── */
@media (max-width: 575px) {
    .page-fivem #plans .section-deco { --deco-x: -54px; --deco-y: 245px; }
    .page-fivem #hardware .section-deco { --deco-x: -55px; --deco-y: 283px; }
    .page-fivem #faq .section-deco { --deco-x: 0px; --deco-y: 136px; }
}

/* ── Responsive (FiveM-specific overrides) ── */

@media (max-width: 960px) {
    .page-fivem .orbs-background {
        opacity: 0.4;
    }
    .page-fivem .fm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .page-fivem .fm-grid {
        grid-template-columns: 1fr;
    }
}
