/* ============================================================
   Socketra — Tasarım Sistemi (paylaşılan tema)
   Tüm public sayfalar bu dosyayı kullanır.
   ============================================================ */

:root {
    --bg: #060913;
    --bg-soft: #0b1120;
    --panel: rgba(19, 27, 46, 0.55);
    --panel-solid: #0f1729;
    --border: rgba(96, 122, 168, 0.18);
    --border-strong: rgba(96, 122, 168, 0.35);
    --text: #eef2fb;
    --muted: #93a1bd;
    --muted-2: #64748b;
    --brand: #38bdf8;
    --brand-2: #818cf8;
    --brand-3: #c084fc;
    --accent-green: #34d399;
    --accent-amber: #fbbf24;
    --accent-red: #fb7185;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-glow: 0 0 60px -18px rgba(56, 189, 248, 0.45);
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Arka plan efektleri ------------------------------------------------ */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(96, 122, 168, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 122, 168, 0.06) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: float 16s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; background: #0ea5e9; top: -160px; left: -80px; }
.orb-2 { width: 420px; height: 420px; background: #7c3aed; top: 10%; right: -120px; animation-delay: -4s; }
.orb-3 { width: 360px; height: 360px; background: #2563eb; bottom: -140px; left: 40%; animation-delay: -8s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(0, -30px) scale(1.08); }
}

/* Tipografi ---------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.gradient-text {
    background: linear-gradient(100deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
a { color: inherit; text-decoration: none; }

/* Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1320px; }

/* Navbar ------------------------------------------------------------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(6, 9, 19, 0.72);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em; display: flex; align-items: center; gap: 9px; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 14px 2px rgba(56,189,248,0.6); }
.brand .tld { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; font-weight: 600; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* Butonlar ----------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #06121f; box-shadow: var(--shadow-glow); }
.btn-primary:hover { box-shadow: 0 0 70px -12px rgba(56,189,248,0.7); transform: translateY(-1px); }
.btn-ghost { background: var(--panel); border-color: var(--border-strong); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 15px; font-size: 0.85rem; }

/* Rozetler ----------------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    border-radius: 999px; background: rgba(56,189,248,0.1); color: var(--brand); border: 1px solid rgba(56,189,248,0.25);
}
.badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 0 0 rgba(52,211,153,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.6);} 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0);} 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0);} }

/* Kartlar ------------------------------------------------------------ */
.card {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; backdrop-filter: blur(10px); transition: border-color .25s, transform .25s;
}
.card-hover:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card-icon {
    width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(56,189,248,0.16), rgba(129,140,248,0.16));
    border: 1px solid var(--border-strong); color: var(--brand); margin-bottom: 16px;
}

/* Kod pencereleri ---------------------------------------------------- */
.code-window { background: #080d1a; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.code-head {
    display: flex; align-items: center; gap: 10px; padding: 11px 15px;
    background: rgba(148,163,184,0.05); border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 7px; }
.code-dots span { width: 11px; height: 11px; border-radius: 50%; }
.code-dots .r { background: #ff5f56; } .code-dots .y { background: #ffbd2e; } .code-dots .g { background: #27c93f; }
.code-file { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-left: 4px; }
.copy-btn {
    margin-left: auto; font-size: 0.74rem; font-weight: 600; color: var(--muted);
    background: rgba(148,163,184,0.08); border: 1px solid var(--border); border-radius: 7px;
    padding: 4px 11px; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 6px;
}
.copy-btn:hover { color: var(--brand); border-color: var(--brand); }
.copy-btn.copied { color: var(--accent-green); border-color: var(--accent-green); }
.code-window pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 0.83rem; line-height: 1.7; }
.code-window pre::-webkit-scrollbar { height: 8px; }
.code-window pre::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
code, pre { font-family: var(--mono); }
.inline-code { font-family: var(--mono); font-size: 0.85em; background: rgba(148,163,184,0.12); color: var(--brand); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border); }

/* Sözdizimi renkleri (manuel span'lar) ------------------------------- */
.tok-com { color: #5b6b86; font-style: italic; }
.tok-key { color: #c084fc; }
.tok-str { color: #6ee7b7; }
.tok-num { color: #fbbf24; }
.tok-fn  { color: #38bdf8; }
.tok-var { color: #e2e8f0; }
.tok-tag { color: #fb7185; }
.tok-attr{ color: #7dd3fc; }
.tok-punc{ color: #7c89a3; }

/* Tablolar ----------------------------------------------------------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.tbl th { color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.tbl td { color: var(--text); }
.tbl tr:last-child td { border-bottom: none; }
.tbl code { color: var(--brand); font-size: 0.85em; }

/* Uyarı kutuları ----------------------------------------------------- */
.callout { border-radius: 12px; padding: 15px 18px; font-size: 0.9rem; border: 1px solid; display: flex; gap: 12px; }
.callout-icon { flex-shrink: 0; margin-top: 1px; }
.callout-info { background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.25); color: #bae6fd; }
.callout-warn { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.28); color: #fde68a; }
.callout-tip  { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.25); color: #a7f3d0; }

/* Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); margin-top: 90px; padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: 0.88rem; }
.footer a { color: var(--muted); } .footer a:hover { color: var(--brand); }

/* Yardımcılar -------------------------------------------------------- */
.section { padding: 90px 0; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 20px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
        background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 16px;
    }
    .nav-toggle { display: block; }
    .section { padding: 60px 0; }
}
