/* ============================================================
   METİN2 FORUM TEMASI
   Koyu gece zemini + amber/altın vurgu (Yang parası rengi)
   XenForo tarzı kart düzeni, modern ve responsive
   ============================================================ */

:root {
    /* Renk paleti — Reign2 (derin siyah + kraliyet altını + mor) */
    --bg:          #08060a;   /* en arka zemin - reign2 teması */
    --bg-alt:      #0f0d14;   /* bloklar */
    --bg-card:     #15121d;   /* kartlar */
    --bg-hover:    #1c1828;   /* hover */
    --border:      #2a2336;   /* kenarlıklar */
    --border-soft: #1d1828;

    --text:        #e8e4f0;   /* ana metin */
    --text-dim:    #9088a3;   /* soluk metin */
    --text-muted:  #635a73;   /* en soluk */

    --accent:      #e0a516;   /* kraliyet altını */
    --accent-warm: #ffd23f;   /* parlak altın */
    --accent-dark: #b8860b;   /* koyu altın */

    --royal:       #9b59ff;   /* kraliyet moru */
    --royal-dark:  #6c3fc4;

    --green:       #3fb950;   /* başarı/online */
    --red:         #ff3860;   /* uyarı/sat */
    --blue:        #4a9eda;   /* link/al */

    --radius:      11px;
    --radius-sm:   7px;
    --shadow:      0 2px 10px rgba(0,0,0,.5);
    --shadow-lg:   0 12px 40px rgba(0,0,0,.6);

    --font:        'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display:'Cinzel', 'Poppins', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-warm); }

img { max-width: 100%; }

/* ---------- Düzen / Konteyner ---------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Üst bar (ince, sosyal linkler) ---------- */
.topbar {
    background: rgba(8,6,10,.38);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 1px solid var(--border-soft);
    font-size: 12.5px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: var(--text-dim); margin-left: 18px; }
.topbar a:hover { color: var(--accent); }
.topbar-left { color: var(--text-muted); }

/* ---------- Header (logo + arama) ---------- */
.header {
    background: linear-gradient(180deg, rgba(15,13,20,.4), rgba(10,8,14,.5));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo {
    font-size: 26px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.5px;
}
.logo-img { height: 46px; width: auto; display: block; }
.logo-text { font-family: var(--font-display); font-weight: 700; letter-spacing: .5px; }
.logo b { color: var(--accent); font-weight: 700; }
.logo .logo-mark {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-dark));
    border-radius: 10px;
    display: grid; place-items: center;
    color: #0f141c; font-weight: 800; font-size: 21px;
    font-family: var(--font-display);
    box-shadow: 0 3px 14px rgba(224,165,22,.4);
}

/* Arama kutusu */
.search-box { position: relative; flex: 1; max-width: 320px; }
.search-box input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 9px 16px 9px 40px;
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
}
.search-box input:focus { outline: none; border-color: var(--accent); }
.search-box::before {
    content: "🔍"; position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%); font-size: 13px; opacity: .5;
}

/* ---------- Navigasyon ---------- */
.nav {
    background: rgba(10,8,14,.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; list-style: none; }
.nav-links a {
    display: block;
    padding: 14px 18px;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 13.5px;
    border-bottom: 2px solid transparent;
    transition: all .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-hover); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

.nav-account { display: flex; align-items: center; gap: 8px; }
.nav-account .username-link { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; padding: 6px 10px; border-radius: var(--radius-sm); }
.nav-account .username-link:hover { background: var(--bg-hover); }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--bg-hover);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.btn:hover { background: var(--border); color: var(--text); border-color: var(--text-muted); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #0f141c; border: none; font-weight: 600;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-warm), var(--accent)); color: #0f141c; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Sayfa gövdesi ---------- */
.page { flex: 1; padding: 24px 0 40px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 22px; font-weight: 600; color: var(--text); }
.page-title small { display: block; font-size: 13px; font-weight: 400; color: var(--text-dim); margin-top: 2px; }

/* İki sütun düzeni (içerik + sidebar) */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-muted); }

/* ---------- Kategori bloğu ---------- */
.category { margin-bottom: 22px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.category-head {
    background: linear-gradient(180deg, #181221, #0f0d14);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
.category-icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(224,165,22,.18), rgba(155,89,255,.12));
    border: 1px solid var(--border);
    display: grid; place-items: center;
    font-size: 20px;
}
.category-head .cat-text { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.category-head h2 { font-size: 16px; font-weight: 700; color: var(--text); font-family: var(--font-display); letter-spacing: .3px; }
.category-head h2 a { color: var(--text); }
.category-head .cat-desc { font-size: 12px; color: var(--text-dim); }

/* ---------- Banner'lı kategori başlığı ---------- */
.category-head.has-banner {
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    position: relative;
    min-height: 70px;
    border-bottom: 2px solid var(--accent-dark);
    overflow: hidden;
}
/* Okunabilirlik için sol taraftan koyulaşan örtü */
.category-head.has-banner::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(8,6,10,.92) 0%,
        rgba(8,6,10,.7) 35%,
        rgba(8,6,10,.35) 65%,
        rgba(8,6,10,.15) 100%);
    z-index: 0;
}
.category-head.has-banner > * { position: relative; z-index: 1; }
.category-head.has-banner .category-icon {
    background: rgba(8,6,10,.5);
    border-color: rgba(224,165,22,.5);
    backdrop-filter: blur(2px);
}
.category-head.has-banner h2 a {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.9);
}
.category-head.has-banner .cat-desc {
    color: #e8dcc8;
    text-shadow: 0 1px 4px rgba(0,0,0,.9);
}

/* ---------- Forum node satırı ---------- */
.node {
    display: flex; align-items: center; gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-soft);
    transition: background .12s;
}
.node:last-child { border-bottom: none; }
.node:hover { background: var(--bg-hover); }
.node-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1f1830, #15121d);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    font-size: 20px; color: var(--accent);
}
.node.unread .node-icon { background: linear-gradient(135deg, var(--accent-dark), #7a5708); color: #0f0d14; border: none; box-shadow: 0 0 12px rgba(224,165,22,.3); }
.node-main { flex: 1; min-width: 0; }
.node-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.node-title a { color: var(--text); }
.node-title a:hover { color: var(--accent); }
.node-desc { font-size: 12.5px; color: var(--text-dim); }
.node-stats { flex-shrink: 0; text-align: right; font-size: 12px; color: var(--text-dim); min-width: 90px; }
.node-stats b { display: block; color: var(--text); font-size: 15px; font-weight: 600; }
.node-last { flex-shrink: 0; width: 220px; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.node-last .last-info { min-width: 0; }
.node-last .last-title { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.node-last .last-meta { color: var(--text-dim); font-size: 11.5px; }
.node-last .last-meta a { color: var(--text-dim); }

/* ---------- Avatar (sade) ---------- */
.avatar {
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-grid; place-items: center;
    color: #fff; font-weight: 600;
    overflow: hidden;
    vertical-align: middle;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-initial { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; }

/* ============================================================
   RÜTBE ÇERÇEVELERİ
   Her rütbenin kendine özgü çerçevesi + rozeti var.
   ============================================================ */
.avatar-frame {
    position: relative;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    vertical-align: middle;
}
/* Çerçeve halkası (arka pseudo eleman) */
.avatar-frame::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    z-index: 0;
    background: var(--border);
}
/* İkinci dekoratif katman (iç parlaklık / dış halka) */
.avatar-frame::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}
/* İç avatar (resim/harf) — halkanın üstünde */
.avatar-frame-inner {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-card);
    display: grid; place-items: center;
    box-shadow: inset 0 0 0 2px rgba(8,6,10,.55);
}
.avatar-frame-inner img { width: 100%; height: 100%; object-fit: cover; }
.avatar-frame-inner .avatar-initial { width: 100%; height: 100%; color: #fff; font-weight: 700; }

/* Rozet (sağ altta — rütbe ikonu, kendi temalı kapsülünde) */
.avatar-rozet {
    position: absolute;
    right: -3px; bottom: -3px;
    z-index: 4;
    border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, #2a2336, #14111c);
    border: 2px solid rgba(255,255,255,.15);
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,.6);
}
/* Üst amblem (tepede — taç/trident) */
.avatar-ust {
    position: absolute;
    top: -16%; left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: grid; place-items: center;
    line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.7));
}

@keyframes fr-spin { to { transform: rotate(360deg); } }
@keyframes fr-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ============================================================
   ÜYE — sade, mütevazı. İnce düz halka, parıltı yok.
   ============================================================ */
.fr-uye::before {
    inset: -2px;
    background: #3a3448;
}
.fr-uye::after {
    inset: -2px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

/* ============================================================
   GOLD ÜYE — metalik altın, dönen parıltı (şimmer).
   ============================================================ */
.fr-gold::before {
    inset: -3px;
    background: conic-gradient(from 45deg,
        #fff6d5, #e0a516, #8a6508, #ffe9a8, #b8860b, #fff6d5, #e0a516);
    animation: fr-spin 7s linear infinite;
    box-shadow: 0 0 14px rgba(224,165,22,.5);
}
.fr-gold::after {
    inset: -3px;
    box-shadow: inset 0 0 5px rgba(255,255,255,.45), inset 0 0 0 1px rgba(255,240,180,.4);
}

/* ============================================================
   VIP — mor→camgöbeği gradyan + parlak cam (glossy) yansıma.
   ============================================================ */
.fr-vip::before {
    inset: -3px;
    background: linear-gradient(140deg, #c07bff 0%, #7a3fd6 45%, #3fb6e0 100%);
    box-shadow: 0 0 16px rgba(155,89,255,.55);
}
.fr-vip::after {
    inset: -3px;
    background: linear-gradient(140deg, rgba(255,255,255,.55) 0%, transparent 42%);
    border-radius: 50%;
}

/* ============================================================
   LONCA BAŞKANI — segmentli zümrüt halka (kalkan plakaları görünümü).
   ============================================================ */
.fr-lonca::before {
    inset: -3px;
    background: conic-gradient(from 0deg,
        #2fd6b4 0deg 28deg, #0d6e5a 28deg 36deg,
        #2fd6b4 36deg 64deg, #0d6e5a 64deg 72deg,
        #2fd6b4 72deg 100deg, #0d6e5a 100deg 108deg,
        #2fd6b4 108deg 136deg, #0d6e5a 136deg 144deg,
        #2fd6b4 144deg 172deg, #0d6e5a 172deg 180deg,
        #2fd6b4 180deg 208deg, #0d6e5a 208deg 216deg,
        #2fd6b4 216deg 244deg, #0d6e5a 244deg 252deg,
        #2fd6b4 252deg 280deg, #0d6e5a 280deg 288deg,
        #2fd6b4 288deg 316deg, #0d6e5a 316deg 324deg,
        #2fd6b4 324deg 352deg, #0d6e5a 352deg 360deg);
    box-shadow: 0 0 13px rgba(33,196,166,.5);
}
.fr-lonca::after {
    inset: -3px;
    box-shadow: inset 0 0 0 1.5px rgba(180,255,240,.35);
}

/* ============================================================
   SAVAŞ BİRİNCİSİ — agresif ateş halkası, hızlı dönen, çift parıltı.
   ============================================================ */
.fr-savas::before {
    inset: -4px;
    background: conic-gradient(from 0deg,
        #ff3860, #ff8c1a, #ffd23f, #ff5a36, #c0392b, #ff2d2d, #ff8c1a, #ff3860);
    animation: fr-spin 3.5s linear infinite;
    box-shadow: 0 0 22px rgba(255,90,54,.65), 0 0 8px rgba(255,210,63,.5);
}
.fr-savas::after {
    inset: -4px;
    box-shadow: inset 0 0 6px rgba(255,180,60,.6), inset 0 0 0 1px rgba(255,120,60,.5);
}

/* ============================================================
   KRAL — en gösterişli. Kalın kraliyet altını, dönen + güçlü hale,
   iç beyaz parlaklık. Tepede taç (PHP'den).
   ============================================================ */
.fr-kral::before {
    inset: -5px;
    background: conic-gradient(from 0deg,
        #fffbe5, #ffd23f, #e0a516, #fff3b0, #b8860b, #ffe9a8, #ffd23f, #fffbe5);
    animation: fr-spin 5.5s linear infinite;
    box-shadow: 0 0 28px rgba(255,210,63,.78), 0 0 12px rgba(255,210,63,.6);
}
.fr-kral::after {
    inset: -2px;
    box-shadow: inset 0 0 8px rgba(255,255,255,.7), inset 0 0 0 1.5px rgba(255,245,200,.6);
}

/* ============================================================
   MODERATÖR — temiz, profesyonel yeşil. Segmentli ince halka.
   ============================================================ */
.fr-mod::before {
    inset: -3px;
    background: conic-gradient(from 0deg,
        #5fd46e 0deg 50deg, #1f6e2a 50deg 60deg,
        #5fd46e 60deg 110deg, #1f6e2a 110deg 120deg,
        #5fd46e 120deg 170deg, #1f6e2a 170deg 180deg,
        #5fd46e 180deg 230deg, #1f6e2a 230deg 240deg,
        #5fd46e 240deg 290deg, #1f6e2a 290deg 300deg,
        #5fd46e 300deg 350deg, #1f6e2a 350deg 360deg);
    box-shadow: 0 0 12px rgba(63,185,80,.5);
}
.fr-mod::after {
    inset: -3px;
    box-shadow: inset 0 0 0 1.5px rgba(180,255,190,.3);
}

/* ============================================================
   YÖNETİCİ — en güçlü. Kalın çok renkli prizmatik halka, hızlı dönen,
   yoğun çok renkli hale, iç parlaklık. Tepede trident (PHP'den).
   ============================================================ */
.fr-admin::before {
    inset: -5px;
    background: conic-gradient(from 0deg,
        #ff3860, #ff8c1a, #ffd23f, #3fb950, #4ad6e0, #9b59ff, #ff3df0, #ff3860);
    animation: fr-spin 4s linear infinite;
    box-shadow: 0 0 30px rgba(155,89,255,.6), 0 0 14px rgba(255,56,96,.55), 0 0 6px rgba(74,214,224,.5);
}
.fr-admin::after {
    inset: -2px;
    box-shadow: inset 0 0 9px rgba(255,255,255,.6), inset 0 0 0 1.5px rgba(255,255,255,.4);
}

/* Hareketi azalt tercih edilmişse dönüşleri durdur */
@media (prefers-reduced-motion: reduce) {
    .fr-gold::before, .fr-savas::before, .fr-kral::before, .fr-admin::before { animation: none; }
}

/* ---------- Rütbe etiketi (isim yanı / profilde) ---------- */
.rutbe-etiket {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
    border: 1px solid;
}
.re-uye   { color: #9088a3; border-color: rgba(144,136,163,.3); background: rgba(144,136,163,.1); }
.re-gold  { color: #ffd23f; border-color: rgba(224,165,22,.4);  background: rgba(224,165,22,.12); }
.re-vip   { color: #b78cff; border-color: rgba(155,89,255,.4);  background: rgba(155,89,255,.14); }
.re-lonca { color: #2fd6b4; border-color: rgba(33,196,166,.4);  background: rgba(33,196,166,.12); }
.re-savas { color: #ff7a5c; border-color: rgba(255,90,54,.4);   background: rgba(255,90,54,.12); }
.re-kral  { color: #ffd23f; border-color: rgba(255,210,63,.5);  background: rgba(255,210,63,.16); font-weight: 700; }
.re-mod   { color: #5fd46e; border-color: rgba(63,185,80,.4);   background: rgba(63,185,80,.12); }
.re-admin { color: #ff6b86; border-color: rgba(255,56,96,.45);  background: rgba(255,56,96,.14); font-weight: 700; }

/* ---------- Sidebar ---------- */
.sidebar > .widget { margin-bottom: 18px; }
.widget { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.widget-head { padding: 11px 15px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text); background: linear-gradient(180deg, #1c2536, #161e2a); }
.widget-body { padding: 6px 0; }
.widget-row { display: flex; align-items: center; gap: 10px; padding: 9px 15px; font-size: 12.5px; }
.widget-row:hover { background: var(--bg-hover); }
.widget-row .wr-main { min-width: 0; flex: 1; }
.widget-row .wr-title { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.widget-row .wr-meta { color: var(--text-dim); font-size: 11.5px; }

/* İstatistik widget */
.stats-grid { padding: 14px 15px; }
.stats-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.stats-row dt { color: var(--text-dim); }
.stats-row dd { color: var(--text); font-weight: 600; }
.stats-row.highlight dd { color: var(--accent); }

/* Online üyeler */
.online-list { padding: 12px 15px; font-size: 12.5px; line-height: 1.9; }
.online-list a { color: var(--accent); }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 4px; }

/* ---------- Konu listesi (forum içi) ---------- */
.topic-list { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.topic-list-head { display: flex; padding: 11px 18px; background: linear-gradient(180deg, #1c2536, #161e2a); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.topic-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); transition: background .12s; }
.topic-row:last-child { border-bottom: none; }
.topic-row:hover { background: var(--bg-hover); }
.topic-avatar { flex-shrink: 0; }
.topic-main { flex: 1; min-width: 0; }
.topic-title { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.topic-title a { color: var(--text); }
.topic-title a:hover { color: var(--accent); }
.topic-meta { font-size: 12px; color: var(--text-dim); }
.topic-meta a { color: var(--text-dim); }
.topic-stats { flex-shrink: 0; text-align: center; width: 70px; font-size: 12px; color: var(--text-dim); }
.topic-stats b { display: block; color: var(--text); font-size: 14px; }
.topic-last { flex-shrink: 0; width: 150px; font-size: 11.5px; color: var(--text-dim); text-align: right; }

/* Etiket/prefix rozeti */
.prefix { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; margin-right: 6px; vertical-align: middle; }
.prefix-red { background: rgba(217,83,79,.18); color: #f08a87; }
.prefix-green { background: rgba(63,185,80,.18); color: #6ed47c; }
.prefix-blue { background: rgba(74,158,218,.18); color: #7bbee8; }
.prefix-amber { background: rgba(224,165,22,.18); color: var(--accent-warm); }

/* Sabit/kilit ikonları */
.topic-flags { display: inline-flex; gap: 5px; margin-right: 5px; }
.topic-flags span { font-size: 12px; opacity: .7; }

/* ---------- Konu görüntüleme (mesajlar) ---------- */
.post { display: flex; gap: 0; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow); }
.post-side { flex-shrink: 0; width: 170px; background: var(--bg-card); border-right: 1px solid var(--border); padding: 18px 15px; text-align: center; }
.post-side .avatar { margin: 0 auto 10px; }
.post-author { font-weight: 600; color: var(--text); font-size: 14px; margin-bottom: 3px; }
.post-author.admin { color: var(--accent); }
.post-usertitle { font-size: 11.5px; color: var(--text-dim); margin-bottom: 10px; }
.post-userstats { font-size: 11.5px; color: var(--text-muted); border-top: 1px solid var(--border-soft); padding-top: 10px; text-align: left; line-height: 1.8; }
.post-userstats .us-row { display: flex; justify-content: space-between; }
.post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-head { padding: 11px 18px; border-bottom: 1px solid var(--border-soft); font-size: 12px; color: var(--text-dim); display: flex; justify-content: space-between; align-items: center; }
.post-content { padding: 18px; color: var(--text); line-height: 1.7; flex: 1; word-wrap: break-word; }
.post-content p { margin-bottom: 12px; }
.post-content p:last-child { margin-bottom: 0; }
.post-foot { padding: 10px 18px; border-top: 1px solid var(--border-soft); display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Form / kutu ---------- */
.box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.box-head { padding: 15px 20px; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 600; background: linear-gradient(180deg, #1c2536, #161e2a); }
.box-body { padding: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-dim); margin-bottom: 6px; }
.form-control {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,165,22,.12); }
textarea.form-control { min-height: 160px; resize: vertical; line-height: 1.6; }
select.form-control { cursor: pointer; }

/* ---------- Flash / uyarı mesajları ---------- */
.alert { padding: 13px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 13.5px; border: 1px solid; }
.alert-info { background: rgba(74,158,218,.12); border-color: rgba(74,158,218,.3); color: #9cc9ed; }
.alert-success { background: rgba(63,185,80,.12); border-color: rgba(63,185,80,.3); color: #8ad696; }
.alert-error { background: rgba(217,83,79,.12); border-color: rgba(217,83,79,.3); color: #f0a8a5; }

/* ---------- Boş durum ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--text-dim); }
.empty-icon { font-size: 42px; opacity: .4; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.footer { background: rgba(8,6,10,.42); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--border); padding: 30px 0; margin-top: auto; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-info { font-size: 13px; color: var(--text-dim); }
.footer-info b { color: var(--accent); }
.footer-links { display: flex; gap: 18px; font-size: 13px; }
.footer-links a { color: var(--text-dim); }
.footer-stats { display: flex; gap: 24px; font-size: 12.5px; color: var(--text-dim); }
.footer-stats b { color: var(--text); }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.pagination a, .pagination span { padding: 8px 13px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }
.pagination a:hover { background: var(--bg-hover); color: var(--text); }
.pagination .current { background: var(--accent); color: #0f141c; border-color: var(--accent); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .node-last { display: none; }
    .node-stats { min-width: 70px; }
    .topic-last { display: none; }
    .nav-links a { padding: 14px 12px; }
    .search-box { display: none; }
}
@media (max-width: 600px) {
    .topbar-right { display: none; }
    .post-side { width: 90px; padding: 12px 8px; }
    .post-userstats { display: none; }
    .node-stats { display: none; }
    .topic-stats { width: 50px; }
    .page-title { font-size: 19px; }
    .nav-links { font-size: 12px; }
    .footer .wrap { flex-direction: column; text-align: center; }
}

/* ============================================================
   SON AKTİVİTE WIDGET'I (görsel1 tarzı — krem/altın tema)
   Forumun koyu temasından bağımsız, sıcak krem renkli panel.
   ============================================================ */
.aktivite-widget {
    background: #ece0c8;
    border: 1px solid #c9b48c;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,.45);
    /* Üstte ince dekoratif altın şerit */
    border-top: 3px solid #b8860b;
    position: relative;
}
/* Dekoratif üst desen (Metin2 tarzı tekrar eden motif) */
.aktivite-widget::before {
    content: "";
    display: block;
    height: 10px;
    background:
        repeating-linear-gradient(135deg, #d8c9a8 0 6px, #cdbb95 6px 12px);
    border-bottom: 1px solid #c9b48c;
    opacity: .7;
}

/* Sekme çubuğu */
.aktivite-tabs {
    display: flex;
    flex-wrap: wrap;
    background: #2b2018;
    border-bottom: 2px solid #b8860b;
}
.aktivite-tab {
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #c9b89a;
    border-right: 1px solid #3d2f23;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.aktivite-tab:hover { background: #3a2c20; color: #f0e4cc; }
.aktivite-tab.aktif {
    background: #ece0c8;
    color: #7a3010;
    position: relative;
}

/* Tablo */
.aktivite-tablo {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    color: #3a3026;
}
.aktivite-tablo thead th {
    background: linear-gradient(180deg, #ddcba4, #d3c096);
    color: #5a4a33;
    font-weight: 700;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #c0a874;
    font-size: 12.5px;
}
.aktivite-tablo thead th.ak-sayi,
.aktivite-tablo thead th.ak-no { text-align: center; }

.aktivite-tablo tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #dbccac;
    vertical-align: middle;
}
.aktivite-tablo tbody tr:nth-child(odd) td { background: #f0e6d2; }
.aktivite-tablo tbody tr:nth-child(even) td { background: #e8dcc2; }
.aktivite-tablo tbody tr:hover td { background: #f7efde; }

/* Sütunlar */
.ak-no {
    text-align: center;
    color: #9a8c70;
    font-weight: 700;
    width: 34px;
}
.ak-konu-ic { display: flex; align-items: center; gap: 8px; }
.ak-konu-ic .avatar-frame, .ak-konu-ic .avatar { flex-shrink: 0; }
.ak-baslik {
    color: #2c2419;
    font-weight: 500;
    line-height: 1.3;
}
.ak-baslik:hover { color: #7a3010; text-decoration: underline; }

/* Prefix etiketi (Satılır, Efes vb.) */
.ak-prefix {
    display: inline-block;
    background: #5b7a9d;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    flex-shrink: 0;
}

.ak-forum a {
    color: #4a6741;
    font-size: 13px;
}
.ak-forum a:hover { color: #2d5016; text-decoration: underline; }

.ak-sayi { text-align: center; font-weight: 600; color: #5a4a33; }
.ak-cevap { color: #c0621a; }

.ak-zaman { color: #8a7a5e; font-size: 12.5px; white-space: nowrap; }

.ak-son-ic { display: flex; align-items: center; gap: 7px; }
.ak-son-ic span { font-weight: 600; font-size: 13px; }
.ak-son-ic .avatar-frame, .ak-son-ic .avatar { flex-shrink: 0; }

.ak-bos { text-align: center; padding: 30px; color: #9a8c70; font-style: italic; }

/* Mobil: bazı sütunları gizle */
@media (max-width: 860px) {
    .aktivite-tablo .ak-forum,
    .aktivite-tablo .ak-zaman,
    .aktivite-tablo th:nth-child(5),
    .aktivite-tablo td:nth-child(5) { display: none; }
    .aktivite-tab { padding: 11px 13px; font-size: 13px; }
}

/* ============================================================
   TAM EKRAN ARKA PLAN — REIGN2 REÇETESİ (birebir)
   artwork görseli + atmosferik gradyanlar + gürültü + kıvılcım
   ============================================================ */
/* Sabit arka plan görseli (sayfa kaydırınca da kalır) */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.site-bg video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
/* Görselin üstüne karartma (üst açık → alt koyu, artwork görünsün) */
.site-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,6,10,.45) 0%, rgba(8,6,10,.55) 50%, rgba(8,6,10,.82) 100%);
}

/* Atmosferik renk katmanı (kor/mor/kızıl parıltılar) */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(900px 500px at 50% -150px, rgba(224,85,43,.14) 0%, transparent 55%),
        radial-gradient(700px 700px at 100% 0%, rgba(123,79,176,.10) 0%, transparent 50%),
        radial-gradient(600px 600px at 0% 100%, rgba(160,31,46,.10) 0%, transparent 50%);
}
/* İnce gürültü dokusu */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: -2; opacity: .4; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}
/* Kıvılcım canvas (yukarı süzülen altın partiküller) */
#sparks {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
}

/* Body şeffaf — arka plan görünsün */
body { background: var(--bg); }

/* ============================================================
   ORTALI LOGO (header-center)
   ============================================================ */
.header-center .wrap {
    flex-direction: column;
    gap: 14px;
    padding-top: 2px;
    padding-bottom: 12px;
    text-align: center;
}
.logo-merkez {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}
.logo-merkez .logo-img {
    height: 80px;
    max-width: min(440px, 90vw);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(224,165,22,.35));
}
.logo-merkez .logo-mark {
    width: 58px; height: 58px;
    font-size: 30px;
    border-radius: 14px;
}
.logo-merkez .logo-text { font-size: 30px; }
.search-box-merkez {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}
@media (max-width: 600px) {
    .logo-merkez .logo-img { height: 60px; }
    .header-center .wrap { padding-top: 6px; }
}

/* ---------- Alt forum linkleri (görsellerdeki iç içe yapı) ---------- */
.alt-forum-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 7px;
}
.alt-forum-link {
    font-size: 12.5px;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
}
.alt-forum-link:hover { color: var(--accent); }

/* ============================================================
   REIGN2 ANİMASYONLU AMBLEM LOGO (ana siteden birebir)
   Altın ejderha kanatlı, taçlı, kalkanlı amblem + dönen halkalar
   + parıltı + parlayan altın yazı.
   ============================================================ */
.logo-merkez { overflow: visible; }
.logo-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
/* Dönen halkalar */
.logo-stage .logo-rings { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 156px; height: 156px; pointer-events: none; }
.logo-stage .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(217,178,90,.25); inset: 0; }
.logo-stage .ring1 { animation: logo-spin 24s linear infinite; }
.logo-stage .ring2 { inset: 16px; border-color: rgba(246,215,132,.18); border-style: dashed; animation: logo-spinR 18s linear infinite; }
.logo-stage .ring3 { inset: 33px; border-color: rgba(224,85,43,.22); animation: logo-spin 30s linear infinite; }
.logo-stage .ring1::before, .logo-stage .ring3::after { content:''; position:absolute; width:6px; height:6px; border-radius:50%; background:#f6d784; box-shadow:0 0 14px #f6d784; top:-3px; left:50%; margin-left:-3px; }
.logo-stage .ring3::after { background:#ff7a45; box-shadow:0 0 14px #ff7a45; bottom:-3px; top:auto; }
@keyframes logo-spin { to { transform: rotate(360deg); } }
@keyframes logo-spinR { to { transform: rotate(-360deg); } }
/* Parıltı */
.logo-stage .logo-glow { position:absolute; top:-6px; left:50%; transform:translateX(-50%); width:130px; height:130px; border-radius:50%; background:radial-gradient(circle,rgba(246,215,132,.32),transparent 65%); filter:blur(8px); animation:logo-breathe 4s ease-in-out infinite; pointer-events:none; }
@keyframes logo-breathe { 0%,100%{opacity:.55;transform:translateX(-50%) scale(1)} 50%{opacity:1;transform:translateX(-50%) scale(1.12)} }
/* Süzülen amblem */
.logo-stage .emblem-wrap { position:relative; z-index:2; animation:logo-floaty 5s ease-in-out infinite; }
@keyframes logo-floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.logo-stage .emblem { width:112px; height:auto; display:block; filter:drop-shadow(0 4px 12px rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(246,215,132,.5)); }
/* Parlayan altın yazı */
.logo-stage .logo-text {
    position:relative; z-index:2; font-family:'Cinzel',serif; font-weight:800;
    font-size:2rem; line-height:.95; margin-top:-4px; letter-spacing:.06em;
    background:linear-gradient(180deg,#fff8e6 0%,#ffe9b0 28%,#f6d784 50%,#d9b25a 70%,#9a7531 100%);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
    filter:drop-shadow(0 3px 1px #000) drop-shadow(0 0 30px rgba(246,215,132,.45));
}
.logo-stage .logo-text::after {
    content:attr(data-text); position:absolute; inset:0;
    background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.85) 50%,transparent 65%);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
    animation:logo-shine 4.5s ease-in-out infinite; background-size:250% 100%;
}
@keyframes logo-shine { 0%{background-position:200% 0} 55%,100%{background-position:-120% 0} }
/* Alt çizgi */
.logo-stage .logo-underline { width:0; height:2px; margin-top:4px; background:linear-gradient(90deg,transparent,#d9b25a,transparent); box-shadow:0 0 12px #d9b25a; animation:logo-underline 1.4s ease-out .4s forwards; }
@keyframes logo-underline { to { width:min(280px,68vw); } }

@media (prefers-reduced-motion: reduce) {
    .logo-stage .ring, .logo-stage .logo-glow, .logo-stage .emblem-wrap, .logo-stage .logo-text::after { animation:none; }
    .logo-stage .logo-underline { width:min(280px,68vw); animation:none; }
}
@media (max-width:600px) {
    .logo-stage .emblem { width:88px; }
    .logo-stage .logo-text { font-size:1.55rem; }
    .logo-stage .logo-rings { width:150px; height:150px; }
}
