/* =========================================================
   MEDYABİR PRO - SAĞ SÜTUN MODÜLÜ
   Dosya: modules/sag_sutun/style.css
   Amaç:
   - Eski tasarım korunur
   - Sağ sütun sayfayı genişletmez
   - Haber.php sağ sidebar ölçüsüyle uyumlu: 330px
   - Widget alanları taşmaz
   - Mobilde tam genişlikte düzgün görünür
========================================================= */

/* =========================================================
   SAĞ SÜTUN GENEL KİLİT
========================================================= */

.sidebar,
.right-sidebar,
.side-content,
.manset-right-col {
    width: 100% !important;
    max-width: 330px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.sidebar *,
.right-sidebar *,
.side-content *,
.manset-right-col * {
    box-sizing: border-box !important;
}

/* Eğer sağ sütun grid / kolon içinde çağrılıyorsa bulunduğu alanı aşmasın */
.content-wrapper .sidebar,
.content-wrapper .right-sidebar,
.content-wrapper .side-content,
.content-wrapper .manset-right-col,
.haber-detay-wrapper .sidebar,
.haber-detay-wrapper .right-sidebar,
.haber-detay-wrapper .side-content,
.haber-detay-wrapper .manset-right-col,
.detail-wrapper .sidebar,
.detail-wrapper .right-sidebar,
.detail-wrapper .side-content,
.detail-wrapper .manset-right-col {
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================================================
   GENEL WIDGET
========================================================= */

.widget {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.widget-header {
    width: 100%;
    max-width: 100%;
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.widget-header span,
.widget-header h3,
.widget-header h4 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   TAB İÇERİK
========================================================= */

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================================
   ÇOK OKUNANLAR
========================================================= */

.widget.trend-widget {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    background: transparent;
    border: none;
    padding: 0;
    overflow: hidden !important;
}

.trend-widget-title {
    background: none;
    border: none;
    padding-left: 5px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
}

.trend-widget-title span {
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    display: block;
    max-width: 100%;
}

/* =========================================================
   TREND TABLAR
========================================================= */

.trend-tabs {
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    padding: 0 5px;
    overflow: hidden;
}

.trend-tabs .tab-btn {
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a1a1aa;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.trend-tabs .tab-btn.active {
    color: #000000;
}

.trend-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 3px;
    background: var(--primary);
}

/* =========================================================
   TREND LİSTE
========================================================= */

.trend-list {
    width: 100%;
    max-width: 100%;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.trend-list li {
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 20px;
    padding: 15px 5px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.25s ease, padding-left 0.25s ease;
    align-items: flex-start;
    overflow: hidden;
}

.trend-list li:hover {
    background: #fdfdfd;
    padding-left: 8px;
}

.trend-rank-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 24px;
    max-width: 24px;
    flex-shrink: 0;
}

.trend-rank-num {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #111111;
    line-height: 1;
}

.trend-rank-dot {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 6px;
    transition: all 0.3s ease;
    opacity: 0.3;
}

.trend-list li:hover .trend-rank-dot {
    opacity: 1;
    transform: scale(1.5);
}

.trend-content {
    flex: 1 1 auto;
    min-width: 0 !important;
    max-width: 100%;
    overflow: hidden;
}

.trend-cat-info {
    font-size: 9px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 3px;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trend-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.4;
    color: #18181b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.2px;
    max-width: 100%;
}

.trend-list li:hover .trend-title {
    color: var(--primary);
}

/* =========================================================
   VEFAT KÜÇÜK ALAN
========================================================= */

.vefat-widget-icon {
    color: var(--primary);
}

.vefat-mini-grid {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    overflow: hidden;
}

.vefat-mini-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
}

.vefat-mini-card img {
    width: 100%;
    max-width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    background: #f1f5f9;
    display: block;
}

.vefat-mini-card span {
    display: block;
    margin-top: 6px;
    line-height: 1.2;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .sidebar,
    .right-sidebar,
    .side-content,
    .manset-right-col {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .trend-tabs {
        gap: 22px;
    }
}

/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 768px) {
    .sidebar,
    .right-sidebar,
    .side-content,
    .manset-right-col {
        width: 100% !important;
        max-width: 100% !important;
    }

    .widget {
        margin-bottom: 20px;
    }

    .widget-header {
        padding: 11px 14px;
    }

    .trend-tabs {
        gap: 18px;
        margin-bottom: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .trend-tabs::-webkit-scrollbar {
        display: none;
    }

    .trend-list li {
        gap: 14px;
        padding: 13px 5px;
    }

    .trend-list li:hover {
        padding-left: 5px;
    }

    .trend-title {
        font-size: 0.90rem;
        line-height: 1.35;
    }

    .vefat-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding: 13px;
    }

    .vefat-mini-card img {
        height: 74px;
    }

    .vefat-mini-card span {
        font-size: 11px;
    }
}

/* =========================================================
   KÜÇÜK MOBİL
========================================================= */

@media (max-width: 420px) {
    .trend-tabs {
        gap: 15px;
    }

    .trend-tabs .tab-btn {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .trend-list li {
        gap: 12px;
    }

    .trend-title {
        font-size: 0.86rem;
    }

    .vefat-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .vefat-mini-card img {
        height: 66px;
    }

    .vefat-mini-card span {
        font-size: 10px;
    }
}