/* ═══════════════════════════════════════════════════════════════════
   VIAL SMP — stylesheet
   Token katmanı Vial marka tasarım sisteminden (Vial Design Sheet.html /
   vial.social) alınmıştır; SMP'ye özgü içerik (item-slot, tarif ızgarası,
   mod rozetleri) bu sistemin üzerine ikinci bir "SMP aksan" katmanı olarak
   eklenmiştir.
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Azeret+Mono:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Menda Black';
    src: url('fonts/Menda%20Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'Menda Bold';
    src: url('fonts/Menda%20Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Menda Semibold';
    src: url('fonts/Menda%20Semibold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Menda Medium';
    src: url('fonts/Menda%20Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

/* ═══ Design tokens ═══ */
:root {
    /* Vial red scale (marka) */
    --vial-50: #f5f6f8;
    --vial-100: #fbd4d0;
    --vial-200: #f7a9a1;
    --vial-300: #f47e71;
    --vial-400: #f05442;
    --vial-500: #ec2913;
    --vial-600: #bd210f;
    --vial-700: #8e180b;
    --vial-800: #5e1008;
    --vial-900: #2f0804;
    --vial-950: #0b0b0c;

    /* Semantic (marka) */
    --bg-color: var(--vial-950);
    --text-color: var(--vial-50);
    --text-muted: #8a8a86;
    --accent-color: var(--vial-500);
    --glow-color: var(--vial-500);
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);

    /* SMP aksan paleti — Minecraft/vanilla+ kimliği için ikinci katman.
       Marka kırmızısının yanında; item-slot, rozet ve tarif bileşenlerinde kullanılır. */
    --smp-emerald: #5b8731;
    --smp-emerald-light: #7cb342;
    --smp-gold: #d9a441;
    --smp-copper: #b3703a;
    --smp-stone: #9c9690;

    /* Tipografi */
    --font-alt: 'Menda Black', sans-serif;
    --font-main: 'Atkinson Hyperlegible', sans-serif;
    --font-mono: 'Azeret Mono', monospace;
    --font-btn: 'Menda Bold', sans-serif;

    /* Hareket */
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Glassmorphism */
    --glass-bg: rgba(20, 20, 24, 0.7);
    --glass-bg-light: rgba(255, 255, 255, 0.03);
    --glass-bg-dark: rgba(10, 10, 12, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-blur: 20px;
    --glass-blur-heavy: 40px;

    /* Gölgeler */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(236, 41, 19, 0.3);

    /* Degradeler */
    --gradient-vial: linear-gradient(135deg, var(--vial-600) 0%, var(--vial-500) 50%, var(--vial-400) 100%);
    --gradient-emerald: linear-gradient(135deg, #3f5f21 0%, var(--smp-emerald) 55%, var(--smp-emerald-light) 100%);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
}

/* ═══ Reset & taban ═══ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 8%, rgba(236, 41, 19, 0.09), transparent 40%),
        radial-gradient(circle at 88% 92%, rgba(91, 135, 49, 0.08), transparent 45%),
        linear-gradient(180deg, #0b0b0c 0%, #101014 100%);
    z-index: -2;
    pointer-events: none;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

a { color: inherit; }
img { max-width: 100%; display: block; }

/* Klavye odak göstergesi — erişilebilirlik */
a:focus-visible,
button:focus-visible,
.item-slot:focus-visible,
input:focus-visible,
.mod-card:focus-visible,
.filter-chip:focus-visible {
    outline: 2px solid var(--smp-gold);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(236, 41, 19, 0.22);
    background: rgba(236, 41, 19, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.eyebrow.eyebrow-smp {
    border-color: rgba(91, 135, 49, 0.35);
    background: rgba(91, 135, 49, 0.1);
}

.section-title {
    font-family: var(--font-alt);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.section-desc {
    font-family: var(--font-main);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 60ch;
}

/* ═══════════════════════ Butonlar ═══════════════════════ */
.btn {
    padding: 0.9rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-btn);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    height: 3.4rem;
    border: none;
}

.btn-primary {
    background: var(--gradient-vial);
    color: #000;
    position: relative;
}
.btn-primary:hover { transform: scale(1.02); box-shadow: var(--shadow-glow); }
.btn-primary.btn-success { background: var(--gradient-emerald); color: #fff; }

.btn-secondary,
.btn-glass {
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover,
.btn-glass:hover {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--vial-50);
    border: 1px solid rgba(236, 41, 19, 0.45);
}
.btn-outline:hover { background: rgba(236, 41, 19, 0.08); border-color: var(--vial-500); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); color: var(--vial-50); border-color: var(--glass-border-hover); }

.btn:disabled,
.btn.btn-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-sm { height: 2.6rem; padding: 0.5rem 1.2rem; font-size: 0.78rem; }
.btn-block { width: 100%; }

.text-transition { transition: opacity 0.2s ease; opacity: 1; display: inline-block; }
.text-transition.fade { opacity: 0; }

/* ═══════════════════════ Pill / rozet sistemi ═══════════════════════ */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pill-muted { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.65); }
.pill-online { background: rgba(98, 245, 103, 0.08); border: 1px solid rgba(98, 245, 103, 0.28); color: #62F567; }
.pill-offline { background: rgba(236, 41, 19, 0.08); border: 1px solid rgba(236, 41, 19, 0.28); color: var(--vial-300); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid;
}
.badge-client { color: var(--smp-gold); border-color: rgba(217, 164, 65, 0.4); background: rgba(217, 164, 65, 0.08); }
.badge-server { color: var(--smp-emerald-light); border-color: rgba(124, 179, 66, 0.4); background: rgba(91, 135, 49, 0.1); }

.dep-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════ Kart temeli ═══════════════════════ */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    /* Not: "all" ile geniş bir transition GSAP'ın opacity/transform
       animasyonlarıyla çakışıp titreme/gecikme yaratıyordu — yalnızca
       GSAP'ın dokunmadığı özellikler burada geçişli. */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.card:hover { border-color: var(--glass-border-hover); }

/* ═══════════════════════ Nav — yüzen pill ═══════════════════════ */
.nav-links {
    position: fixed;
    top: 30px;
    left: 50vw;
    transform: translateX(-50%) translateY(-30px);
    opacity: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: rgba(13, 13, 18, 0.55);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px) saturate(180%);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: border-color 0.5s ease;
}

.nav-group { display: flex; gap: 2.2rem; align-items: center; flex: 1; }
.nav-group.left { justify-content: flex-end; }
.nav-group.right { justify-content: flex-start; }

.nav-logo { display: flex; align-items: center; justify-content: center; margin: 0 2.2rem; transition: var(--transition); }
.nav-logo img { height: 30px; width: auto; transition: var(--transition); }
.nav-logo:hover img { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.25)); }

.nav-links.visible { pointer-events: all; }
.nav-links:hover { border-color: rgba(255, 255, 255, 0.2); }

.nav-links a {
    text-decoration: none;
    color: #8a8a86;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 700;
    transition: var(--transition);
    letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--vial-50); }
.nav-links a.active { color: var(--vial-50); }

/* ═══════════════════════ Footer ═══════════════════════ */
.site-footer {
    padding: 4rem 10% 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #000;
}

.site-footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--vial-50); }

.footer-copyright { font-family: var(--font-alt); font-size: 0.85rem; color: var(--text-muted); }
.footer-copyright:hover { color: var(--vial-50); }

.footer-socials { display: flex; gap: 1.5rem; }
.footer-socials a { color: var(--text-muted); font-size: 1.15rem; transition: var(--transition); }
.footer-socials a:hover { color: var(--vial-50); }

.footer-disclaimer {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.32);
    line-height: 1.6;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.tooltip-container { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.social-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(13, 13, 18, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vial-50);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}
.tooltip-container:hover .social-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════ Hero (anasayfa) ═══════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 10% 4rem;
    position: relative;
    background:
        linear-gradient(to top, var(--bg-color), transparent),
        linear-gradient(rgba(11, 11, 12, 0.72), rgba(11, 11, 12, 0.72)),
        url('assets/arkaplan.png') no-repeat center center/cover;
}

.hero-main-logo { transition: var(--transition); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1)); }
.hero-main-logo:hover { filter: drop-shadow(0 0 20px rgba(91, 135, 49, 0.4)); transform: scale(1.02); }

.hero-title { font-size: clamp(3rem, 6vw, 5rem); font-weight: 100; line-height: 1; margin-bottom: 0.5rem; letter-spacing: -0.02em; }

.hero-brand { display: flex; flex-direction: column; align-items: center; line-height: 0.9; margin-bottom: 1.75rem; }
.brand-main {
    font-family: var(--font-alt);
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(to bottom, var(--vial-50) 0%, #999 65%, #666 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}
.brand-sub { font-family: var(--font-alt); font-weight: 900; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--smp-emerald-light); letter-spacing: 0.05em; margin-top: 0.2rem; }

.hero-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
}
.status-pill.is-loading .online-indicator { animation: pulse-icon 1.1s ease-in-out infinite; }
@keyframes pulse-icon { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.ip-box {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 0.5rem 0.5rem 0.5rem 1.2rem;
    backdrop-filter: blur(var(--glass-blur-heavy));
    overflow: hidden;
    /* Genişlik animasyonu artık GSAP ile yapılıyor (js/main.js) — burada
       ayrıca bir CSS width transition tanımlamak GSAP'ın her kare
       ayarladığı inline width değeriyle çakışıp titremeye yol açıyordu. */
    transition: border-color 0.3s ease;
}
.ip-box .ip-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.ip-box .ip-value { font-family: var(--font-mono); font-size: 0.95rem; color: var(--vial-50); }
.ip-box button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--vial-50);
    cursor: pointer; transition: var(--transition-fast); flex-shrink: 0;
}
.ip-box button:hover { background: var(--gradient-emerald); border-color: transparent; }
.ip-box.copied { border-color: rgba(98, 245, 103, 0.4); }

.hero-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* ═══════════════════════ Bölüm / grid ═══════════════════════ */
.section { padding: 6rem 0; }
.section-head { max-width: 700px; margin: 0 auto 3rem; text-align: center; display: flex; flex-direction: column; gap: 0.9rem; align-items: center; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    padding: 1.75rem 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}
.feature-card .item-slot { margin-bottom: 0.25rem; }
.feature-card h3 { font-family: var(--font-alt); font-size: 1.05rem; text-transform: uppercase; letter-spacing: -0.2px; color: var(--vial-50); }
.feature-card p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.55; }

/* ═══════════════════════ Item-slot bileşeni (Minecraft envanteri) ═══════════════════════ */
.item-slot {
    --slot-size: 56px;
    width: var(--slot-size);
    height: var(--slot-size);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(160deg, #3a352c 0%, #211e19 100%);
    border-radius: 5px;
    box-shadow:
        inset 2px 2px 0 rgba(0, 0, 0, 0.55),
        inset -2px -2px 0 rgba(255, 255, 255, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.03);
    font-size: 1.6rem;
    image-rendering: pixelated;
    cursor: default;
}
.item-slot.is-empty { opacity: 0.35; }
.item-slot.is-result {
    background: linear-gradient(160deg, #2c3a22 0%, #171f10 100%);
    box-shadow:
        inset 2px 2px 0 rgba(0, 0, 0, 0.55),
        inset -2px -2px 0 rgba(124, 179, 66, 0.18),
        0 0 14px rgba(91, 135, 49, 0.35);
}
.item-slot .slot-glyph { pointer-events: none; }
.item-slot .slot-count {
    position: absolute;
    bottom: 1px; right: 3px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.72rem;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.85);
}
.item-slot img.slot-image { width: 72%; height: 72%; object-fit: contain; image-rendering: pixelated; }

/* Slot tooltip — hover (masaüstü) + tıkla (mobil) */
.item-slot[data-name] { position: relative; }
.item-slot[data-name]::after {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid var(--glass-border);
    color: var(--vial-50);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
}
.item-slot[data-name]:hover::after,
.item-slot[data-name]:focus-visible::after,
.item-slot[data-name].show-tip::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════ Adım listesi (Nasıl Katılırım) ═══════════════════════ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    width: calc(100% - 40px);
}
.step-card { padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
    font-family: var(--font-alt);
    font-size: 1.3rem;
    color: var(--smp-emerald-light);
    flex-shrink: 0;
    width: 2.2rem; height: 2.2rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(91, 135, 49, 0.12);
    border: 1px solid rgba(91, 135, 49, 0.3);
}
.step-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--vial-50); }
.step-card p { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.step-card code {
    font-family: var(--font-mono);
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--smp-gold);
}

/* ═══════════════════════ Map / Tarifler önizleme kartları ═══════════════════════ */
.map-container {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.map-card, .resource-card-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(rgba(13, 13, 18, 0.82), rgba(13, 13, 18, 0.92)), url('assets/harita.png') no-repeat center center/cover;
    border: 1px solid #1a1a20;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: left;
    min-height: 300px;
}
.resource-card-link { background: linear-gradient(rgba(13, 13, 18, 0.85), rgba(13, 13, 18, 0.94)), url('assets/hero_bg.png') no-repeat center center/cover; }
.map-card:hover, .resource-card-link:hover { border-color: #333; transform: translateY(-5px); }
.map-card-footer { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; gap: 1rem; }
.map-icon { font-size: 2.2rem; color: rgba(255,255,255,0.4); flex-shrink: 0; }
.map-card-title { font-family: var(--font-alt); font-size: 1.5rem; font-weight: 900; text-transform: uppercase; color: var(--vial-50); margin-bottom: 0.4rem; }
.map-card-desc { color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.5; }

.online-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(98, 245, 103, 0.06);
    color: #62F567;
    padding: 0.35rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    border: 1px solid rgba(98, 245, 103, 0.22);
    align-self: flex-start;
    margin-bottom: auto;
    cursor: default;
}
.online-indicator { width: 14px; height: 14px; object-fit: contain; }

/* Hero durum pili: .online-pill'in görünümünü kullanır ama duruma göre renk değiştirir */
.hero .status-pill.online-pill { align-self: center; margin-bottom: 0; }
.status-pill.online-pill.is-offline { color: var(--vial-400); background: rgba(236, 41, 19, 0.06); border-color: rgba(236, 41, 19, 0.22); }
.status-pill.online-pill.is-loading { color: var(--smp-gold); background: rgba(217, 164, 65, 0.06); border-color: rgba(217, 164, 65, 0.22); }

/* ═══════════════════════ Modlar sayfası ═══════════════════════ */
.mods-toolbar {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.mods-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    max-width: 480px;
}
.mods-search i { color: var(--text-muted); }
.mods-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 0.95rem;
    padding: 0.65rem 0;
}
.mods-search input::placeholder { color: var(--text-muted); }

.input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
    color: var(--vial-50);
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}
.input:focus { border-color: var(--smp-emerald-light); box-shadow: 0 0 0 3px rgba(91, 135, 49, 0.15); }

.filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filter-chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    color: rgba(255,255,255,0.62);
    cursor: pointer;
    transition: var(--transition-fast);
}
.filter-chip:hover { border-color: var(--glass-border-hover); color: var(--vial-50); }
.filter-chip.active { background: var(--gradient-emerald); border-color: transparent; color: #fff; }
.filter-chip.active.side-chip { background: var(--gradient-vial); }

.mods-count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.04em; }

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 0 auto;
}
.mod-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mod-card:hover { transform: translateY(-4px); border-color: var(--glass-border-hover); box-shadow: var(--shadow-md); }
.mod-card h3 { font-family: var(--font-alt); font-size: 1.05rem; text-transform: uppercase; color: var(--vial-50); letter-spacing: -0.2px; }
.mod-card p { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.5; flex: 1; }
.mod-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mod-card-tags .pill { font-size: 0.62rem; padding: 0.25rem 0.6rem; }
.mods-empty { text-align: center; padding: 4rem 1rem; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem; grid-column: 1 / -1; }

/* ═══════════════════════ Mod detay sayfası ═══════════════════════ */
.mod-hero {
    padding: 9rem 10% 3rem;
    text-align: center;
    background: linear-gradient(to top, var(--bg-color), transparent), linear-gradient(rgba(11,11,12,0.75), rgba(11,11,12,0.75)), url('assets/hero_bg.png') no-repeat center 30%/cover;
}
.mod-hero .item-slot { --slot-size: 84px; font-size: 2.6rem; margin: 0 auto 1.5rem; }
.mod-hero h1 { font-family: var(--font-alt); font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; letter-spacing: -0.5px; margin-bottom: 0.75rem; }
.mod-hero .mod-hero-desc { max-width: 620px; margin: 0 auto 1.5rem; color: rgba(255,255,255,0.6); font-size: 1.02rem; line-height: 1.6; }
.mod-hero .badge-row { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }

.mod-body { max-width: 860px; margin: 0 auto; padding: 4rem 1.5rem; display: flex; flex-direction: column; gap: 3rem; }
.mod-section h2 { font-family: var(--font-alt); font-size: 1.3rem; text-transform: uppercase; letter-spacing: -0.2px; margin-bottom: 1rem; color: var(--vial-50); }
.mod-section p { color: rgba(255,255,255,0.68); line-height: 1.75; font-size: 0.98rem; margin-bottom: 0.85rem; }
.mod-section ul { padding-left: 1.3rem; color: rgba(255,255,255,0.68); line-height: 1.8; font-size: 0.96rem; }
.mod-section li { margin-bottom: 0.4rem; }

.info-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.info-card { padding: 1.25rem; }
.info-card .info-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; display: block; }
.info-card .info-value { font-family: var(--font-main); font-size: 0.92rem; color: var(--vial-50); font-weight: 700; }

.faq-item { padding: 1.1rem 1.4rem; margin-bottom: 0.7rem; cursor: pointer; }
.faq-item summary { font-weight: 700; font-size: 0.92rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--vial-50); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-alt); font-size: 1.2rem; color: var(--smp-emerald-light); flex-shrink: 0; transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 0.75rem; margin-bottom: 0; }

.trim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.trim-card { padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start; }
.trim-card .item-slot { --slot-size: 44px; font-size: 1.3rem; }
.trim-card h4 { font-size: 0.9rem; color: var(--vial-50); margin-bottom: 0.3rem; }
.trim-card p { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.5; margin: 0; }

.gallery-note { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); padding: 1rem 1.25rem; border-left: 2px solid var(--smp-gold); background: rgba(217,164,65,0.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ═══════════════════════ Tarif bileşeni (crafting/smithing) ═══════════════════════ */
.recipe-toolbar {
    max-width: 1200px; width: calc(100% - 40px); margin: 0 auto 2.5rem;
    display: flex; flex-direction: column; gap: 1.25rem;
}
.recipe-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 0 auto;
}
.recipe-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.recipe-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.recipe-card-head h3 { font-family: var(--font-alt); font-size: 1rem; text-transform: uppercase; color: var(--vial-50); }
.recipe-type-tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.recipe-source { font-size: 0.7rem; color: rgba(255,255,255,0.35); font-family: var(--font-mono); }
.recipe-unverified { border-left: 3px solid var(--vial-500); }
.recipe-unverified-tag { color: var(--vial-300); font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; }

.recipe-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    row-gap: 0.75rem;
    padding: 0.5rem 0.25rem;
}
.crafting-grid {
    display: grid;
    gap: 4px;
    flex-shrink: 0;
}
.smithing-row, .furnace-row, .stonecutting-row { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.recipe-arrow { color: var(--smp-emerald-light); font-size: 1.3rem; flex-shrink: 0; }
.recipe-result-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.recipe-result-count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

.recipe-nav { display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.recipe-nav button { background: none; border: 1px solid var(--glass-border); color: var(--vial-50); width: 1.8rem; height: 1.8rem; border-radius: 50%; cursor: pointer; }
.recipe-nav button:hover { background: rgba(255,255,255,0.06); }

.recipe-note { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.55; border-top: 1px dashed var(--glass-border); padding-top: 0.85rem; }

/* ═══════════════════════ Kurallar sayfası ═══════════════════════ */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; max-width: 1100px; margin: 0 auto; width: calc(100% - 40px); }
.rule-card { padding: 1.75rem; }
.rule-card .rule-icon { font-size: 1.8rem; margin-bottom: 0.75rem; display: block; }
.rule-card h3 { font-family: var(--font-alt); font-size: 1rem; text-transform: uppercase; margin-bottom: 0.9rem; color: var(--vial-50); }
.rule-card ul { padding-left: 1.1rem; color: rgba(255,255,255,0.65); font-size: 0.88rem; line-height: 1.7; }
.rule-card li { margin-bottom: 0.4rem; }

/* ═══════════════════════ Toast (harita sayfası) ═══════════════════════ */
.map-toast {
    position: absolute; bottom: 30px; left: 30px; width: 320px;
    background: rgba(13, 13, 18, 0.92); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 1.2rem; z-index: 100; box-shadow: var(--shadow-lg);
    transform: translateX(-120%); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    display: flex; flex-direction: column; overflow: hidden;
}
.map-toast.show { transform: translateX(0); opacity: 1; }
.map-toast-header { display: flex; justify-content: space-between; align-items: center; }
.close-toast { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 0.2rem; }
.close-toast:hover { color: var(--vial-50); }
.toast-progress-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,0.1); }
.toast-progress-bar { height: 100%; background: var(--vial-500); width: 100%; }
@keyframes progress { from { width: 100%; } to { width: 0%; } }

/* ═══════════════════════ Scroll reveal ═══════════════════════ */
/* Başlangıç (JS öncesi) durumu — animasyonun kendisi artık js/main.js'te GSAP ile yapılıyor. */
[data-reveal] { opacity: 0; transform: translateY(20px); }

/* ═══════════════════════ Mobil & tablet ═══════════════════════ */
@media (max-width: 900px) {
    body { overflow-x: hidden; }
    .section { padding: 4rem 1.25rem; }
    .hero { padding: 6rem 1.25rem 7rem; }
    .mod-hero { padding: 7rem 1.25rem 6rem; }
    .hero-title { font-size: clamp(2.3rem, 11vw, 3.5rem); }
    .hero-btns { flex-direction: column; width: 100%; max-width: 320px; gap: 0.85rem; margin: 0 auto; }
    .btn { width: 100%; }

    /* Nav: masaüstünde scroll ile beliren pill, mobilde her zaman görünen üst bar */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0; bottom: auto; left: 0; right: 0;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: all !important;
        width: 100%;
        border-radius: 0;
        border-left: none; border-right: none; border-top: none;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 1.5rem;
        padding: 0.8rem 1.25rem;
        background: rgba(9, 9, 11, 0.92);
    }
    .nav-group { flex: none; gap: 1.5rem; }
    .nav-logo { display: none; }
    .nav-links a { font-size: 0.82rem; white-space: nowrap; }

    .map-container { grid-template-columns: 1fr; gap: 1.25rem; }
    .map-card, .resource-card-link { min-height: 220px; padding: 1.5rem; }

    .site-footer { padding: 3rem 1.25rem 3rem; text-align: center; }
    .site-footer .footer-top { flex-direction: column; }
    .footer-links { justify-content: center; }
    .footer-socials { justify-content: center; }

    .map-toast { left: 16px; right: 16px; width: auto; bottom: 30px; }

    .modal-body, .mod-body { padding-left: 1.25rem; padding-right: 1.25rem; }
    .info-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .item-slot { --slot-size: 46px; font-size: 1.3rem; }
    .mod-hero .item-slot { --slot-size: 68px; font-size: 2rem; }
    .info-card-grid { grid-template-columns: 1fr; }
    .nav-links a { font-size: 0.76rem; }
}
