/*
 Theme Name:   Echo Child
 Theme URI:    https://echo.themewant.com/
 Description:  Echo Child
 Author:       ReacThemes
 Author URI:   http://reactheme.com
 Template:     echo
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 */

/* ===== Post kartı resim yüksekliği sabitle ===== */
.blog-thumbnail,
.blog-thumbnail-inner,
.elementor-post__thumbnail,
.blog-img,
.bs-img {
    overflow: hidden;
}
.blog-thumbnail img,
.blog-thumbnail-inner img,
.thumbnail-img,
.elementor-post__thumbnail img,
.blog-img img,
.bs-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Post meta (tarih, okuma süresi, görüntülenme, yorum) gizle */
.blog-meta.post-like-comment-share {
    display: none !important;
}

/* Yazar kutusu gizle */
.author-block,
.echo-author-area {
    display: none !important;
}

/* Tüm konumlarda yazar adını gizle (icon var veya yok) */
.meta-item:has(a[href*="/author/"]),
.meta-item:has(i.rt-user),
.date-post:has(i.fa-user) {
    display: none !important;
}

/* ===== Sticky Header ===== */
#reactheme-header .menu-area {
    position: sticky;
    top: 0;
    z-index: 9999;
}
.admin-bar #reactheme-header .menu-area {
    top: 32px;
}

/* ===== Kategori/Arşiv sayfası başlığını gizle (breadcrumb zaten yolu gösteriyor) ===== */
.reactheme-breadcrumbs .page-title,
.reactheme-breadcrumbs .cat-description {
    display: none !important;
}

/* ===== Breadcrumb küçültme ===== */
.reactheme-breadcrumbs .breadcrumbs-single {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    min-height: unset !important;
}
.reactheme-breadcrumbs .breadcrumbs-inner {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
.reactheme-breadcrumbs .breadcrumbs-title {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

/* ===== Hero Slider ===== */
.pks-slider {
    position: relative;
    width: 100%;
}

.pks-slides {
    width: 100%;
}

.pks-slide {
    display: none;
}

.pks-slide.pks-active {
    display: block;
    animation: pksFade 0.4s ease;
}

@keyframes pksFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pks-frame {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.pks-img-link {
    display: block;
}

.pks-frame img.pks-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.pks-no-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a2e;
}

/* Karartma gradyanı */
.pks-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Başlık overlay */
.pks-caption {
    position: absolute;
    bottom: 44px;
    left: 0;
    right: 0;
    padding: 0 16px;
    z-index: 2;
}

.pks-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.pks-title a {
    color: #fff !important;
    text-decoration: none;
}

.pks-title a:hover {
    opacity: 0.85;
}

/* Rakam navigasyon — resim çerçevesi içinde alt kısım */
.pks-nav {
    position: absolute;
    bottom: 10px;
    left: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.pks-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    line-height: 20px;
    text-align: center;
}

.pks-dot.pks-active {
    border-color: #fff;
    color: #fff;
}

.pks-dot:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== Spor Haberleri: thumbnail boyutu sabitle ===== */
/* Kullanıcı postlarında _wp_attachment_metadata bozuk olduğunda orijinal görsel
   CSS'e sığmayabiliyor; thumbnail'ı sabit 108x110'a kilitliyoruz. */
.echo-blog-grid.blog--style2 .blog-thumbnail {
    flex: 0 0 108px;
    max-width: 108px;
    overflow: hidden;
}
.echo-blog-grid.blog--style2 .blog-thumbnail img {
    width: 108px !important;
    height: 110px !important;
    aspect-ratio: unset !important;
    object-fit: cover;
}

/* ===== Yaşam Tarzı: üst 2 kart — 1:1 kare ===== */
.elementor-element-f4e2880 .blog-thumbnail,
.elementor-element-f4e2880 .blog-thumbnail-inner {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    width: 100%;
    flex-basis: auto !important;
}
.elementor-element-f4e2880 .blog-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: unset !important;
    object-fit: cover;
}

/* ===== Yaşam Tarzı: alt büyük kart — 4:3 ===== */
.elementor-element-d64ae7c .blog-thumbnail,
.elementor-element-d64ae7c .blog-thumbnail-inner {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    width: 100%;
}
.elementor-element-d64ae7c .blog-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: unset !important;
    object-fit: cover;
}

/* ===== Video Section ===== */
.pkv-wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Sol: büyük featured video */
.pkv-featured {
    flex: 1 1 58%;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}
.pkv-featured img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.pkv-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
    pointer-events: none;
}
.pkv-featured-title {
    position: absolute;
    bottom: 14px; left: 14px; right: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    z-index: 1;
}

/* Sağ: 3 küçük video listesi */
.pkv-list {
    flex: 1 1 38%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pkv-item {
    display: flex;
    gap: 12px;
    align-items: center;
}
.pkv-item-info {
    flex: 1;
}
.pkv-item-cat {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: 6px;
}
.pkv-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #111;
}
.pkv-thumb-sm {
    flex: 0 0 160px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}
.pkv-thumb-sm img {
    width: 160px;
    height: 90px;
    object-fit: cover;
    display: block;
}

/* Play butonu */
.pkv-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.2s;
}
.pkv-play-btn svg {
    width: 22px; height: 22px;
    margin-left: 3px;
}
.pkv-play-sm {
    width: 32px; height: 32px;
}
.pkv-play-sm svg {
    width: 14px; height: 14px;
    margin-left: 2px;
}
.pkv-featured:hover .pkv-play-btn,
.pkv-thumb-sm:hover .pkv-play-btn {
    background: rgba(255, 0, 0, 0.8);
}

/* Modal */
.pkv-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.pkv-modal--open {
    display: flex;
}
.pkv-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
}
.pkv-modal-box {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 900px;
}
.pkv-modal-close {
    position: absolute;
    top: -36px; right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.pkv-iframe-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}
.pkv-iframe-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Mobil */
@media (max-width: 768px) {
    .pkv-wrap { flex-direction: column; }
    .pkv-list { flex-direction: row; flex-wrap: wrap; }
    .pkv-item { flex: 1 1 45%; }
}