/* ============================================
   FORUM.CSS — Kamil Projesi Forum Modülü
   Tam responsive: mobil öncelikli, masaüstü genişletmeli
   ============================================ */

/* Ana sarmalayıcı — main tag içinde padding sıfırla, tam genişlik */
.forum-page main,
.forum-main {
    padding: 1.25rem 1rem !important;
}

/* ---- GENEL YARDIMCI ---- */
.forum-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* ---- HERO / BANNER ---- */
.forum-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 50%, #0c4a6e 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.forum-hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.forum-hero::after {
    content: '';
    position: absolute;
    bottom: -10%; left: -5%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.forum-hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}
.forum-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.forum-hero p {
    margin: 0 0 1.5rem 0;
    opacity: 0.85;
    font-size: 1.05rem;
    line-height: 1.6;
}
.forum-hero-action-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    width: 100%;
}
.forum-hero-action-row .search-wrap {
    flex: 1;
    max-width: 500px;
    min-width: 280px;
}
.search-input-box {
    position: relative;
    display: flex;
    width: 100%;
}
.search-input-box input {
    width: 100%;
    height: 48px;
    border-radius: 50px;
    padding: 0 50px 0 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    outline: none;
}
.search-input-box input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
.search-input-box input:focus {
    background: white;
    color: #0f172a;
    border-color: #6366f1;
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.3);
}
.search-input-box .search-icon {
    position: absolute;
    right: 20px;
    top: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.3s;
}
.search-input-box input:focus + .search-icon {
    color: #6366f1;
}
.forum-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    height: 48px;
    padding: 0 26px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.forum-new-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

/* ---- LAYOUT: 2 KOLON (desktop) / 1 KOLON (mobil) ---- */
.forum-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
    align-items: start;
}
.forum-layout-full {
    display: block;
    width: 100%;
}

/* ---- KATEGORİ KARTLARI ---- */
.forum-cat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.6rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.forum-cat-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 10px 0 0 10px;
    background: var(--cat-color, #4F46E5);
}
.forum-cat-card:hover {
    border-color: var(--cat-color, #4F46E5);
    transform: translateX(3px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.forum-cat-card-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1;
    min-width: 0;
}
.forum-cat-icon {
    width: 46px; height: 46px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    color: white;
    flex-shrink: 0;
}
.forum-cat-info {
    flex: 1;
    min-width: 0;
}
.forum-cat-info h3 {
    margin: 0 0 3px 0;
    font-size: 0.93rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.forum-cat-info p {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.forum-cat-meta {
    text-align: right;
    flex-shrink: 0;
    padding-left: 15px;
    border-left: 1px solid #f1f5f9;
    margin-left: 10px;
}
.forum-cat-meta strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}
.forum-cat-meta span {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* ---- SIDEBAR KARTLAR ---- */
.forum-sidebar-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.sidebar-card-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.88rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 7px;
}
.sidebar-card-header i { color: #4F46E5; }
.sidebar-card-body { padding: 1rem 1.1rem; }

.son-konu-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 0.65rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.son-konu-item:last-child { border-bottom: none; }
.son-konu-item:hover { background: #f8fafc; }
.son-konu-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: white;
    flex-shrink: 0;
}
.son-konu-text { flex: 1; min-width: 0; }
.son-konu-text strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.son-konu-text span { font-size: 0.7rem; color: #94a3b8; }

/* ---- KATEGORİ HERO ---- */
.cat-hero {
    border-radius: 11px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.cat-hero-icon {
    width: 50px; height: 50px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: white;
    flex-shrink: 0;
}
.cat-hero-text h1 {
    margin: 0 0 3px 0;
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 800;
    color: #1e293b;
}
.cat-hero-text p { margin: 0; color: #64748b; font-size: 0.85rem; }

/* ---- TOPIC TOOLBAR ---- */
.topic-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}
.topic-search { display: flex; gap: 0; flex: 1; min-width: 180px; }
.topic-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.88rem;
    outline: none;
    min-width: 0;
}
.topic-search input:focus { border-color: #4F46E5; }
.topic-search button {
    padding: 8px 13px;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    flex-shrink: 0;
}

/* ---- KONU KARTLARI ---- */
.topic-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.topic-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transform: translateY(-1px);
}
.topic-card.pinned { border-left: 3px solid #f59e0b; background: #fffbeb; }
.topic-card.locked { opacity: 0.85; }
.topic-icon {
    width: 38px; height: 38px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #64748b;
}
.topic-icon.pinned-icon { background: #fef3c7; color: #f59e0b; }
.topic-icon.locked-icon { background: #fee2e2; color: #ef4444; }
.topic-info { flex: 1; min-width: 0; }
.topic-info h3 {
    margin: 0 0 3px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topic-info small { color: #94a3b8; font-size: 0.75rem; }
.topic-meta { text-align: right; flex-shrink: 0; }
.topic-meta strong { display: block; font-size: 0.95rem; font-weight: 700; color: #1e293b; }
.topic-meta small { color: #94a3b8; font-size: 0.72rem; }

/* ---- KONU DETAY ---- */
.konu-header {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}
.konu-meta-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}
.konu-header h1 {
    margin: 0 0 0.45rem 0;
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
}
.konu-stats {
    display: flex;
    gap: 0.9rem;
    font-size: 0.78rem;
    color: #94a3b8;
    flex-wrap: wrap;
}
.konu-stats span { display: flex; align-items: center; gap: 4px; }

/* ---- POST KART ---- */
.post-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    display: flex;
    margin-bottom: 0.85rem;
    overflow: hidden;
}
.post-avatar-col {
    width: 110px;
    flex-shrink: 0;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 1.1rem 0.65rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.post-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800;
    color: white;
    margin-bottom: 7px;
}
.post-username {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    word-break: break-word;
    text-align: center;
}
.role-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.62rem;
    font-weight: 600;
    margin-top: 4px;
}
.role-admin { background: #fee2e2; color: #991b1b; }
.role-editor { background: #dbeafe; color: #1d4ed8; }
.role-uye { background: #f1f5f9; color: #475569; }
.post-uye-bilgi {
    font-size: 0.67rem;
    color: #94a3b8;
    margin-top: 7px;
    text-align: center;
}
.post-content-col { flex: 1; padding: 1.1rem; min-width: 0; }
.post-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
    gap: 4px;
}
.post-tarih { font-size: 0.75rem; color: #94a3b8; }
.post-body {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
}
.post-body p { margin: 0 0 0.7rem 0; }
.post-body p:last-child { margin-bottom: 0; }

/* ---- CEVAP FORMU ---- */
.reply-form {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    padding: 1.25rem;
    margin-top: 1.25rem;
}
.reply-form h3 {
    margin: 0 0 0.9rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
}
.reply-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border 0.2s;
    color: #1e293b;
    outline: none;
}
.reply-form textarea:focus { border-color: #4F46E5; }
.btn-gonder {
    margin-top: 9px;
    padding: 9px 22px;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-gonder:hover { background: #4338CA; }

/* ---- YENİ KONU FORMU ---- */
.form-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 780px;
    margin: 0 auto;
}
.form-card-header {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    padding: 1.5rem 1.75rem;
    color: white;
}
.form-card-header h1 {
    margin: 0;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 800;
}
.form-card-header p { margin: 0.35rem 0 0 0; opacity: 0.8; font-size: 0.87rem; }
.form-body { padding: 1.5rem 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #334155;
    font-size: 0.87rem;
}
.form-group label span { color: #ef4444; }
.form-control-forum {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    color: #1e293b;
    background: white;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-control-forum:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.kat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}
.kat-radio-card { position: relative; cursor: pointer; }
.kat-radio-card input[type="radio"] { position: absolute; opacity: 0; }
.kat-radio-label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 9px;
    transition: all 0.2s;
    background: #f8fafc;
    cursor: pointer;
}
.kat-radio-card input[type="radio"]:checked + .kat-radio-label {
    border-color: var(--kc, #4F46E5);
    background: color-mix(in srgb, var(--kc, #4F46E5) 8%, white);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--kc, #4F46E5) 12%, transparent);
}
.kat-radio-icon {
    width: 30px; height: 30px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; color: white; flex-shrink: 0;
}
.kat-radio-text { font-size: 0.82rem; font-weight: 600; color: #334155; }
.editor-toolbar {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 5px 9px;
}
.editor-btn {
    padding: 3px 9px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    transition: all 0.15s;
}
.editor-btn:hover { background: #4F46E5; color: white; border-color: #4F46E5; }
.form-textarea {
    width: 100%;
    min-height: 180px;
    padding: 11px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    font-size: 0.88rem;
    font-family: inherit;
    color: #1e293b;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.form-textarea:focus { border-color: #4F46E5; }
.char-count { font-size: 0.72rem; color: #94a3b8; text-align: right; margin-top: 3px; }
.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79,70,229,0.35); }
.forum-kurallar {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    padding: 0.9rem 1.1rem;
    margin-top: 1.25rem;
}
.forum-kurallar h4 { margin: 0 0 7px 0; font-size: 0.82rem; font-weight: 700; color: #166534; }
.forum-kurallar ul { margin: 0; padding-left: 1.1rem; font-size: 0.78rem; color: #166534; line-height: 1.9; }

/* ---- BADGES ---- */
.badge-kat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.badge-pin { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.badge-lock { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }

/* ---- SAYFALAMA ---- */
.forum-pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.forum-pagination a,
.forum-pagination span {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    transition: all 0.2s;
}
.forum-pagination a:hover { background: #4F46E5; color: white; border-color: #4F46E5; }
.forum-pagination .active { background: #4F46E5; color: white; border-color: #4F46E5; }

/* ---- ALERT ---- */
.forum-alert { padding: 0.85rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.88rem; }
.forum-alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---- NAV GERİ ---- */
.forum-back {
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.forum-back a { color: #4F46E5; text-decoration: none; font-weight: 500; }
.forum-back i { font-size: 0.65rem; color: #94a3b8; }

/* ---- SECTION TITLE ---- */
.forum-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 0.9rem 0;
    display: flex;
    align-items: center;
    gap: 7px;
}
.forum-section-title i { color: #4F46E5; }

/* ============================================
   RESPONSIVE — TABLET (max 900px)
   ============================================ */
@media (max-width: 900px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }
}

/* ---- SIDEBAR STATS ---- */
.forum-sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.forum-sidebar-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}
.forum-sidebar-stat-item:hover {
    transform: translateX(3px);
    border-color: #cbd5e1;
    background: #f1f5f9;
}
.forum-sidebar-stat-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}
.forum-sidebar-stat-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.forum-sidebar-stat-item span {
    font-size: 0.72rem;
    color: #64748b;
}

/* ============================================
   RESPONSIVE — MOBİL (max 600px)
   ============================================ */
@media (max-width: 600px) {

    .forum-wrap { padding: 0; }

    /* Hero */
    .forum-hero { padding: 1.35rem 1rem; border-radius: 10px; }
    .forum-hero-stats { gap: 1rem; }
    .forum-hero-bottom { gap: 1rem; }
    .forum-new-btn { padding: 8px 16px; font-size: 0.82rem; }

    /* Kategori kartı */
    .forum-cat-card { padding: 0.8rem 1rem; gap: 0.7rem; }
    .forum-cat-icon { width: 38px; height: 38px; font-size: 1rem; }
    .forum-cat-meta { display: none; }

    /* Cat hero */
    .cat-hero { padding: 1rem 1.1rem; border-radius: 9px; }
    .cat-hero-icon { width: 42px; height: 42px; font-size: 1.1rem; }

    /* Toolbar */
    .topic-toolbar { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .topic-search { width: 100%; }
    .topic-search input { min-width: 0; flex: 1; }

    /* Konu kartı */
    .topic-card { padding: 0.75rem 0.9rem; gap: 0.7rem; }
    .topic-icon { width: 32px; height: 32px; font-size: 0.82rem; border-radius: 7px; }
    .topic-info h3 { font-size: 0.84rem; }
    .topic-meta strong { font-size: 0.85rem; }
    .topic-meta small { font-size: 0.66rem; }

    /* Post kart - mobil'de avatar üste */
    .post-card { flex-direction: column; }
    .post-avatar-col {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
        gap: 10px;
    }
    .post-avatar { width: 36px; height: 36px; font-size: 0.9rem; margin-bottom: 0; }
    .post-uye-bilgi { text-align: left; margin-top: 0; }
    .post-content-col { padding: 0.9rem; }

    /* Konu header */
    .konu-header { padding: 1rem; }
    .konu-stats { gap: 0.65rem; }

    /* Reply form */
    .reply-form { padding: 1rem; }
    .reply-form textarea { min-height: 100px; }

    /* Yeni konu form */
    .form-card { border-radius: 10px; }
    .form-card-header { padding: 1.25rem 1rem; }
    .form-body { padding: 1.1rem 1rem; }
    .kat-grid { grid-template-columns: 1fr 1fr; }

    /* Sayfalama */
    .forum-pagination a,
    .forum-pagination span { padding: 5px 10px; font-size: 0.78rem; }
}

/* ============================================
   RESPONSIVE — KÜÇÜK MOBİL (max 380px)
   ============================================ */
@media (max-width: 380px) {
    .forum-hero-stats { gap: 0.75rem; }
    .forum-hero-stat strong { font-size: 1.1rem; }
    .kat-grid { grid-template-columns: 1fr; }
    .forum-cat-meta { display: none; } /* çok dar ekranda istatistikleri gizle */
}

/* ---- FORUM ACTIONS ---- */
.forum-edit-btn {
    font-size: 0.75rem;
    color: #d97706;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 5px;
    transition: all 0.15s;
    text-decoration: none;
}
.forum-edit-btn:hover { color: #b45309; background: #fef3c7; }

.forum-delete-btn {
    font-size: 0.75rem;
    color: #dc2626;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 5px;
    transition: all 0.15s;
    text-decoration: none;
}
.forum-delete-btn:hover { color: #b91c1c; background: #fee2e2; }

/* ============================================
   FORUM ENHANCEMENTS CSS DEFINITIONS
   ============================================ */

/* 1. Reactions System */
.reaction-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}
.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #475569;
    user-select: none;
}
.reaction-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: scale(1.05);
}
.reaction-btn.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

/* Angry butonu: aktifken kırmızı ton */
.reaction-btn-angry:hover {
    background: #fff1f2;
    border-color: #fca5a5;
    color: #dc2626;
}
.reaction-btn-angry.active {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.18);
}

/* Dislike butonu: aktifken gri/koyu ton */
.reaction-btn-dislike:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
}
.reaction-btn-dislike.active {
    background: #f1f5f9;
    border-color: #64748b;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.15);
}


/* 2. Solved / Best Answer */
.post-card.solved {
    border: 2px solid #22c55e;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
    position: relative;
}
.post-card.solved::after {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #22c55e;
    font-size: 1.5rem;
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
}
.solved-badge {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.solved-btn {
    font-size: 0.75rem;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s;
    text-decoration: none;
    font-weight: 600;
}
.solved-btn:hover {
    background: #dcfce7;
    color: #15803d;
}
.solved-tick {
    color: #22c55e;
    margin-right: 5px;
}

/* 3. Dynamic User Levels */
.level-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.level-1 { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; } /* Bronz / Yeni Üye */
.level-2 { background: #e2e8f0; color: #334155; border: 1px solid #cbd5e1; } /* Gümüş / Aktif Üye */
.level-3 { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; } /* Altın / Katkı Sağlayıcı */
.level-4 { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; } /* Platin / Forum Uzmanı */
.level-5 { background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; box-shadow: 0 0 10px rgba(124, 58, 237, 0.1); } /* Bilge Üye */

/* 4. Markdown Tabbed Editor & Live Preview */
.editor-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.editor-header-tabs {
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 6px 10px;
    align-items: center;
}
.editor-tabs {
    display: flex;
    gap: 4px;
}
.editor-tab-btn {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}
.editor-tab-btn.active {
    background: white;
    border-color: #e2e8f0;
    color: #4F46E5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.preview-pane {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    padding: 12px 15px;
    min-height: 180px;
    overflow-y: auto;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #1e293b;
    box-sizing: border-box;
    text-align: left;
}
.preview-pane h1 { font-size: 1.4rem; margin-top: 0; }
.preview-pane h2 { font-size: 1.2rem; }
.preview-pane code { background: #f1f5f9; padding: 2px 4px; border-radius: 4px; font-family: monospace; font-size: 0.85em; color: #eb5757; }
.preview-pane pre { background: #f8fafc; padding: 10px; border-radius: 6px; overflow-x: auto; border: 1px solid #e2e8f0; }
.preview-pane pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
.preview-pane blockquote { border-left: 4px solid #cbd5e1; padding-left: 10px; margin-left: 0; color: #64748b; font-style: italic; }

/* 5. User Signatures */
.post-signature {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.5;
    text-align: left;
}

/* 6. Global Autocomplete Live Search */
.search-wrap {
    position: relative;
    width: 100%;
}
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 350px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
}
.search-dropdown.open {
    display: block;
}
.search-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.15s;
    text-align: left;
}
.search-item:last-child {
    border-bottom: none;
}
.search-item:hover {
    background: #f8fafc;
}
.search-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-item-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-group-header {
    background: #f8fafc;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

/* 7. Topic Follow / Watch Button */
.btn-takip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: #4F46E5;
    border: 1px solid #4F46E5;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-takip:hover {
    background: #4F46E5;
    color: white;
}
.btn-takip.active {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}
.btn-takip.active:hover {
    background: #3730a3;
    border-color: #3730a3;
}

/* ---- R10 / vBulletin Stili Forum Footer İstatistikleri ---- */
.forum-r10-stats {
    margin-top: 2rem;
    border: 1px solid #a5cae4;
    border-radius: 4px;
    font-family: Tahoma, Calibri, Verdana, Geneva, sans-serif;
    background: #f1f6fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.r10-block {
    margin-bottom: 0px;
}
.r10-block:last-child {
    border-top: 1px solid #a5cae4;
}
.r10-header {
    background: #0e3a60;
    color: white;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #002d50;
}
.r10-header a {
    color: white;
    text-decoration: none;
}
.r10-subheader {
    background: #1a517c;
    color: white;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: bold;
    border-bottom: 1px solid #103c5d;
}
.r10-subheader span.highlight {
    color: #ffd700; /* Altın sarısı vurgu */
}
.r10-body {
    background: #f8fbfd;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.r10-body-icon {
    flex-shrink: 0;
    width: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.r10-body-icon img,
.r10-body-icon i {
    font-size: 1.8rem;
    color: #5c84a8;
}
.r10-body-content {
    font-size: 0.78rem;
    color: #2b2b2b;
    line-height: 1.5;
}
.r10-body-content strong {
    color: #111;
}
.r10-body-content a.r10-link {
    color: #0000cc;
    font-weight: bold;
    text-decoration: underline;
}
.r10-body-content a.r10-link:hover {
    color: #ff0000;
}

/* ---- YAN YANA ALT KATEGORİ BADGELERİ ---- */
.forum-subcats-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.forum-subcat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.forum-subcat-badge i {
    font-size: 0.75rem;
}

.forum-subcat-badge .subcat-count {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: normal;
}

.forum-subcat-badge:hover {
    background: white;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* ============================================
   FORUM LOGIN CTA STYLE DEFINITIONS
   ============================================ */
.forum-login-cta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.25rem 2rem;
    text-align: center;
    max-width: 520px;
    margin: 2rem auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.forum-login-cta-icon {
    width: 56px;
    height: 56px;
    background: rgba(79, 70, 229, 0.08);
    color: #4F46E5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1.15rem auto;
}

.forum-login-cta h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.6rem 0;
}

.forum-login-cta p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.6rem 0;
}

.forum-login-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.forum-login-btn-primary {
    background: #4F46E5;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.forum-login-btn-primary:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.forum-login-btn-secondary {
    background: white;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.forum-login-btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .forum-login-cta {
        padding: 1.75rem 1.25rem;
        margin: 1.5rem auto;
        border-radius: 10px;
    }
    
    .forum-login-cta-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .forum-login-btn-primary,
    .forum-login-btn-secondary {
        width: 100%;
        box-sizing: border-box;
    }
}






