/* Burak-style homepage modules */

:root {
    --burak-theme-color: #e12e2e;
    --burak-theme-border: #d5d7da;
}

/* ===== Block titles (block title style 3) ===== */
.burak-block-title {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 0;
    border-bottom: 1px solid var(--burak-theme-border);
    background: #fff;
}

.burak-block-title-text {
    display: block;
    margin: 0;
    padding: 0 15px 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    background: transparent;
    position: relative;
    height: 45px;
    line-height: 45px;
    text-transform: uppercase;
}

.burak-block-title--style3 .burak-block-title-text::after {
    content: "";
    position: absolute;
    z-index: 5;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 50px;
    background: var(--burak-theme-color);
}

.burak-block-title--sidebar .burak-block-title-text {
    font-size: 14px;
}

/* ===== Son Yazılar — Burak uck-card-list (335×195) ===== */
.burak-latest-section {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    margin-bottom: 16px;
    overflow: hidden;
}

.burak-post-list-group {
    padding: 0;
}

.burak-card-list {
    display: flex;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid #eef1f4;
    transition: background 0.2s;
}

.burak-card-list:last-child {
    border-bottom: none;
}

.burak-card-list:hover {
    background: #fafbfc;
}

.burak-card-image {
    flex: 0 0 335px;
    max-width: 335px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #e5e7eb;
}

.burak-card-image a {
    display: block;
    line-height: 0;
}

.burak-card-image img {
    width: 335px;
    height: 195px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.burak-card-list:hover .burak-card-image img {
    transform: scale(1.03);
}

.burak-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.burak-card-top {
    margin-bottom: 8px;
}

.burak-card-top-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #6b7280;
}

.burak-meta-date,
.burak-meta-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.burak-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.burak-card-title a {
    color: #111;
    text-decoration: none;
}

.burak-card-title a:hover {
    color: var(--burak-theme-color);
}

.burak-card-excerpt {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.65;
    color: #4b5563;
    flex: 1;
}

.burak-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.burak-card-author {
    font-size: 13px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.burak-read-more {
    flex-shrink: 0;
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--burak-theme-color);
    color: var(--burak-theme-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 1rem;
    transition: background 0.2s, color 0.2s;
}

.burak-card-list:hover .burak-read-more {
    background: var(--burak-theme-color);
    color: #fff !important;
}

/* ===== Sidebar Modül — burak-popular-posts ===== */
.burak-module-widget {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-bottom: 18px;
}

.burak-popular-posts {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.burak-popular-post-item {
    padding: 20px !important;
}

.burak-popular-post-item-style2 {
    width: 100%;
    border-bottom: 1px solid var(--burak-theme-border);
}

.burak-popular-post-item-style2:last-child {
    border-bottom: 0;
}

.burak-popular-post-item-style3 {
    background-size: cover;
    background-position: center center;
    border: 0;
    padding: 3em 20px;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    gap: 0;
}

.burak-popular-post-item-style3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: -1px;
    bottom: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.99);
    opacity: 1;
    transition: 0.4s;
    z-index: 1;
}

.burak-popular-post-item-style3.burak-popular-post-active::before {
    background: rgba(0, 0, 0, 0.4) !important;
}

.burak-popular-post-item-style3.burak-popular-post-active a {
    color: #fff !important;
}

.burak-popular-post-item-style3.burak-popular-post-active .burak-popular-post-meta {
    color: #fff;
    opacity: 0.75;
}

.burak-post-counter-label {
    background-color: #dee2e6;
    border-radius: 12px;
    margin-right: 16px;
    height: 44px;
    width: 44px;
    min-width: 44px;
    line-height: 44px;
    text-align: center;
    display: inline-table;
    margin-top: 0 !important;
    position: relative;
    font-weight: 500;
    font-size: 15px;
    z-index: 2;
    flex-shrink: 0;
}

.burak-popular-post-content {
    padding-top: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 2;
    flex: 1;
    min-width: 0;
    transition: transform 0.35s ease;
}

.burak-popular-post-lead {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    transition: opacity 0.35s ease-out, max-height 0.45s ease-out, margin 0.35s ease;
}

/* ===== Ortak modül başlığı (TRENDLER + Editörün Seçimi) ===== */
.burak-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 28px;
    padding: 0 20px;
}

.burak-section-head .section-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 14px;
}

.burak-section-head--trend .section-eyebrow {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.burak-section-head--editor .section-eyebrow {
    background: rgba(225, 46, 46, 0.12);
    color: var(--burak-theme-color, #e12e2e);
}

.burak-section-head--editor .section-title {
    color: #111827;
}

.burak-section-head .section-title {
    display: block;
    font-size: clamp(24px, 3.2vw, 36px) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin: 0 0 10px !important;
    padding: 0;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.burak-section-head .section-lead {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* TRENDLER — tam genişlik, kart grid (dış beyaz kutu yok) */
.burak-trend-module-section {
    --burak-trend-card-h: 200px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 28px;
}

.burak-trend-module-section .burak-module-widget--horizontal {
    margin-bottom: 0;
}

.burak-trend-module-section .burak-popular-posts--horizontal {
    grid-auto-rows: var(--burak-trend-card-h);
}

.burak-trend-module-section .burak-module-widget--horizontal .burak-popular-post-item-style3 {
    height: var(--burak-trend-card-h);
    min-height: var(--burak-trend-card-h);
    max-height: var(--burak-trend-card-h);
    overflow: hidden;
    box-sizing: border-box;
    padding: 1.15rem 16px;
    align-items: center;
    justify-content: center;
}

.burak-trend-module-section .burak-popular-post-content {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: none;
}

.burak-trend-module-section .burak-popular-post-text-roll {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.burak-trend-module-section .burak-popular-post-text-inner {
    width: 100%;
    text-align: center;
    transition: transform 0.35s ease;
    will-change: transform;
}

.burak-trend-module-section .burak-popular-post-headline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
    transition: -webkit-line-clamp 0s;
}

.burak-trend-module-section .burak-popular-post-lead {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    transition: opacity 0.35s ease 0.05s, max-height 0.4s ease, margin 0.35s ease;
}

.burak-trend-module-section .burak-popular-post-meta {
    flex-shrink: 0;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}

.burak-trend-module-section .burak-popular-post-item-style3.burak-popular-post-active:has(.burak-popular-post-lead) .burak-popular-post-text-inner {
    transform: translateY(-14px);
}

.burak-trend-module-section .burak-popular-post-item-style3.burak-popular-post-active .burak-popular-post-headline {
    -webkit-line-clamp: 2;
}

.burak-trend-module-section .burak-popular-post-item-style3.burak-popular-post-active .burak-popular-post-lead {
    max-height: 3.2em;
    opacity: 0.92;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 991px) {
    .burak-trend-module-section {
        --burak-trend-card-h: 188px;
    }
}

@media (max-width: 575px) {
    .burak-trend-module-section {
        --burak-trend-card-h: 176px;
    }

    .burak-trend-module-section .burak-popular-post-headline {
        font-size: 17px;
    }
}

.burak-popular-post-headline {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.burak-popular-post-headline a {
    color: #111;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.burak-popular-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.burak-popular-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* TRENDLER — hover dışı: yalnızca renk filtresi (kapak görseli hover'da) */
.burak-trend-module-section .burak-popular-post-item-style3:not(.burak-popular-post-active) {
    background-image: none !important;
    color: #fff;
}

.burak-trend-module-section .tk-slide-mask .burak-popular-post-item-style3:not(.burak-popular-post-active)::before {
    background-color: transparent;
    background-image: var(--tk-card-tint);
    opacity: 0.85;
}

.burak-trend-module-section .burak-popular-post-item-style3.burak-popular-post-active .burak-popular-post-headline,
.burak-trend-module-section .burak-popular-post-item-style3.burak-popular-post-active .burak-popular-post-meta {
    color: #fff;
}

.burak-trend-module-section .burak-popular-post-item-style3:not(.burak-popular-post-active) .burak-popular-post-headline {
    color: #fff;
}

.burak-trend-module-section .burak-popular-post-item-style3:not(.burak-popular-post-active) .burak-popular-post-meta {
    color: rgba(255, 255, 255, 0.88);
}

/* ===== Modül — yatay (tam genişlik) ===== */
.burak-module-widget--horizontal {
    margin-bottom: 28px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.burak-popular-posts--horizontal {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.burak-popular-post-item--horizontal {
    min-width: 0;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid var(--burak-theme-border);
    border-bottom: 1px solid var(--burak-theme-border);
}

.burak-popular-post-item--horizontal:nth-child(5n) {
    border-right: 0;
}

.burak-popular-post-item--horizontal:nth-last-child(-n+5) {
    border-bottom: 0;
}

.burak-module-widget--horizontal .burak-popular-post-item-style3 {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 140px;
    padding: 1rem 14px;
    height: 100%;
}

.burak-module-widget--horizontal .burak-post-counter-label {
    margin-right: 0;
    margin-bottom: 10px;
}

.burak-module-widget--horizontal .burak-popular-post-headline {
    display: block;
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 3;
}

.burak-module-widget--horizontal .burak-popular-post-meta {
    font-size: 11px;
}

@media (max-width: 1199px) {
    .burak-popular-posts--horizontal {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .burak-popular-post-item--horizontal:nth-child(5n) {
        border-right: 1px solid var(--burak-theme-border);
    }

    .burak-popular-post-item--horizontal:nth-child(4n) {
        border-right: 0;
    }

    .burak-popular-post-item--horizontal:nth-last-child(-n+5) {
        border-bottom: 1px solid var(--burak-theme-border);
    }

    .burak-popular-post-item--horizontal:nth-last-child(-n+4) {
        border-bottom: 0;
    }
}

@media (max-width: 991px) {
    .burak-popular-posts--horizontal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .burak-popular-post-item--horizontal:nth-child(4n) {
        border-right: 1px solid var(--burak-theme-border);
    }

    .burak-popular-post-item--horizontal:nth-child(3n) {
        border-right: 0;
    }

    .burak-popular-post-item--horizontal:nth-last-child(-n+4) {
        border-bottom: 1px solid var(--burak-theme-border);
    }

    .burak-popular-post-item--horizontal:nth-last-child(-n+3) {
        border-bottom: 0;
    }
}

@media (max-width: 767px) {
    .burak-popular-posts--horizontal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .burak-popular-post-item--horizontal:nth-child(3n) {
        border-right: 1px solid var(--burak-theme-border);
    }

    .burak-popular-post-item--horizontal:nth-child(2n) {
        border-right: 0;
    }

    .burak-popular-post-item--horizontal:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--burak-theme-border);
    }

    .burak-popular-post-item--horizontal:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}

@media (max-width: 575px) {
    .burak-popular-posts--horizontal {
        grid-template-columns: 1fr;
    }

    .burak-popular-post-item--horizontal {
        border-right: 0 !important;
    }

    .burak-popular-post-item--horizontal:not(:last-child) {
        border-bottom: 1px solid var(--burak-theme-border);
    }

    .burak-popular-post-item--horizontal:last-child {
        border-bottom: 0;
    }
}

/* Editörün Seçimi akordeon → assets/css/feature-accordion.css */

/* ===== Sidebar tabs ===== */
.burak-tabs-widget {
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.burak-tabs-head {
    display: flex;
    border-bottom: 2px solid #eef1f4;
}

.burak-tab-btn {
    flex: 1;
    border: none;
    background: #f9fafb;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.burak-tab-btn.is-active {
    background: #fff;
    color: var(--burak-theme-color);
    box-shadow: inset 0 -2px 0 var(--burak-theme-color);
}

.burak-tab-panel {
    padding: 8px 0;
}

.burak-tab-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.burak-tab-list li {
    border-bottom: 1px solid #f3f4f6;
}

.burak-tab-list a {
    display: flex;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.burak-tab-list a:hover {
    background: #fef2f2;
}

.burak-tab-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
}

.burak-tab-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.burak-tab-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.burak-tab-text strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.burak-tab-text small {
    font-size: 12px;
    color: #6b7280;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .burak-card-list {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .burak-card-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .burak-card-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 335 / 195;
    }
}

@media (max-width: 767px) {
    .burak-card-title {
        font-size: 18px;
    }
}
