
/* KOCUCE_FORUM_UNIFIED_V1 */

:root {
    --kfu-navy: #17253e;
    --kfu-blue: #2563eb;
    --kfu-orange: #f97316;
    --kfu-bg: #f5f7fb;
    --kfu-card: #ffffff;
    --kfu-border: #e2e8f0;
    --kfu-text: #17253e;
    --kfu-muted: #64748b;
    --kfu-radius: 15px;
}

/* Ortak sayfa zemini */
body:has(.kc-forum-home-v6),
body:has(.kc-category-v7),
body:has(.kc-topic-layout) {
    background: var(--kfu-bg);
}

/* Forum ana sayfasi */
.kc-forum-home-v6 {
    color: var(--kfu-text);
}

.kc-forum-home-v6 h1,
.kc-forum-home-v6 h2,
.kc-forum-home-v6 h3 {
    color: var(--kfu-navy);
}

.kc-forum-home-v6 .bg-white {
    background: var(--kfu-card);
    border-color: var(--kfu-border);
    border-radius: var(--kfu-radius);
}

/* Kategori sayfalari */
.kc-category-v7 {
    color: var(--kfu-text);
}

.kc-category-v7 h1,
.kc-category-v7 h2,
.kc-category-v7 h3 {
    color: var(--kfu-navy);
}

.kc-category-v7 .bg-white {
    background: var(--kfu-card);
    border-color: var(--kfu-border);
    border-radius: var(--kfu-radius);
}

/* Konu detay */
.kc-topic-layout {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.kc-showcase-v3,
.kc-topic-main > article#konu,
.kc-topic-side-card {
    border-radius: var(--kfu-radius);
    border-color: var(--kfu-border);
}

/* Ortak kart gecisleri */
.kc-forum-home-v6 a.group,
.kc-category-v7 a.group,
.kc-showcase-button {
    transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

/* Linklerin tasmasini engelle */
.kc-forum-home-v6,
.kc-category-v7,
.kc-topic-layout {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Mobil gorunum */
@media (max-width: 900px) {
    .kc-topic-layout {
        grid-template-columns: minmax(0,1fr) !important;
    }
}

@media (max-width: 767px) {
    .kc-forum-home-v6,
    .kc-category-v7 {
        width: 100%;
    }

    .kc-topic-layout {
        gap: 12px;
    }

    .kc-showcase-v3,
    .kc-topic-main > article#konu,
    .kc-topic-side-card {
        border-radius: 12px;
    }
}

/* Karanlik mod */
html.dark {
    --kfu-bg: #0f172a;
    --kfu-card: #1e293b;
    --kfu-border: #334155;
    --kfu-text: #e2e8f0;
    --kfu-navy: #f8fafc;
}

/* KOCUCE_FORUM_UNIFIED_V1_END */


/* KOCUCE_FORUM_POLISH_V1 */

/* Ortak tipografi */
.kc-forum-home-v6,
.kc-category-v7,
.kc-topic-layout {
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

.kc-forum-home-v6 h1,
.kc-category-v7 h1 {
    letter-spacing: -.6px;
    line-height: 1.25;
}

/* Kategori kartlari */
.kc-forum-home-v6 a.group,
.kc-category-v7 a.group {
    transition: background .2s ease, border-color .2s ease;
}

.kc-forum-home-v6 a.group:hover,
.kc-category-v7 a.group:hover {
    background-color: #f8fbff;
}

/* Sponsorlu ve sabit konular */
.kc-category-v7 .kc-pinned-topics {
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #fffaf5;
}

.kc-category-v7 .kc-pinned-topics a.group {
    border-left: 3px solid #f97316;
}

.kc-category-v7 .kc-pinned-topics a.group:hover {
    background: #fff2e5;
}

/* Normal konu listesi */
.kc-category-v7 .kc-normal-topics {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.kc-category-v7 .kc-normal-topics a.group + a.group {
    border-top: 1px solid #eef2f7;
}

/* Konu tanitim karti */
.kc-topic-layout .kc-showcase-v3 {
    overflow: hidden;
}

.kc-topic-layout .kc-showcase-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(15,23,42,.14);
}

/* Sag panel */
.kc-topic-layout .kc-topic-sidebar {
    min-width: 0;
}

.kc-topic-layout .kc-topic-sidebar > * {
    max-width: 100%;
}

.kc-topic-layout .kc-topic-sidebar a {
    overflow-wrap: anywhere;
}

/* Konu govdesi */
.kc-topic-layout #konu [data-fh-body] {
    overflow-wrap: anywhere;
}

.kc-topic-layout #konu [data-fh-body] img,
.kc-topic-layout #konu [data-fh-body] iframe {
    max-width: 100%;
}

/* Mobil */
@media (max-width: 900px) {
    .kc-topic-layout {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .kc-topic-layout .kc-topic-sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .kc-forum-home-v6 h1,
    .kc-category-v7 h1 {
        font-size: 24px;
    }

    .kc-topic-layout .kc-showcase-stats {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    .kc-topic-layout .kc-showcase-actions {
        flex-direction: column !important;
    }

    .kc-topic-layout .kc-showcase-button {
        width: 100%;
    }

    .kc-category-v7 .kc-pinned-topics,
    .kc-category-v7 .kc-normal-topics {
        border-radius: 11px;
    }
}

/* Karanlik mod */
html.dark .kc-category-v7 .kc-pinned-topics {
    background: #30291f;
    border-color: #78512c;
}

html.dark .kc-category-v7 .kc-normal-topics {
    background: #1e293b;
    border-color: #334155;
}

html.dark .kc-category-v7 .kc-normal-topics a.group + a.group {
    border-top-color: #334155;
}

/* KOCUCE_FORUM_POLISH_V1_END */


/* KOCUCE_TOPIC_VISUAL_REFINEMENT_V1 */

/* Sunucu tanitim karti - okunabilirlik */
.kc-topic-layout .kc-showcase-hero {
    color: #fff !important;
}

.kc-topic-layout .kc-showcase-hero .kc-showcase-label {
    color: #fed7aa !important;
    background: rgba(249,115,22,.18) !important;
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 800;
    letter-spacing: .4px;
}

.kc-topic-layout .kc-showcase-hero h2 {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.kc-topic-layout .kc-showcase-hero p {
    color: #e2e8f0 !important;
}

/* Tanitim karti alt basligi */
.kc-topic-layout .kc-showcase-content-title {
    padding: 12px 16px !important;
    min-height: 0 !important;
    color: #17253e !important;
}

/* Sag panel */
.kc-topic-layout .kc-topic-sidebar {
    min-width: 0;
}

.kc-topic-layout .kc-topic-side-card {
    overflow: hidden;
}

.kc-topic-layout .kc-topic-sidebar a {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Konu govdesi - yalnizca ilk konu */
.kc-topic-layout .kc-topic-main > article#konu [data-fh-body] {
    width: 100%;
    max-width: none !important;
    min-width: 0;
    overflow-wrap: anywhere;
}

.kc-topic-layout .kc-topic-main > article#konu [data-fh-body] img {
    max-width: 100% !important;
    height: auto !important;
}

/* Uzun konu basliklari */
.kc-topic-layout h1 {
    overflow-wrap: anywhere;
    line-height: 1.25;
}

@media (max-width: 767px) {
    .kc-topic-layout h1 {
        font-size: clamp(20px,5vw,28px) !important;
    }

    .kc-topic-layout .kc-showcase-hero h2 {
        font-size: 21px !important;
    }

    .kc-topic-layout .kc-showcase-hero {
        padding: 14px !important;
    }

    .kc-topic-layout .kc-showcase-stats {
        gap: 8px !important;
        padding: 10px !important;
    }

    .kc-topic-layout .kc-showcase-stat {
        padding: 10px 6px !important;
    }
}

/* KOCUCE_TOPIC_VISUAL_REFINEMENT_V1_END */


/* KOCUCE_TOPIC_SIDEBAR_FIX_V1 */

/* Sag panel kartlari */
.kc-topic-layout .kc-topic-side-card {
    background: #fff !important;
    border: 1px solid #dfe6f0 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
}

/* Kart basliklari */
.kc-topic-layout .kc-topic-side-heading {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 15px !important;
    background: #eaf2ff !important;
    border-bottom: 1px solid #dfe6f0 !important;
    color: #124a9e !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.kc-topic-layout .kc-topic-side-heading svg {
    width: 19px !important;
    height: 19px !important;
    flex-shrink: 0 !important;
}

/* Sunucu bilgi govdesi */
.kc-topic-layout .kc-server-info-body {
    padding: 14px !important;
}

/* Sunucu logosu ve adi */
.kc-topic-layout .kc-server-info-profile {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 15px !important;
}

.kc-topic-layout .kc-server-info-profile img {
    width: 100% !important;
    max-height: 250px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
}

.kc-topic-layout .kc-server-info-profile strong {
    display: block !important;
    color: #17253e !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.kc-topic-layout .kc-server-info-profile span {
    display: block !important;
    color: #64748b !important;
    font-size: 12px !important;
    margin-top: 3px !important;
}

/* Sunucu bilgileri */
.kc-topic-layout .kc-server-info-stats {
    margin-bottom: 14px !important;
}

.kc-topic-layout .kc-server-info-stats > div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #edf1f7 !important;
}

.kc-topic-layout .kc-server-info-stats span {
    color: #64748b !important;
    font-size: 12px !important;
}

.kc-topic-layout .kc-server-info-stats strong {
    color: #17253e !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-align: right !important;
}

/* Sunucu linkleri - gercek buton */
.kc-topic-layout .kc-server-info-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: 100% !important;
    min-height: 43px !important;
    padding: 11px 12px !important;
    margin-top: 9px !important;
    border-radius: 10px !important;
    background: #2563eb !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.kc-topic-layout .kc-server-info-link:hover {
    background: #1d4ed8 !important;
}

.kc-topic-layout .kc-server-info-link svg {
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0 !important;
    color: #fff !important;
}

/* Indirme butonu */
.kc-topic-layout .kc-server-download-link {
    background: #f97316 !important;
}

.kc-topic-layout .kc-server-download-link:hover {
    background: #ea580c !important;
}

/* Konu bilgileri */
.kc-topic-layout .kc-topic-side-content {
    padding: 12px 14px !important;
}

.kc-topic-layout .kc-topic-info-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 11px 0 !important;
    border-bottom: 1px solid #edf1f7 !important;
}

.kc-topic-layout .kc-topic-info-row > span {
    color: #64748b !important;
    font-size: 12px !important;
}

.kc-topic-layout .kc-topic-info-row > a,
.kc-topic-layout .kc-topic-info-row > strong {
    color: #17253e !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-align: right !important;
}

/* Karanlik mod */
html.dark .kc-topic-layout .kc-topic-side-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.dark .kc-topic-layout .kc-topic-side-heading {
    background: #273449 !important;
    border-color: #334155 !important;
    color: #93c5fd !important;
}

html.dark .kc-topic-layout .kc-server-info-profile strong,
html.dark .kc-topic-layout .kc-server-info-stats strong,
html.dark .kc-topic-layout .kc-topic-info-row > strong,
html.dark .kc-topic-layout .kc-topic-info-row > a {
    color: #f8fafc !important;
}

/* KOCUCE_TOPIC_SIDEBAR_FIX_V1_END */
