/* Popüler Etiketler Açılır/Kapanır ve Modal Stilleri (Masaüstü & Mobil Uyumlu) */
.mk-collapse-trigger {
    cursor: pointer;
    user-select: none;
    display: flex;
    flex-direction: column;
}
.mk-collapse-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #64748b);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.mk-collapsible-card.is-collapsed .mk-collapse-arrow {
    transform: rotate(-90deg);
}
.mk-collapsible-card.is-collapsed .forum-tag-cloud-list {
    display: none !important;
}
.mk-tag-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.mk-btn-all-tags {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.mk-btn-all-tags:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.45);
}
.mk-tag-sublink {
    display: inline-flex;
    align-items: center;
    white-space: nowrap !important;
    word-break: keep-all !important;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(100, 116, 139, 0.08);
    border: 1px solid rgba(100, 116, 139, 0.15);
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.mk-tag-sublink:hover {
    background: rgba(100, 116, 139, 0.15);
    color: #0f172a;
}
.mk-tags-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.mk-tags-modal-box {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
    overflow: hidden;
    animation: mkModalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes mkModalFadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.mk-tags-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
}
.mk-tags-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mk-tags-modal-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mk-tags-modal-icon svg {
    width: 18px;
    height: 18px;
}
.mk-tags-modal-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
    color: #0f172a;
}
.mk-tags-modal-title p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #64748b;
}
.mk-tags-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}
.mk-tags-modal-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.mk-tags-modal-search {
    position: relative;
    padding: 14px 20px 10px 20px;
    display: flex;
    align-items: center;
    background: #ffffff;
}
.mk-tags-modal-search .mk-search-icon {
    position: absolute;
    left: 34px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.mk-tags-modal-search .mk-search-icon svg {
    width: 16px;
    height: 16px;
}
html body .mk-tags-modal-search input[type="text"],
html body .mk-tags-modal-search input,
html body #mkTagsSearchInput,
.mk-tags-modal-search input {
    width: 100% !important;
    height: 42px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 44px !important;
    padding-right: 14px !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 13.5px !important;
    outline: none !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
    transition: all 0.2s !important;
}
html body .mk-tags-modal-search input[type="text"]:focus,
html body .mk-tags-modal-search input:focus,
html body #mkTagsSearchInput:focus,
.mk-tags-modal-search input:focus {
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}
.mk-tags-modal-list {
    padding: 12px 20px 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 50vh;
    min-height: 120px;
    align-content: flex-start;
    background: #ffffff;
}
.mk-modal-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.18s ease;
}
.mk-modal-tag-chip:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
}
.mk-modal-tag-chip strong {
    font-size: 11px;
    opacity: 0.75;
    font-weight: 700;
}
.mk-tags-no-match {
    width: 100%;
    text-align: center;
    padding: 30px 10px;
    color: #94a3b8;
    font-size: 13px;
}
.mk-tags-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    background: #f8fafc;
}
.mk-tags-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mk-tags-page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}
.mk-tags-page-info {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

/* Forum Hero İstatistikleri Mobilde 3'lü Yan Yana Gösterim */
@media (max-width: 680px) {
    .classic-forum-wrapper .forum-stats-bar,
    body.mk-page-forum .forum-stats-bar {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin: 0.75rem 0 !important;
        padding: 0 !important;
    }
    .classic-forum-wrapper .forum-stats-bar .stat-item,
    body.mk-page-forum .forum-stats-bar .stat-item {
        min-height: 0 !important;
        padding: 6px 3px !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
        gap: 2px !important;
        border-radius: 10px !important;
    }
    .classic-forum-wrapper .forum-stats-bar .stat-ico,
    body.mk-page-forum .forum-stats-bar .stat-ico {
        font-size: 13px !important;
        margin: 0 auto 1px !important;
    }
    .classic-forum-wrapper .forum-stats-bar .stat-ico svg,
    body.mk-page-forum .forum-stats-bar .stat-ico svg {
        width: 14px !important;
        height: 14px !important;
    }
    .classic-forum-wrapper .forum-stats-bar .stat-num,
    body.mk-page-forum .forum-stats-bar .stat-num {
        font-size: 0.98rem !important;
        line-height: 1.1 !important;
    }
    .classic-forum-wrapper .forum-stats-bar .stat-lbl,
    body.mk-page-forum .forum-stats-bar .stat-lbl {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
    }
    html body .classic-forum-wrapper .forum-tag-cloud-head,
    html body .forum-tag-cloud-head,
    .classic-forum-wrapper .forum-tag-cloud-head,
    .forum-tag-cloud-head {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .mk-collapse-trigger {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        min-width: 0 !important;
    }
    .mk-tag-head-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    .mk-btn-all-tags {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 5px 12px !important;
        border-radius: 20px !important;
        border: 1px solid rgba(37, 99, 235, 0.25) !important;
        background: rgba(37, 99, 235, 0.08) !important;
        color: #2563eb !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }
    .mk-btn-all-tags span { display: none !important; }
    .mk-btn-all-tags::after { content: 'Tümü' !important; }
    .mk-tags-modal-box { max-height: 90vh; border-radius: 14px; }
    .mk-tags-modal-head { padding: 14px 16px; }
    .mk-tags-modal-search { padding: 10px 16px; }
    .mk-tags-modal-search .mk-search-icon { left: 28px !important; }
    .mk-tags-modal-list { padding: 10px 16px 14px; }
    .mk-tags-modal-footer { padding: 10px 16px; }
}
