﻿/* ============ WISP FORUM â€” OWN DESIGN SYSTEM ============ */
/* Renk token'lari theme.css icinde tanimlidir â€” bu dosyadan ONCE yuklenmeli.
   Tema degistirmek icin theme.css'i duzenle, burayi degil. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    padding-top: 108px;
}

::selection { background: var(--selection-bg); color: var(--selection-text); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); }
[hidden] { display: none !important; }

a { color: var(--text); }

/* ===== BUTTONS / FORMS ===== */
.btn {
    border-radius: 0; text-transform: uppercase; letter-spacing: .08em;
    font-size: .8rem; font-weight: 700; padding: .8rem 1.75rem;
    transition: all .15s ease; border: 1px solid transparent; cursor: pointer;
}
.btn-sm { padding: .5rem 1rem; font-size: .7rem; }
.btn-primary { background: var(--accent); color: var(--text-invert); border-color: var(--accent); }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-hover); }
.btn-outline:hover { border-color: var(--text); }

.form-control-dark {
    width: 100%; background: var(--bg); border: 1px solid var(--border);
    border-radius: 0; padding: .7rem 1rem; color: var(--text); font-size: .9rem;
}
.form-control-dark:focus { outline: none; border-color: var(--text); }

/* ===== AVATARS ===== */
.avatar {
    background: var(--bg); border: 1px solid var(--border); color: var(--accent);
    font-weight: 800; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; width: 36px; height: 36px; font-size: .85rem;
}
.avatar.sm { width: 30px; height: 30px; font-size: .75rem; }
.avatar.lg { width: 48px; height: 48px; font-size: 1.1rem; }
.avatar.xl { width: 96px; height: 96px; font-size: 2.2rem; border: 2px solid var(--border); border-radius: 50%; overflow: hidden; }

/* ============ FORUM HEADER (2 rows) ============ */
.f-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

.f-top { background: var(--surface); border-bottom: 1px solid var(--border); }
.f-top-inner { display: flex; align-items: center; gap: 1.5rem; height: 60px; }

.f-logo {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 800; letter-spacing: .15em; text-decoration: none; color: var(--text);
}
.f-logo img { width: 24px; height: 24px; }
.f-logo span { color: var(--accent); font-size: .8rem; }

.f-search { flex: 1; max-width: 420px; display: flex; border: 1px solid var(--border); background: var(--bg); }
.f-search input { flex: 1; background: transparent; border: none; color: var(--text); padding: .5rem .9rem; font-size: .85rem; outline: none; }
.f-search button { background: transparent; border: none; color: var(--muted); padding: 0 .9rem; cursor: pointer; }
.f-search button:hover { color: var(--text); }

.f-icons { margin-left: auto; display: flex; align-items: center; gap: .75rem; position: relative; }

.f-icon {
    position: relative; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); color: var(--muted);
    background: transparent; cursor: pointer; text-decoration: none; transition: .15s;
}
.f-icon:hover { color: var(--text); border-color: var(--border-hover); text-decoration: none; }

/* Dil dugmesi — EN / TR */
.f-lang { width: auto; padding: 0 .7rem; font-size: .7rem; font-weight: 800; letter-spacing: .1em; font-family: var(--font-body); }
.f-lang:hover { color: var(--accent); border-color: var(--accent-border); }
.f-lang { display: inline-flex; align-items: center; gap: .45rem; }
.f-lang .lang-flag { width: 16px; height: 11px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.12); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.f-lang:hover .lang-flag { transform: scale(1.12); }

.f-badge {
    position: absolute; top: -6px; right: -6px;
    background: var(--accent); color: var(--text-invert);
    font-size: .6rem; font-weight: 800;
    min-width: 16px; height: 16px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center; border-radius: 8px;
}

.f-user { display: flex; align-items: center; gap: .5rem; cursor: pointer; color: var(--muted); font-size: .85rem; font-weight: 600; }
.f-user i { font-size: .6rem; }
.f-user:hover { color: var(--text); }

.f-auth { display: flex; align-items: center; gap: .75rem; }
.f-auth a.link { color: var(--muted); text-decoration: none; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.f-auth a.link:hover { color: var(--text); }

/* Dropdowns */
.notif-drop, .user-drop {
    position: absolute; top: calc(100% + 12px); right: 0; width: 330px;
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow-xl); z-index: 1001;
}
.drop-head {
    padding: .9rem 1rem; border-bottom: 1px solid var(--border);
    font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
    display: flex; justify-content: space-between; align-items: center;
}
.drop-head a { color: var(--accent); text-decoration: none; }

.notif-item { display: flex; gap: .9rem; padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border: none; }
.notif-item i { color: var(--accent); margin-top: .2rem; }
.notif-item p { color: var(--text); font-size: .85rem; margin: 0 0 .2rem; }
.notif-item p b { color: var(--text); }
.notif-item span { color: var(--muted); font-size: .7rem; }
.notif-item.unread { background: var(--accent-tint-08); }

.user-drop-head { padding: 1rem; border-bottom: 1px solid var(--border); display: flex; gap: .75rem; align-items: center; }
.user-drop-head strong { display: block; font-size: .9rem; }
.user-drop-head span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.user-drop a { display: block; padding: .7rem 1rem; color: var(--muted); font-size: .85rem; text-decoration: none; border-bottom: 1px solid var(--border); }
.user-drop a:last-child { border: none; }
.user-drop a:hover { color: var(--text); background: var(--bg); }
.user-drop a i { width: 18px; color: var(--accent); }

/* Tab bar */
.f-tabs { background: var(--bg); border-bottom: 1px solid var(--border); }
.f-tabs .container { display: flex; gap: .25rem; overflow-x: auto; }
.f-tab {
    color: var(--muted); text-transform: uppercase; font-size: .75rem; font-weight: 700;
    letter-spacing: .1em; padding: .9rem 1.25rem; text-decoration: none;
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.f-tab:hover { color: var(--text); text-decoration: none; }
.f-tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ============ LAYOUT ============ */
.f-container { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1rem; }
.f-breadcrumb { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.5rem; }
.f-breadcrumb a { color: var(--muted); text-decoration: none; }
.f-breadcrumb a:hover { color: var(--text); }

/* ============ FORUM INDEX ============ */
.cat-block { border: 1px solid var(--border); background: var(--surface); margin-bottom: 2rem; }
.cat-head {
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .7rem 1.25rem; font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
    display: flex; justify-content: space-between;
}
.cat-head span { color: var(--muted); }

.node-card { display: flex; gap: 1.25rem; align-items: center; padding: 1.25rem; border-bottom: 1px solid var(--border); }
.node-card:last-child { border-bottom: none; }
.node-card:hover { background: var(--surface-2); }

.node-icon {
    width: 46px; height: 46px; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 1.1rem; flex-shrink: 0;
}
.node-main { flex: 1; min-width: 0; }
.node-title { font-weight: 700; font-size: .95rem; text-decoration: none; }
.node-title:hover { color: var(--accent); text-decoration: none; }
.node-main p { color: var(--muted); font-size: .8rem; margin: .25rem 0 0; }

.node-stats { display: flex; gap: 1.5rem; text-align: right; }
.node-stats div { display: flex; flex-direction: column; }
.node-stats strong { font-size: .85rem; }
.node-stats span { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }

.node-last { display: flex; gap: .75rem; align-items: center; min-width: 230px; }
.last-title { display: block; font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.last-title:hover { color: var(--accent); text-decoration: none; }
.last-meta { color: var(--muted); font-size: .7rem; }

/* Sidebar */
.side-card { border: 1px solid var(--border); background: var(--surface); padding: 1.5rem; margin-bottom: 1.5rem; }
.side-card h4 { font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1rem; }
.side-card ul { list-style: none; }
.side-card li { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.side-card li:last-child { border: none; }
.side-card li strong { color: var(--text); }
.online-count { display: flex; align-items: center; gap: .5rem; color: var(--success); font-weight: 800; margin-bottom: .5rem; }
.online-list { color: var(--muted); font-size: .75rem; line-height: 1.6; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--success-bright); box-shadow: 0 0 8px var(--success-tint-60); }

/* ============ THREAD LIST ============ */
.thread-list { border: 1px solid var(--border); background: var(--surface); }
.thread-row { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); text-decoration: none; }
.thread-row:last-child { border: none; }
.thread-row:hover { background: var(--surface-2); text-decoration: none; }
.thread-main { flex: 1; min-width: 0; }
.thread-main h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .25rem; }
.thread-main h3 a { text-decoration: none; }
.thread-main h3 a:hover { color: var(--accent); }
.thread-meta { color: var(--muted); font-size: .75rem; }
.thread-num { text-align: right; min-width: 55px; display: flex; flex-direction: column; }
.thread-num strong { font-size: .9rem; }
.thread-num span { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.thread-last { min-width: 140px; text-align: right; display: flex; flex-direction: column; }
.thread-last span:first-child { font-size: .8rem; font-weight: 600; }

.cat-tag { font-size: .6rem; font-weight: 800; letter-spacing: .1em; padding: .2rem .5rem; border: 1px solid; flex-shrink: 0; }
.cat-tag.announcement { color: var(--accent-2); border-color: var(--accent-2); }
.cat-tag.general { color: var(--text); border-color: var(--border-hover); }
.cat-tag.support { color: var(--accent); border-color: var(--accent-border); }
.cat-tag.profiles { color: var(--success); border-color: var(--success-border); }
.cat-tag.showcase { color: var(--text); border-color: var(--border-hover); }

/* ============ THREAD VIEW (XenForo posts) ============ */
.thread-title-bar { margin-bottom: 1.5rem; }
.thread-title-bar h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; margin: .75rem 0 .5rem; }

.post { display: flex; border: 1px solid var(--border); background: var(--surface); margin-bottom: 1rem; }
.post-side {
    width: 170px; flex-shrink: 0; padding: 1.25rem;
    border-right: 1px solid var(--border); background: var(--bg);
    display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
}
.post-user { font-size: .9rem; font-weight: 700; }
.post-user.premium-name { color: var(--warning); text-shadow: 0 0 12px var(--warning-tint-30); }
.post-user.staff-name { color: var(--accent); }
.post-role { font-size: .6rem; font-weight: 800; letter-spacing: .1em; padding: .2rem .5rem; border: 1px solid; }
.post-role.staff { color: var(--accent); border-color: var(--accent-border); }
.post-role.member { color: var(--muted); border-color: var(--tag-border-neutral); }
.post-role.premium {
    color: var(--warning); border-color: var(--warning-border); background: var(--warning-tint-08);
    animation: premiumGlow 2.5s ease-in-out infinite;
}
@keyframes premiumGlow {
    0%, 100% { box-shadow: 0 0 4px var(--warning-tint-15); }
    50% { box-shadow: 0 0 10px var(--warning-tint-35); }
}
.post-count { color: var(--muted); font-size: .65rem; }
.post-stats { width: 100%; margin-top: .5rem; }
.post-stat { display: flex; justify-content: space-between; padding: .25rem 0; border-bottom: 1px solid var(--border); font-size: .7rem; }
.post-stat:last-child { border-bottom: none; }
.post-stat-label { color: var(--muted); }
.post-stat-value { color: var(--text); font-weight: 600; }
.avatar.avatar-premium { border: 2px solid var(--warning-bright); box-shadow: 0 0 12px var(--warning-tint-25); }
.avatar.avatar-staff { border: 2px solid var(--accent); box-shadow: 0 0 12px var(--accent-tint-25); }

.post-body { flex: 1; padding: 1.25rem 1.5rem; min-width: 0; }
.post-head { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
.post-content { color: var(--muted); line-height: 1.8; font-size: .95rem; }
.post-actions { margin-top: 1.25rem; display: flex; gap: 1.25rem; }
.post-actions a { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.post-actions a:hover { color: var(--accent); }

/* ============ WHAT'S NEW ============ */
.wn-row { display: flex; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.wn-row:last-child { border: none; }
.wn-main h3 { font-size: .9rem; margin-bottom: .35rem; }
.wn-main h3 a { text-decoration: none; }
.wn-main h3 a:hover { color: var(--accent); }
.wn-excerpt { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.wn-meta { color: var(--muted); font-size: .7rem; margin-top: .5rem; }

/* ============ MESSAGES ============ */
.msg-wrap { display: flex; border: 1px solid var(--border); background: var(--surface); min-height: 65vh; }
.msg-list { width: 290px; border-right: 1px solid var(--border); flex-shrink: 0; overflow-y: auto; }
.conv-item { display: flex; gap: .75rem; padding: 1rem; border-bottom: 1px solid var(--border); cursor: pointer; align-items: center; }
.conv-item:hover { background: var(--surface-2); }
.conv-item.active { background: var(--bg); border-left: 2px solid var(--accent); }
.conv-item strong { font-size: .85rem; display: block; }
.conv-item span { color: var(--muted); font-size: .7rem; }

.msg-view { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.msg-head { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; align-items: center; gap: .75rem; }
.msg-body { flex: 1; padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: .9rem; }
.msg-bubble { max-width: 70%; padding: .7rem 1rem; font-size: .9rem; line-height: 1.6; border: 1px solid var(--border); background: var(--bg); color: var(--muted); }
.msg-bubble.me { align-self: flex-end; background: var(--surface-2); border-color: var(--border-hover); color: var(--text); }
.msg-time { font-size: .65rem; color: var(--muted); margin-top: .3rem; display: block; }
.msg-compose { display: flex; gap: .75rem; padding: 1rem; border-top: 1px solid var(--border); }
.msg-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.msg-tabs { display: flex; gap: .25rem; }
.msg-tab { background: var(--surface); border: 1px solid var(--border); color: var(--muted); padding: .5rem 1rem; font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.msg-tab:first-child { border-radius: 6px 0 0 6px; }
.msg-tab:last-child { border-radius: 0 6px 6px 0; }
.msg-tab:hover { color: var(--text); border-color: var(--border-hover); }
.msg-tab.active { background: var(--accent); border-color: var(--accent); color: var(--text-invert); }
.msg-modal-overlay { position: fixed; inset: 0; background: var(--scrim); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.msg-modal { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 2rem; width: 100%; max-width: 480px; }
.msg-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.msg-modal-head h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.msg-modal-head button { background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.msg-modal-head button:hover { color: var(--text); }
.msg-modal .form-group { margin-bottom: 1rem; }
.msg-modal label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .35rem; color: var(--muted); }
.msg-modal textarea { resize: vertical; }

/* ============ PROFILE ============ */
.profile-banner { height: 150px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); border: 1px solid var(--border); }
.profile-head { display: flex; gap: 1.5rem; align-items: flex-end; padding: 0 2rem; margin-top: -48px; margin-bottom: 2rem; position: relative; flex-wrap: wrap; }
.profile-info h1 { font-size: 1.5rem; font-weight: 800; }
.profile-info p { color: var(--muted); font-size: .8rem; }
.profile-stats { margin-left: auto; display: flex; gap: 2.5rem; padding-bottom: .5rem; }
.pstat { text-align: center; }
.pstat strong { font-size: 1.4rem; font-weight: 800; display: block; }
.pstat span { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }

/* ============ FOOTER ============ */
.f-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: .8rem; }
.f-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.f-footer a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; }
.f-footer a:hover { color: var(--text); }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .node-stats, .node-last, .thread-last { display: none; }
    .post-side { width: 110px; padding: 1rem; }
    .msg-list { width: 220px; }
    .f-search { display: none; }
}
@media (max-width: 768px) {
    /* Header: misafir icin ikonlari gizle (zaten islevsiz), butonlari sigdir */
    .f-top-inner { gap: .75rem; }
    .f-logo span { display: none; }
    .f-icons { gap: .5rem; }
    .f-auth { gap: .5rem; }
    .f-auth a.link { white-space: nowrap; font-size: .7rem; }
    .f-auth .btn-sm { padding: .5rem .8rem; font-size: .65rem; white-space: nowrap; }
    .f-icons:has(#authBox:not([hidden])) > .f-icon:not(.f-lang) { display: none; }
    .f-user span { display: none; }
    .notif-drop, .user-drop { width: min(330px, calc(100vw - 2rem)); }

    .post { flex-direction: column; }
    .post-side { width: 100%; flex-direction: row; justify-content: flex-start; text-align: left; border-right: none; border-bottom: 1px solid var(--border); }
    .msg-wrap { flex-direction: column; }
    .msg-list { width: 100%; max-height: 200px; }
    .profile-stats { margin-left: 0; }
}
/* Wordmark logosu â€” en-boy oranÄ±nÄ± koru */
.f-logo .brand-logo {
    width: auto !important;
    height: 22px !important;
}

.f-logo span {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.25em;
}