/* Teknolog-style homepage category blocks + popular posts */

.home-full-block {
    width: 100%;
    max-width: 100%;
}

.tk-category-blocks {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.tk-cat-section {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.tk-cat-head .burak-block-title-text a {
    color: inherit;
    text-decoration: none;
}

.tk-cat-head .burak-block-title-text a:hover {
    color: var(--burak-theme-color);
}

/* Başlık çizgisi ile kart içeriği arası (Teknolog mag-box-title: 20px) */
.tk-cat-section > .tk-cat-head {
    margin-bottom: 20px;
}

.tk-cat-head .burak-block-title-text,
.tk-cat-head h3.burak-block-title-text {
    font-size: 18px;
}

.tk-popular-section > .burak-block-title {
    margin-bottom: 20px;
}

.tk-popular-section .burak-block-title-text,
.tk-popular-section h3.burak-block-title-text {
    font-size: 18px;
}

.tk-post-date {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.tk-post-date--light {
    color: rgba(255, 255, 255, 0.85);
}

.tk-post-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.tk-post-title a {
    color: #111;
    text-decoration: none;
}

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

.tk-post-title--lg {
    font-size: 18px;
    line-height: 1.35;
}

.tk-post-excerpt {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
}

.tk-cat-section--burakkart-grid-slider .tk-burakkart-slider,
.tk-cat-section--burakkart-grid-slider-11 .tk-burakkart-slider,
.tk-cat-section--burakkart-grid-slider-12 .tk-burakkart-slider {
    padding-bottom: 16px;
}

/* Teknolog tie-slider-13 grid (YAPAY ZEKA) */
.tk-burakkart-slider--13 {
    width: 100%;
}

.tk-grid-slide {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-gap: 4px;
    height: 470px;
}

.tk-grid-slide--single {
    grid-template-columns: 1fr;
    height: 420px;
}

.tk-grid-slide--single .tk-grid-item.is-featured {
    grid-area: 1 / 1 / 2 / 2 !important;
}

.tk-grid-item {
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    min-height: 0;
}

.tk-grid-item-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Teknolog slide-mask — kart başına şeffaf renk filtresi */
.tk-slide-mask .tk-thumb-overlay {
    background: transparent;
}

.tk-slide-mask .tk-thumb-overlay::after,
.tk-slide-mask.tk-overlay-grid .tk-overlay-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    backface-visibility: hidden;
    pointer-events: none;
    background-image: var(--tk-card-tint);
}

.tk-slide-mask .tk-grid-item:hover .tk-thumb-overlay::after,
.tk-slide-mask.tk-overlay-grid .tk-overlay-card:hover .tk-overlay-card-link::after {
    opacity: 0.9;
}

.tk-slide-mask .tk-thumb-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    transition: bottom 0.3s ease;
    backface-visibility: hidden;
}

.tk-thumb-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
}

.tk-burakkart-slider--13:not(.tk-slide-mask) .tk-grid-item:not(.is-featured) .tk-thumb-overlay {
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.08) 100%
    );
}

.tk-thumb-content {
    padding: 20px 20px 15px;
    pointer-events: none;
}

.tk-thumb-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.tk-trend-icon {
    color: #fbbf24;
    font-size: 14px;
    line-height: 1;
}

.tk-thumb-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
}

.tk-thumb-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.tk-grid-item.is-featured .tk-thumb-title {
    font-size: 18px;
    line-height: 1.35;
}

.tk-thumb-title a {
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
}

.tk-thumb-title a:hover {
    color: #fff;
    opacity: 0.92;
}

.tk-thumb-desc {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.4s ease-out, max-height 0.45s ease-out, margin 0.4s ease;
}

.tk-slide-mask .tk-grid-item.is-featured .tk-thumb-desc {
    opacity: 1;
    max-height: 100px;
    margin-top: 5px;
}

@media (min-width: 992px) {
    .tk-slide-mask .tk-grid-item:hover .tk-thumb-desc {
        opacity: 1;
        max-height: 100px;
        margin-top: 5px;
    }
}

.tk-burakkart-slider--11:not(.tk-slide-mask) .tk-thumb-desc {
    margin-top: 6px;
    max-height: 4.5em;
    opacity: 1;
}

.tk-grid-item:not(.is-featured) .tk-thumb-desc {
    display: block;
}

.tk-burakkart-slider--13 .tk-grid-item:not(.is-featured) .tk-thumb-meta {
    display: none;
}

/* Teknolog tie-slider-11 (DİJİTAL YAŞAM) — 2x2 eşit kart grid */
.tk-burakkart-slider--11 .tk-grid-slide--dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 500px;
}

.tk-burakkart-slider--11:not(.tk-slide-mask) .tk-grid-item .tk-thumb-overlay {
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.12) 100%
    );
}

.tk-burakkart-slider--11 .tk-thumb-desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.tk-burakkart-slider--11 .tk-thumb-meta {
    margin-bottom: 4px;
}

/* Teknolog tie-slider-12 (POPÜLER YAZILAR / DOSYA) — üst 2 + alt 3 grid */
.tk-burakkart-slider--12 {
    width: 100%;
}

.tk-burakkart-slider--12 .tk-grid-slide--popular {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-gap: 4px;
    height: 500px;
}

.tk-burakkart-slider--12 .tk-grid-slide--single {
    grid-template-columns: 1fr;
    height: 420px;
}

.tk-burakkart-slider--12 .tk-grid-slide--single .tk-grid-item {
    grid-area: 1 / 1 / 2 / 2 !important;
}

.tk-burakkart-slider--12 .tk-grid-item.is-top-row .tk-thumb-title {
    font-size: 20px;
}

.tk-burakkart-slider--12 .tk-slide-mask .tk-grid-item.is-top-row .tk-thumb-desc {
    opacity: 1;
    max-height: 100px;
    margin-top: 5px;
}

.tk-burakkart-slider--12 .tk-grid-item:not(.is-top-row) .tk-thumb-meta {
    display: none;
}

@media (max-width: 991px) {
    .tk-burakkart-slider--12 .tk-grid-slide--popular {
        height: 460px;
    }
}

@media (max-width: 767px) {
    .tk-burakkart-slider--12 .tk-grid-slide--popular {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(0, 1fr));
        height: 700px;
    }

    .tk-burakkart-slider--12 .tk-grid-slide--single {
        grid-template-rows: 1fr;
        height: 320px;
    }

    .tk-burakkart-slider--12 .tk-grid-item.is-featured {
        grid-area: 1 / 1 / 3 / 3 !important;
    }

    .tk-burakkart-slider--12 .tk-grid-item:nth-of-type(2) {
        grid-area: 3 / 1 / 4 / 2 !important;
    }

    .tk-burakkart-slider--12 .tk-grid-item:nth-of-type(3) {
        grid-area: 3 / 2 / 4 / 3 !important;
    }

    .tk-burakkart-slider--12 .tk-grid-item:nth-of-type(4) {
        grid-area: 4 / 1 / 5 / 2 !important;
    }

    .tk-burakkart-slider--12 .tk-grid-item:nth-of-type(5) {
        grid-area: 4 / 2 / 5 / 3 !important;
    }

    .tk-burakkart-slider--12 .tk-grid-item.is-top-row .tk-thumb-title {
        font-size: 18px;
    }

    .tk-burakkart-slider--12 .tk-grid-item:not(.is-featured) .tk-thumb-meta {
        display: none;
    }

    .tk-burakkart-slider--12 .tk-grid-item.is-featured .tk-thumb-desc {
        display: none;
    }
}

@media (max-width: 991px) {
    .tk-burakkart-slider--11 .tk-grid-slide--dual {
        height: 460px;
    }
}

@media (max-width: 767px) {
    .tk-burakkart-slider--11 .tk-grid-slide--dual {
        height: 500px;
    }

    .tk-burakkart-slider--11 .tk-thumb-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tk-burakkart-slider--11 .tk-thumb-desc {
        display: none;
    }
}

@media (max-width: 991px) {
    .tk-burakkart-slider--13 .tk-grid-slide {
        height: 420px;
    }
}

@media (max-width: 767px) {
    .tk-burakkart-slider--13 .tk-grid-slide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        height: 700px;
    }

    .tk-burakkart-slider--13 .tk-grid-slide--single {
        grid-template-rows: 1fr;
        height: 320px;
    }

    .tk-burakkart-slider--13 .tk-grid-item.is-featured {
        grid-area: 1 / 1 / 3 / 3 !important;
    }

    .tk-burakkart-slider--13 .tk-grid-item:not(.is-featured):nth-of-type(2) {
        grid-area: 3 / 1 / 4 / 2 !important;
    }

    .tk-burakkart-slider--13 .tk-grid-item:not(.is-featured):nth-of-type(3) {
        grid-area: 3 / 2 / 4 / 3 !important;
    }

    .tk-burakkart-slider--13 .tk-grid-item:not(.is-featured):nth-of-type(4),
    .tk-burakkart-slider--13 .tk-grid-item:not(.is-featured):nth-of-type(5) {
        display: none;
    }

    .tk-burakkart-slider--13 .tk-thumb-content {
        padding: 12px;
    }

    .tk-burakkart-slider--13 .tk-grid-item.is-featured .tk-thumb-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tk-burakkart-slider--13 .tk-grid-item:not(.is-featured) .tk-thumb-meta {
        display: flex;
    }
}

/* Style 1: Featured split (YAPAY ZEKA) */
.tk-style-featured-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 0;
    padding: 0 0 16px;
}

.tk-featured-main-thumb {
    display: block;
    overflow: hidden;
}

.tk-featured-main-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tk-featured-main-thumb:hover img {
    transform: scale(1.03);
}

.tk-featured-main-body {
    padding: 16px 20px 0;
}

.tk-featured-side {
    list-style: none;
    margin: 0;
    padding: 16px 20px 0;
    border-left: 1px solid #f3f4f6;
}

.tk-featured-side-item {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.tk-featured-side-item:last-child {
    border-bottom: none;
}

.tk-featured-side-item .tk-post-title {
    font-size: 18px;
    font-weight: 600;
}

/* Style 2: Overlay grid */
.tk-style-overlay-grid {
    padding: 0 20px 20px;
}

.tk-overlay-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tk-overlay-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    min-height: 220px;
}

.tk-overlay-card-link {
    display: block;
    position: relative;
    height: 100%;
    min-height: 220px;
    color: #fff;
    text-decoration: none;
}

.tk-overlay-card-link img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.tk-overlay-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
}

.tk-slide-mask.tk-overlay-grid .tk-overlay-card-shade {
    display: none;
}

.tk-overlay-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    transition: bottom 0.3s ease;
}

.tk-post-title--overlay {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.tk-post-excerpt--overlay {
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    transition: opacity 0.4s ease-out, max-height 0.45s ease-out, margin 0.4s ease;
}

.tk-slide-mask.tk-overlay-grid .tk-overlay-card:hover .tk-post-excerpt--overlay {
    max-height: 3.2em;
    opacity: 1;
    margin-top: 4px;
}

.tk-overlay-more {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    border-top: 1px solid #f3f4f6;
}

.tk-overlay-more li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    display: grid;
    gap: 4px;
}

.tk-overlay-more li:last-child {
    border-bottom: none;
}

.tk-overlay-more a {
    color: #111;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.tk-overlay-more a:hover {
    color: var(--burak-theme-color);
}

/* Style 3: Compact list */
.tk-style-compact-list {
    padding: 0 20px 16px;
}

.tk-compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tk-compact-list-item {
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.tk-compact-list-item:last-child {
    border-bottom: none;
}

.tk-compact-list-item .tk-post-title {
    font-size: 18px;
}

/* Style 4: Thumb grid */
.tk-style-thumb-grid {
    padding: 0 20px 20px;
}

.tk-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tk-thumb-item-image {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tk-thumb-item-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 7;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tk-thumb-item-image:hover img {
    transform: scale(1.04);
}

.tk-thumb-item-body .tk-post-title {
    font-size: 18px;
}

/* Style 5: Magazine row */
.tk-style-magazine-row {
    padding: 0 20px 20px;
}

.tk-magazine-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 14px;
}

.tk-magazine-hero-thumb {
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

.tk-magazine-hero-thumb img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.tk-magazine-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tk-magazine-mini {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tk-magazine-mini-thumb {
    flex: 0 0 120px;
    border-radius: 4px;
    overflow: hidden;
}

.tk-magazine-mini-thumb img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    display: block;
}

.tk-magazine-mini-body .tk-post-title {
    font-size: 18px;
}

/* Popular posts — full width */
.tk-popular-section {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 28px;
}

.tk-popular-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    padding: 0 20px 22px;
}

.tk-popular-item-thumb {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tk-popular-item-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tk-popular-item-thumb:hover img {
    transform: scale(1.04);
}

.tk-popular-item-body .tk-post-title {
    font-size: 18px;
}

.tk-popular-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
}

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

@media (max-width: 991px) {
    .tk-style-featured-split {
        grid-template-columns: 1fr;
    }

    .tk-featured-side {
        border-left: none;
        border-top: 1px solid #f3f4f6;
    }

    .tk-overlay-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tk-thumb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tk-magazine-hero {
        grid-template-columns: 1fr;
    }

    .tk-popular-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tk-overlay-grid,
    .tk-thumb-grid,
    .tk-magazine-row {
        grid-template-columns: 1fr;
    }

    .tk-popular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    .tk-popular-grid {
        grid-template-columns: 1fr;
    }
}

/* Kart başlıkları 18px — critical CSS h2/h4 ve Bootstrap tipografisini geçersiz kılar */
.tk-category-blocks h2.tk-thumb-title,
.tk-category-blocks h4.tk-post-title,
.tk-category-blocks .tk-thumb-title,
.tk-category-blocks .tk-post-title,
.tk-popular-section h4.tk-post-title,
.tk-popular-section .tk-post-title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.tk-category-blocks .tk-thumb-title a,
.tk-category-blocks .tk-post-title a,
.tk-popular-section .tk-post-title a {
    font-size: 18px;
}

.tk-category-blocks .tk-featured-side-item .tk-post-title,
.tk-category-blocks .tk-featured-side-item h4.tk-post-title,
.tk-category-blocks .tk-featured-side-item h5.tk-post-title {
    font-size: 18px;
    font-weight: 600;
}

.tk-category-blocks .tk-grid-item.is-featured .tk-thumb-title,
.tk-category-blocks .tk-grid-item.is-featured h2.tk-thumb-title {
    font-size: 18px;
    line-height: 1.35;
}
