/* SaidoProject Forum stilleri (style.css'e ek olarak yüklenir) */
.forum-section { padding-top: 24px; padding-bottom: 60px; min-height: 70vh; }
.forum-wrap { max-width: 860px; margin: 0 auto; }

.forum-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 25px; }
.forum-topbar h1 { color: var(--primary-green, #8fd694); font-size: 2rem; }
#authBar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.auth-user { color: var(--text-light, #e0f2e9); font-weight: 600; text-decoration: none; }
.auth-user:hover { color: var(--primary-green, #8fd694); }
.auth-user i { margin-right: 2px; }

.fbtn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; font-family: inherit; cursor: pointer; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.fbtn:hover { transform: translateY(-2px); }
.fbtn-primary { background: var(--primary-green, #8fd694); color: #122a1e; }
.fbtn-primary:hover { background: #a5e6aa; box-shadow: 0 8px 20px rgba(143, 214, 148, .25); }
.fbtn-ghost { background: transparent; color: var(--text-light, #e0f2e9); border-color: rgba(143, 214, 148, .4); }
.fbtn-ghost:hover { border-color: var(--primary-green, #8fd694); }

/* Net görünen eylem butonları (ikon + yazı, çerçeveli) */
.abtn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 8px; border: 1px solid rgba(143, 214, 148, .55); background: rgba(143, 214, 148, .1); color: var(--text-light, #e0f2e9); font-family: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.abtn:hover { background: rgba(143, 214, 148, .22); border-color: var(--primary-green, #8fd694); transform: translateY(-2px); }
.abtn:active { transform: scale(.97); }
.abtn i { font-size: .95em; }
.abtn-solid { background: var(--primary-green, #8fd694); border-color: var(--primary-green, #8fd694); color: #122a1e; }
.abtn-solid:hover { background: #a5e6aa; }
.abtn-danger { background: rgba(255, 92, 92, .1); border-color: rgba(255, 138, 138, .6); color: #ff9a9a; }
.abtn-danger:hover { background: rgba(255, 92, 92, .22); border-color: #ff8a8a; }
.lbl i { margin-right: 2px; }

.forum-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.forum-head h2 { color: var(--text-light, #e0f2e9); }

.topic-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 20px; margin-bottom: 10px; background: rgba(18, 42, 30, .7); border: 1px solid rgba(143, 214, 148, .2); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.topic-row:hover { border-color: var(--primary-green, #8fd694); transform: translateX(4px); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.topic-main h3 { color: var(--text-light, #e0f2e9); font-size: 1.05rem; margin-bottom: 4px; word-break: break-word; }
.topic-replies { color: var(--primary-green, #8fd694); font-weight: 600; white-space: nowrap; transition: transform .2s; }
.topic-row:hover .topic-replies { transform: scale(1.12); }
.meta { color: var(--text-muted, #a0c4b0); font-size: .85rem; }

.post { padding: 18px 20px; margin-bottom: 12px; background: rgba(18, 42, 30, .7); border: 1px solid rgba(143, 214, 148, .15); border-radius: 12px; }
.post-main { border-color: rgba(143, 214, 148, .45); }
.post-main h2 { color: var(--primary-green, #8fd694); margin-bottom: 10px; word-break: break-word; }
.post-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.post-body { margin-top: 12px; color: var(--text-light, #e0f2e9); white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.replies-title { margin: 22px 0 12px; color: var(--text-light, #e0f2e9); }
.back-link { display: inline-block; margin-bottom: 15px; color: var(--primary-green, #8fd694); text-decoration: none; transition: transform .2s; }
.back-link:hover { transform: translateX(-4px); }

/* İki isim: takma ad + @kullanıcıadı (%50 soluk) */
.namebox { display: inline-flex; flex-direction: column; line-height: 1.25; }
.ulink, .dname { color: var(--primary-green, #8fd694); font-weight: 700; text-decoration: none; }
.ulink:hover { text-decoration: underline; }
.handle { opacity: .5; font-size: .82rem; font-weight: 400; color: var(--text-light, #e0f2e9); }
.handle-big { font-size: 1rem; margin-bottom: 8px; }
.topic-main h3 .handle { font-size: .8rem; }

.link-btn { background: none; border: none; padding: 0; color: var(--text-muted, #a0c4b0); font-size: .85rem; cursor: pointer; font-family: inherit; text-decoration: none; transition: color .2s; }
.link-btn:hover { color: var(--primary-green, #8fd694); }

.finput { width: 100%; padding: 12px 14px; margin-bottom: 12px; background: rgba(0, 0, 0, .3); color: var(--text-light, #e0f2e9); border: 1px solid rgba(143, 214, 148, .3); border-radius: 8px; font-size: 1rem; font-family: inherit; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.finput:focus { outline: none; border-color: var(--primary-green, #8fd694); box-shadow: 0 0 0 3px rgba(143, 214, 148, .15); }
.finput:disabled { opacity: .6; cursor: not-allowed; }
select.finput { appearance: auto; }
.reply-form { margin-top: 18px; }
.form-msg, .forum-error { color: #ff8a8a; min-height: 1.2em; margin-bottom: 10px; font-size: .9rem; }
.forum-loading, .forum-empty { color: var(--text-muted, #a0c4b0); text-align: center; padding: 25px 0; }
.forum-empty a { color: var(--primary-green, #8fd694); }

/* Giriş / kayıt / şikayet penceresi */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .7); overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: 100%; max-width: 400px; max-height: 100%; overflow-y: auto; padding: 30px 25px; background: #122a1e; border: 2px solid var(--primary-green, #8fd694); border-radius: 18px; box-shadow: 0 0 50px rgba(143, 214, 148, .2); }
.modal-box h3 { color: var(--primary-green, #8fd694); margin-bottom: 18px; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: var(--text-muted, #a0c4b0); font-size: 1.8rem; cursor: pointer; transition: transform .2s, color .2s; }
.modal-close:hover { transform: rotate(90deg); color: var(--primary-green, #8fd694); }
#tsBox { margin-bottom: 12px; min-height: 65px; }
.auth-switch { margin-top: 14px; text-align: center; font-size: .9rem; }
.auth-switch a { color: var(--primary-green, #8fd694); }
.auth-hint { margin: -4px 0 12px; font-size: .8rem; color: var(--text-muted, #a0c4b0); }

/* KVKK onay kutuları */
.kvkk-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: .85rem; line-height: 1.45; color: var(--text-muted, #a0c4b0); cursor: pointer; }
.kvkk-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary-green, #8fd694); cursor: pointer; }
.kvkk-check a { color: var(--primary-green, #8fd694); }

/* Şikayet nedenleri */
.reason { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid rgba(143, 214, 148, .25); border-radius: 8px; color: var(--text-light, #e0f2e9); cursor: pointer; transition: border-color .2s, background .2s; }
.reason:hover { border-color: var(--primary-green, #8fd694); background: rgba(143, 214, 148, .06); }
.reason input { accent-color: var(--primary-green, #8fd694); width: 18px; height: 18px; }

/* Zil + okunmamış sayısı */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(143, 214, 148, .55); background: rgba(143, 214, 148, .1); color: var(--text-light, #e0f2e9); text-decoration: none; font-size: 1.05rem; transition: transform .2s, border-color .2s, background .2s; }
.bell:hover { transform: scale(1.08); border-color: var(--primary-green, #8fd694); background: rgba(143, 214, 148, .22); }
.bell-count { position: absolute; top: -6px; right: -6px; min-width: 20px; padding: 1px 5px; border-radius: 10px; background: #ff5c5c; color: #fff; font-size: .72rem; font-weight: 700; text-align: center; animation: pulseRed 2s ease-in-out infinite; }

/* Kartlar, sekmeler, chipler */
.card { padding: 20px; margin-bottom: 16px; background: rgba(18, 42, 30, .7); border: 1px solid rgba(143, 214, 148, .2); border-radius: 14px; animation: fadeUp .45s ease backwards; }
.card h2 { color: var(--primary-green, #8fd694); margin-bottom: 2px; word-break: break-word; }
.card h3 { color: var(--text-light, #e0f2e9); margin-bottom: 12px; }
.profile-head { border-color: rgba(143, 214, 148, .45); }
.bio { margin: 12px 0; color: var(--text-light, #e0f2e9); white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.admin-card { border-color: rgba(255, 179, 71, .5); }
.field { display: block; margin-bottom: 4px; }
.field > span { display: block; margin-bottom: 6px; color: var(--text-muted, #a0c4b0); font-size: .85rem; }
.link-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.link-chips, .badge-edit { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(143, 214, 148, .12); border: 1px solid rgba(143, 214, 148, .35); color: var(--text-light, #e0f2e9); font-size: .85rem; text-decoration: none; }
a.chip:hover { border-color: var(--primary-green, #8fd694); }
.chip.warn { background: rgba(255, 179, 71, .15); border-color: rgba(255, 179, 71, .5); color: #ffcf8a; }
.chip-x { background: none; border: none; color: #ff8a8a; font-size: .9rem; cursor: pointer; padding: 0 2px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(143, 214, 148, .5); background: rgba(143, 214, 148, .08); color: var(--text-light, #e0f2e9); font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.tab:hover { border-color: var(--primary-green, #8fd694); }
.tab.active { background: var(--primary-green, #8fd694); color: #122a1e; }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.quote { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--primary-green, #8fd694); background: rgba(0, 0, 0, .25); border-radius: 0 8px 8px 0; color: var(--text-light, #e0f2e9); white-space: pre-wrap; word-break: break-word; font-size: .92rem; }

/* Bildirimler */
.notif { padding: 14px 16px; margin-bottom: 10px; background: rgba(18, 42, 30, .7); border: 1px solid rgba(143, 214, 148, .15); border-left: 4px solid rgba(143, 214, 148, .5); border-radius: 10px; animation: fadeUp .4s ease backwards; }
.notif.unread { background: rgba(143, 214, 148, .1); border-color: rgba(143, 214, 148, .5); }
.notif-warning { border-left-color: #ffb347; }
.notif-warning .notif-title i { color: #ffb347; }
.notif-report { border-left-color: #ff5c5c; }
.notif-report .notif-title i { color: #ff7a7a; }
.notif-title { font-weight: 700; color: var(--text-light, #e0f2e9); margin-bottom: 4px; }
.notif-body { color: var(--text-light, #e0f2e9); margin-bottom: 6px; white-space: pre-wrap; word-break: break-word; }

/* Rozetler */
.badge-row { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 4px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(143, 214, 148, .25); font-size: .75rem; color: var(--text-light, #e0f2e9); cursor: help; transition: transform .15s, border-color .15s; }
.badge:hover, .badge:focus { transform: translateY(-1px); border-color: var(--primary-green, #8fd694); outline: none; }
.badge-canvas { width: 22px; height: 22px; display: block; }
.badge-tip { position: fixed; z-index: 3000; max-width: 260px; padding: 14px 16px; background: #0e2218; border: 2px solid var(--primary-green, #8fd694); border-radius: 16px; box-shadow: 0 10px 35px rgba(0, 0, 0, .5); color: var(--text-light, #e0f2e9); pointer-events: none; animation: popIn .18s ease; }
.badge-tip[hidden] { display: none; }
.tip-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tip-top strong { color: var(--primary-green, #8fd694); font-size: 1.05rem; }
.tip-canvas { width: 56px; height: 56px; flex: 0 0 auto; }
.badge-tip p { font-size: .88rem; line-height: 1.45; color: var(--text-muted, #a0c4b0); }

/* Bilgi mesajı (toast) */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 4000; transform: translate(-50%, 20px); max-width: 90%; padding: 12px 20px; background: #122a1e; border: 1px solid var(--primary-green, #8fd694); border-radius: 10px; color: var(--text-light, #e0f2e9); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================
   ANİMASYONLAR
   ========================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(14px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(143, 214, 148, .35); } 50% { box-shadow: 0 0 0 8px rgba(143, 214, 148, 0); } }
@keyframes pulseRed { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, .5); } 50% { box-shadow: 0 0 0 6px rgba(255, 92, 92, 0); } }

.forum-topbar { animation: fadeUp .5s ease backwards; }
.forum-head { animation: slideRight .4s ease backwards; }
.back-link { animation: slideRight .4s ease backwards; }
.topic-row { animation: fadeUp .45s ease backwards; }
.post { animation: fadeUp .45s ease backwards; }
.post-main { animation-duration: .5s; }
.replies-title { animation: fadeIn .5s ease backwards; }
.reply-form { animation: fadeUp .5s ease .15s backwards; }
.forum-empty { animation: fadeIn .6s ease backwards; }
.forum-error { animation: shake .45s ease; }
.form-msg:not(:empty) { animation: shake .4s ease; }

.modal:not([hidden]) { animation: fadeIn .2s ease; }
.modal:not([hidden]) .modal-box { animation: popIn .32s cubic-bezier(.2, .9, .3, 1.2) backwards; }

#authBar .fbtn-primary { animation: pulseGlow 2.4s ease-in-out 1s 3; }
.fbtn:active { transform: scale(.97); }

.forum-loading::before { content: ''; display: block; width: 34px; height: 34px; margin: 0 auto 12px; border: 3px solid rgba(143, 214, 148, .25); border-top-color: var(--primary-green, #8fd694); border-radius: 50%; animation: spin .8s linear infinite; }

@media (max-width: 520px) {
    .link-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .forum-topbar, .forum-head, .back-link, .topic-row, .post, .replies-title, .reply-form, .forum-empty, .card, .notif,
    .forum-error, .form-msg, .modal, .modal-box, #authBar .fbtn-primary, .kvkk-doc, .bell-count, .badge-tip { animation: none !important; }
    .forum-loading::before { animation-duration: 2s; }
}

/* ==========================================
   Net görünen butonlar + iki isim (takma ad / @kullanıcıadı)
   ========================================== */
.fbtn-ghost { background: rgba(143, 214, 148, .1); border-color: rgba(143, 214, 148, .55); }
.fbtn-ghost:hover { background: rgba(143, 214, 148, .22); }
.fbtn-sm { padding: 8px 14px; font-size: .85rem; }
.fbtn-danger { background: rgba(255, 92, 92, .1); color: #ff9a9a; border-color: rgba(255, 138, 138, .6); }
.fbtn-danger:hover { background: rgba(255, 92, 92, .22); border-color: #ff8a8a; }
.fbtn.bell { position: relative; width: auto; height: auto; border-radius: 8px; padding: 10px 14px; }
.fbtn.bell .bell-count { top: -8px; right: -8px; }

.who { display: flex; flex-direction: column; line-height: 1.25; }
.post-who { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.post-head { justify-content: space-between; }
.post > .meta { display: block; margin-top: 8px; }
.handle { opacity: .5; font-size: .85rem; font-weight: 400; color: var(--text-light, #e0f2e9); }
.handle.big { font-size: 1rem; margin-bottom: 6px; }
.topic-main h3 + .handle { display: block; margin-bottom: 4px; }
.lbl i { margin-right: 2px; }

/* Üstteki zil / kullanıcı adı / yönetim / çıkış butonları: aynı boy */
#authBar > * { box-sizing: border-box; height: 46px; min-width: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; border: 1px solid rgba(143, 214, 148, .55); background: rgba(143, 214, 148, .1); color: var(--text-light, #e0f2e9); font-size: .95rem; font-weight: 600; font-family: inherit; line-height: 1; text-decoration: none; cursor: pointer; }
#authBar > *:hover { background: rgba(143, 214, 148, .22); border-color: var(--primary-green, #8fd694); }
#authBar > .bell, #authBar > .fbtn.bell { padding: 0; width: 46px; }
#authBar .fbtn-primary { background: var(--primary-green, #8fd694); color: #122a1e; border-color: var(--primary-green, #8fd694); }
@media (max-width: 520px) {
    #authBar { width: 100%; }
    #authBar > * { flex: 1 1 auto; padding: 0 12px; white-space: nowrap; }
    #authBar > .bell, #authBar > .fbtn.bell { flex: 0 0 46px; }
}
