/* ============================================================
   PrismForge — Main Stylesheet
   /css/style.css
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-deep:    #0a0a0f;
    --bg-base:    #0f0f14;
    --bg-surface: #191923;
    --bg-raised:  #1e1e2a;
    --border:     rgba(255,255,255,0.07);
    --border-md:  rgba(255,255,255,0.12);
    --accent:     #5DCAA5;
    --accent-dim: rgba(93,202,165,0.12);
    --accent-mid: rgba(93,202,165,0.3);
    --text-pri:   #ffffff;
    --text-sec:   rgba(255,255,255,0.5);
    --text-muted: rgba(255,255,255,0.28);
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --scroll:     240px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg-base);
    color: var(--text-pri);
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* --- Typography ------------------------------------------- */
h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; line-height: 1.1; }
h2 { font-size: 1.35rem; font-weight: 500; }

/* --- Scrollbar -------------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.pf-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 2rem;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
}

.pf-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-nav__icon {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pf-nav__icon svg { width: 15px; height: 15px; }

.pf-nav__wordmark {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-pri);
}

.pf-nav__wordmark span { color: var(--accent); }

.pf-nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.pf-nav__links a {
    font-size: 13px;
    color: var(--text-sec);
    transition: color 0.15s;
}

.pf-nav__links a:hover { color: var(--text-pri); }

.pf-nav__cta-wrap { position: relative; }

.pf-btn-cta {
    background: var(--accent);
    color: #04342C;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px 18px;
    transition: opacity 0.15s, transform 0.1s;
}

.pf-btn-cta:hover { opacity: 0.88; }
.pf-btn-cta:active { transform: scale(0.97); }

/* ============================================================
   TOAST
   ============================================================ */
.pf-toast {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-surface);
    border: 0.5px solid var(--accent-mid);
    color: var(--accent);
    font-size: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.pf-toast.show { opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.pf-hero {
    position: relative;
    padding: 90px 2rem 72px;
    text-align: center;
    overflow: hidden;
}

.pf-hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 55% at 50% -5%, rgba(93,202,165,0.13) 0%, transparent 70%);
    pointer-events: none;
}

.pf-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 75%);
    pointer-events: none;
}

.pf-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--accent-dim);
    border: 0.5px solid var(--accent-mid);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 28px;
}

.pf-hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

.pf-hero h1 {
    position: relative;
    color: var(--text-pri);
    margin-bottom: 18px;
}

.pf-hero h1 span { color: var(--accent); }

.pf-hero__sub {
    font-size: 1rem;
    color: var(--text-sec);
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.pf-hero__btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pf-btn-primary {
    background: var(--accent);
    color: #04342C;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    padding: 11px 26px;
    transition: opacity 0.15s, transform 0.1s;
}

.pf-btn-primary:hover { opacity: 0.88; }
.pf-btn-primary:active { transform: scale(0.97); }

.pf-btn-outline {
    background: transparent;
    color: var(--text-sec);
    font-size: 14px;
    border: 0.5px solid var(--border-md);
    border-radius: var(--radius-md);
    padding: 11px 26px;
    transition: border-color 0.15s, color 0.15s;
}

.pf-btn-outline:hover { border-color: rgba(255,255,255,0.28); color: var(--text-pri); }

/* ============================================================
   STATS BAR
   ============================================================ */
.pf-stats {
    background: #12121a;
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.pf-stat {
    padding: 20px 36px;
    text-align: center;
    border-right: 0.5px solid var(--border);
    flex: 1;
    min-width: 130px;
}

.pf-stat:last-child { border-right: none; }

.pf-stat__num {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-pri);
}

.pf-stat__num span { color: var(--accent); }

.pf-stat__lbl {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.pf-section {
    padding: 56px 2rem;
    background: var(--bg-base);
}

.pf-section--alt {
    background: #12121a;
}

.pf-section__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 1rem;
}

.pf-section__tag {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 500;
}

.pf-section__title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-pri);
}

.pf-section__sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.pf-scroll-btns { display: flex; gap: 6px; flex-shrink: 0; }

.pf-scrbtn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    border: 0.5px solid var(--border-md);
    color: var(--text-sec);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.pf-scrbtn:hover { background: rgba(255,255,255,0.1); color: var(--text-pri); }

/* ============================================================
   SCROLL ROW
   ============================================================ */
.pf-scroll-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pf-scroll-wrap::-webkit-scrollbar { display: none; }

.pf-scroll-row {
    display: flex;
    gap: 14px;
    width: max-content;
}

/* ============================================================
   SERVER CARDS
   ============================================================ */
.pf-scard {
    width: 218px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    text-decoration: none;
    display: block;
}

.pf-scard:hover { border-color: rgba(93,202,165,0.35); transform: translateY(-2px); }

.pf-scard__accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
}

.pf-scard__icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.pf-scard__icon img { width: 100%; height: 100%; object-fit: cover; }

.pf-scard__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-pri);
    margin-bottom: 5px;
}

.pf-scard__desc {
    font-size: 12px;
    color: rgba(255,255,255,0.38);
    line-height: 1.55;
    margin-bottom: 16px;
}

.pf-scard__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pf-scard__players {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-sec);
}

.pf-scard__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 5px var(--accent);
}

.pf-scard__dot--off { background: #E24B4A; box-shadow: 0 0 5px #E24B4A; }

.pf-scard__genre {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* ============================================================
   MEDIA CARDS
   ============================================================ */
.pf-mcard {
    width: 255px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    display: block;
    text-decoration: none;
}

.pf-mcard:hover { border-color: var(--accent-mid); transform: translateY(-2px); }

.pf-mcard__thumb {
    height: 140px;
    position: relative;
    overflow: hidden;
    background: #111;
}

.pf-mcard__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.pf-mcard:hover .pf-mcard__thumb img { transform: scale(1.04); }

.pf-mcard__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.pf-mcard:hover .pf-mcard__overlay { opacity: 1; }

.pf-mcard__play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-mcard__play svg { width: 13px; height: 13px; margin-left: 2px; }

.pf-mcard__server-chip {
    position: absolute;
    top: 9px;
    left: 9px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.pf-mcard__info { padding: 11px 13px; }

.pf-mcard__author {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
}

.pf-mcard__avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-raised);
    overflow: hidden;
    flex-shrink: 0;
}

.pf-mcard__avatar img { width: 100%; height: 100%; object-fit: cover; }

.pf-mcard__author-name {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-mcard__title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-pri);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   CREATOR CARDS
   ============================================================ */
.pf-ccard {
    width: 185px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 14px 16px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    text-decoration: none;
}

.pf-ccard:hover { border-color: var(--accent-mid); transform: translateY(-2px); }

.pf-ccard__avatar-wrap {
    position: relative;
    margin-bottom: 13px;
}

.pf-ccard__avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
    background: var(--bg-raised);
    display: block;
}

.pf-ccard__platform {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
}

.pf-ccard__platform svg { width: 10px; height: 10px; }

.pf-ccard__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-pri);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pf-ccard__subs {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pf-ccard__servers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 14px;
}

.pf-ccard__chip {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.pf-ccard__link {
    font-size: 11px;
    color: var(--accent);
    border: 0.5px solid var(--accent-mid);
    border-radius: var(--radius-sm);
    padding: 5px 14px;
    background: var(--accent-dim);
    margin-top: auto;
    transition: background 0.15s;
}

.pf-ccard:hover .pf-ccard__link { background: rgba(93,202,165,0.2); }

/* ============================================================
   FOOTER
   ============================================================ */
.pf-footer {
    background: var(--bg-deep);
    border-top: 0.5px solid var(--border);
    padding: 26px 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.pf-footer__copy {
    font-size: 12px;
    color: var(--text-muted);
}

.pf-footer__links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.pf-footer__links a {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.15s;
}

.pf-footer__links a:hover { color: var(--text-sec); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .pf-nav { padding: 0 1rem; }
    .pf-nav__links { display: none; }
    .pf-hero { padding: 64px 1rem 52px; }
    .pf-section { padding: 40px 1rem; }
    .pf-stats { flex-direction: column; }
    .pf-stat { border-right: none; border-bottom: 0.5px solid var(--border); }
    .pf-stat:last-child { border-bottom: none; }
    .pf-footer { flex-direction: column; align-items: flex-start; }
}
