/* =============================================================
   FORUM KONU & MESAJ UI
   ============================================================= */
.forum-layout { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem; }

/* Breadcrumb */
.forum-breadcrumb { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 8px; flex-wrap:wrap;}
.forum-breadcrumb a { color: var(--accent); text-decoration: none; }
.forum-breadcrumb a:hover { text-decoration: underline; }

/* Thread Header */
.thread-top-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; gap:1rem;}
.thread-title-box h1 { font-size: 1.6rem; font-weight: 800; color: var(--text-bright); margin: 0 0 8px; line-height: 1.3; }
.thread-badges { display: flex; gap: 8px; margin-bottom: 8px; }
.t-badge { padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.t-badge.pinned { background: rgba(255,197,61,0.1); color: #FFC53D; }
.t-badge.locked { background: rgba(232,93,117,0.1); color: var(--red); }
.thread-stats-top { font-size: 0.85rem; color: var(--text-secondary); display:flex; gap:15px;}

/* Posts */
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 1.5rem; display: flex; overflow: hidden; }
.post-sidebar { 
    width: 220px; background: var(--bg-tertiary); padding: 1.5rem; border-right: 1px solid var(--border); 
    display: flex; flex-direction: column; align-items: center; text-align: center; flex-shrink: 0; 
}
.post-avatar { width: 90px; height: 90px; border-radius: var(--radius-full); object-fit: cover; border: 3px solid var(--bg-card); box-shadow: 0 4px 12px rgba(0,0,0,0.2); margin-bottom: 12px; }
.post-author { display: block; font-size: 1.1rem; font-weight: 800; color: var(--accent); text-decoration: none; margin-bottom: 6px; }
.post-author:hover { text-decoration: underline; }
.post-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 15px; width: 100%; }
.p-badge { font-size: 0.65rem; font-weight: 700; padding: 4px 8px; border-radius: var(--radius-sm); color: #fff; display: inline-flex; align-items: center; gap: 4px; line-height: 1; }

.post-user-stats { font-size: 0.75rem; color: var(--text-secondary); background: var(--bg-card); padding: 12px; border-radius: var(--radius); width: 100%; text-align: left; }
.post-user-stats div { margin-bottom: 6px; display: flex; justify-content: space-between; }
.post-user-stats div:last-child { margin-bottom: 0; }

.post-main { flex: 1; padding: 1.5rem; min-width: 0; display: flex; flex-direction: column; }
.post-meta { display: flex; justify-content: space-between; align-items:center; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.post-content { flex: 1; font-size: 0.95rem; line-height: 1.7; color: var(--text-bright); word-wrap: break-word; white-space: pre-wrap; }
.post-attachment { margin-top: 1rem; }
.post-attachment img { display: block; max-width: min(100%, 520px); max-height: 420px; border-radius: var(--radius); border: 1px solid var(--border); object-fit: contain; background: var(--bg-tertiary); }
.post-file { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius); border: 1px solid var(--border); color: var(--text-secondary); background: var(--bg-tertiary); text-decoration: none; font-weight: 700; font-size: 0.85rem; }
.post-file:hover { color: var(--accent); border-color: var(--accent); }

/* Reply Area */
.reply-box { background: var(--bg-card); border: 1px solid var(--accent); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 2rem; position: relative; }
.reply-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.reply-box h3 { margin: 0 0 1rem; color: var(--text-bright); }
.form-textarea { width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; color: var(--text-bright); font-family: inherit; font-size: 0.95rem; min-height: 150px; resize: vertical; margin-bottom: 1rem; box-sizing: border-box; }
.form-textarea:focus { border-color: var(--accent); outline: none; }
.forum-attach-input { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1rem; padding: 9px 12px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-secondary); background: var(--bg-tertiary); cursor: pointer; font-size: 0.85rem; font-weight: 700; }
.forum-attach-input:hover { color: var(--accent); border-color: var(--accent); }
.forum-attach-input input { max-width: 230px; color: var(--text-muted); font-size: 0.78rem; }
.btn-primary { background: var(--accent); color: #000; border: none; padding: 10px 24px; border-radius: var(--radius); font-weight: 700; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--accent-glow); }

/* Mod Buttons & Actions */
.action-btns { display:flex; gap:8px; align-items:center; }
.mod-btn { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); padding: 6px 10px; border-radius: var(--radius); font-size: 0.8rem; cursor: pointer; transition: all 0.2s; display:inline-flex; align-items:center; gap:5px;}
.mod-btn:hover { background: var(--bg-hover); color: var(--text-bright); border-color:var(--text-secondary); }
.mod-btn.danger:hover { background: rgba(232,93,117,0.1); color: var(--red); border-color: var(--red); }
.mod-btn.warning:hover { background: rgba(255,197,61,0.1); color: #FFC53D; border-color: #FFC53D; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 9999; }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 500px; padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.modal-box h3 { margin: 0 0 1rem; color: var(--text-bright); font-size: 1.25rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 1rem; }
.btn-cancel { background: var(--bg-hover); color: var(--text-secondary); border: none; padding: 10px 20px; border-radius: var(--radius); cursor: pointer; font-weight: 700; }
.btn-cancel:hover { color: var(--text-bright); }

@media (max-width: 768px) {
    .post-card { flex-direction: column; }
    .post-sidebar { 
        width: 100%; border-right: none; border-bottom: 1px solid var(--border); 
        display: flex; flex-direction: column; align-items: center; padding: 1.5rem; text-align: center; gap: 10px; 
    }
    .post-avatar { width: 80px; height: 80px; margin-bottom: 0; }
    .post-user-stats { display: flex; flex-direction: column; width: 100%; max-width: 300px; }
    .post-meta { flex-direction:column; align-items:flex-start; gap:10px; }
    .action-btns { width:100%; justify-content:flex-end; }
}
