/* Forum içerik bileşenleri */

.forum-list { display: flex; flex-direction: column; gap: 0.75rem; }
.forum-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.forum-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.forum-item a { color: inherit; text-decoration: none; }
.forum-item-main { flex: 1; min-width: 0; }
.forum-item h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.forum-item p { font-size: 0.85rem; color: var(--muted); }
.forum-stats { font-size: 0.8rem; color: var(--muted); text-align: right; white-space: nowrap; }
.forum-stats strong { display: block; color: var(--text); font-size: 0.95rem; }
.forum-children { margin-left: 1.25rem; margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; margin-bottom: 0.35rem; line-height: 1.25; }
.page-header p { color: var(--muted); }
.breadcrumb {
    display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
    font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.empty-state {
    text-align: center; padding: 3rem 1rem; color: var(--muted);
    background: var(--surface); border: 1px dashed var(--border); border-radius: 12px;
}
.subforum-label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--muted); margin: 1.5rem 0 0.75rem;
}
.forum-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem;
}
.btn-new-thread {
    display: inline-block; padding: 0.55rem 1rem; background: var(--accent);
    color: #fff; text-decoration: none; border-radius: 8px; font-size: 0.875rem; font-weight: 600;
    border: none; cursor: pointer;
}
.btn-new-thread:hover { background: var(--accent-hover); }
.thread-table {
    width: 100%; border-collapse: collapse;
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.thread-table th, .thread-table td {
    padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.875rem;
}
.thread-table th {
    font-size: 0.7rem; text-transform: uppercase; color: var(--muted);
    background: var(--surface-elevated);
}
.thread-table tr:last-child td { border-bottom: none; }
.thread-title { color: var(--text); text-decoration: none; font-weight: 600; }
.thread-title:hover { color: var(--accent); }
.thread-sticky { background: rgba(59, 130, 246, 0.06); }
.badge-sticky {
    font-size: 0.65rem; background: var(--accent); color: #fff;
    padding: 0.1rem 0.4rem; border-radius: 4px; margin-right: 0.35rem;
}
.badge-locked { margin-right: 0.25rem; }
.badge-unread { color: var(--accent); font-size: 0.7rem; margin-right: 0.35rem; }
.thread-unread .thread-title { font-weight: 700; }
.thread-watch-form { margin: 0.5rem 0 1rem; }
.thread-meta { font-size: 0.8rem; color: var(--muted); }
.thread-meta span { display: block; }
.pagination {
    display: flex; justify-content: center; align-items: center; gap: 1rem;
    margin-top: 1.5rem; font-size: 0.875rem;
}
.pagination a { color: var(--accent); text-decoration: none; }
.pagination a:hover { text-decoration: underline; }
.post-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; margin-bottom: 1rem; overflow: hidden;
}
.post-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 1rem; background: var(--surface-elevated); border-bottom: 1px solid var(--border);
    flex-wrap: wrap; gap: 0.5rem;
}
.post-username { font-size: 0.8rem; color: var(--muted); margin-left: 0.35rem; }
.post-meta { font-size: 0.8rem; color: var(--muted); display: flex; gap: 0.75rem; }
.post-content { padding: 1rem 1.25rem; line-height: 1.7; }
.post-content p { margin-bottom: 0.75rem; }
.post-content p:last-child { margin-bottom: 0; }
.post-content code { background: var(--bg); padding: 0.15rem 0.35rem; border-radius: 4px; font-size: 0.9em; }
.post-content a { color: var(--accent); }
.reply-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.25rem; margin-top: 1.5rem;
}
.reply-box h3 { font-size: 1rem; margin-bottom: 1rem; }
.reply-box textarea,
.compose-form textarea {
    width: 100%; min-height: 120px; padding: 0.75rem; background: var(--bg);
    border: 1px solid var(--border); border-radius: 8px; color: var(--text);
    font-family: inherit; font-size: 0.95rem; resize: vertical;
}
.reply-box textarea:focus,
.compose-form input:focus,
.compose-form textarea:focus { outline: none; border-color: var(--accent); }
.reply-box .hint, .compose-form .hint { font-size: 0.75rem; color: var(--muted); margin: 0.35rem 0 1rem; }
.reply-box button {
    padding: 0.6rem 1.25rem; background: var(--accent); color: #fff;
    border: none; border-radius: 8px; font-weight: 600; cursor: pointer;
}
.reply-box button:hover { background: var(--accent-hover); }
.thread-locked-notice {
    text-align: center; padding: 1rem; color: var(--muted);
    background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; margin-top: 1.5rem;
}
.compose-form .field { margin-bottom: 1rem; }
.compose-form label { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.35rem; }
.compose-form input[type="text"] {
    width: 100%; padding: 0.65rem 0.85rem; background: var(--bg);
    border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: inherit;
}
.compose-form textarea { min-height: 160px; }
.field-error { color: var(--danger); font-size: 0.8rem; display: block; margin-top: 0.25rem; }
.post-footer { padding: 0.65rem 1rem; border-top: 1px solid var(--border); }
.btn-like {
    background: transparent; border: 1px solid var(--border); color: var(--muted);
    border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.8rem; cursor: pointer;
}
.btn-like.is-active, .btn-like:hover { color: #f472b6; border-color: rgba(244, 114, 182, 0.4); }
.reaction-count { font-size: 0.8rem; color: var(--muted); }
.post-content .mention { color: var(--accent); text-decoration: none; font-weight: 600; }
.post-content .mention:hover { text-decoration: underline; }
.alert-list { display: flex; flex-direction: column; gap: 0.75rem; }
.alert-item {
    display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem;
}
.alert-item.is-unread { border-color: rgba(59, 130, 246, 0.45); }
.alert-thread { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.alert-time { font-size: 0.75rem; color: var(--muted); display: block; margin-top: 0.35rem; }
.alert-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.profile-hero {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 1.5rem; margin-bottom: 2rem;
}
.profile-username { color: var(--muted); margin-top: 0.25rem; }
.profile-bio { margin-top: 0.75rem; line-height: 1.6; }
.profile-stats {
    display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem;
    font-size: 0.875rem; color: var(--muted);
}
.profile-stats strong { color: var(--text); }
.activity-list { display: flex; flex-direction: column; gap: 0.75rem; }
.activity-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem;
}
.activity-title { color: var(--text); text-decoration: none; font-weight: 600; }
.activity-title:hover { color: var(--accent); }
.activity-excerpt { font-size: 0.85rem; color: var(--muted); margin: 0.35rem 0; }
.activity-item time { font-size: 0.75rem; color: var(--muted); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.tag-pill {
    display: inline-block; font-size: 0.75rem; padding: 0.2rem 0.55rem;
    border-radius: 999px; background: rgba(59, 130, 246, 0.12); color: var(--accent);
    text-decoration: none; border: 1px solid rgba(59, 130, 246, 0.25);
}
.tag-pill:hover { background: rgba(59, 130, 246, 0.2); }

.post-attachments { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.post-attachment-image { max-width: 100%; max-height: 320px; border-radius: 8px; border: 1px solid var(--border); }
.attachment-link { font-size: 0.875rem; color: var(--accent); text-decoration: none; }
.attachment-link:hover { text-decoration: underline; }

.message-list { display: flex; flex-direction: column; gap: 0.5rem; }
.message-item {
    display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
    padding: 1rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; text-decoration: none; color: inherit;
}
.message-item.is-unread { border-color: rgba(59, 130, 246, 0.45); }
.message-item p { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.message-item time { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

.message-thread { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.message-bubble {
    max-width: 85%; padding: 0.75rem 1rem; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
}
.message-bubble.is-mine { margin-left: auto; background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.25); }
.message-bubble header { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.8rem; margin-bottom: 0.35rem; color: var(--muted); }
.message-body { line-height: 1.6; }

.compose-form input[type="file"] { color: var(--muted); font-size: 0.875rem; }

.poll-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.25rem; margin-bottom: 1.5rem;
}
.poll-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.poll-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; }
.poll-option-label { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; cursor: pointer; }
.poll-result-row { margin-bottom: 0.65rem; }
.poll-result-row.is-voted .poll-bar-fill { background: var(--accent); }
.poll-result-label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.2rem; }
.poll-bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.poll-bar-fill { height: 100%; background: rgba(59, 130, 246, 0.45); border-radius: 999px; }

.report-details { display: inline-block; margin-left: 0.35rem; }
.report-details summary { list-style: none; cursor: pointer; }
.report-form { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.report-form select, .report-form input[type="text"] {
    padding: 0.35rem 0.5rem; background: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text); font-size: 0.8rem;
}

/* EasyMDE tema uyumu */
.EasyMDEContainer .CodeMirror {
    background: var(--bg) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
.EasyMDEContainer .editor-toolbar {
    background: var(--surface-elevated) !important;
    border-color: var(--border) !important;
}
.EasyMDEContainer .editor-toolbar button { color: var(--muted) !important; }
.EasyMDEContainer .editor-toolbar button:hover,
.EasyMDEContainer .editor-toolbar button.active {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}
.editor-preview, .editor-preview-side {
    background: var(--surface) !important;
    color: var(--text) !important;
}

.post-edited { font-size: 0.75rem; color: var(--muted); font-style: italic; }
.btn-like.btn-danger:hover { color: #ef4444; border-color: rgba(239, 68, 68, 0.45); }
.btn-link { margin-left: 0.75rem; color: var(--muted); font-size: 0.875rem; }
.thread-mod-tools { margin: 0.75rem 0 1.25rem; }
.btn-mod-tools {
    display: inline-block; font-size: 0.8rem; padding: 0.35rem 0.75rem;
    border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
    background: var(--surface); color: var(--muted); list-style: none;
}
.mod-tools-details summary::-webkit-details-marker { display: none; }
.mod-tools-panel {
    margin-top: 0.75rem; padding: 1rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: 10px;
    display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end;
}
.mod-tool-form { display: inline-flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.mod-move-form { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.mod-move-form select {
    padding: 0.35rem 0.5rem; background: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text); font-size: 0.85rem;
}
.edit-history-list { list-style: none; margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.edit-history-snippet {
    margin-top: 0.35rem; padding: 0.5rem; background: var(--bg);
    border-radius: 6px; font-size: 0.8rem; white-space: pre-wrap; color: var(--muted);
}

@media (max-width: 640px) {
    .thread-table thead { display: none; }
    .thread-table tr { display: block; margin-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
    .thread-table td { display: block; border: none; padding: 0.35rem 1rem; }
    .thread-table td:first-child { padding-top: 0.75rem; font-weight: 600; }
    .thread-table td:last-child { padding-bottom: 0.75rem; }
}
