/* ============================================================
   ALLFIREFIGHTER PREMIUM UI v9 (FINAL CLEAN VERSION)
   - Click-safe
   - No duplicate rules
   - Category labels clickable
   - Cards fully clickable
=========================================================== */


/* ------------------------------------------------------------
   GLOBAL
------------------------------------------------------------ */
body {
    background: #ffffff;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.section-title {
    margin-top: 60px;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 26px;
    color: #b30000;
    border-left: 6px solid #b30000;
    padding-left: 12px;
    text-transform: uppercase;
}


/* ------------------------------------------------------------
   QUICK ACCESS BOXES
------------------------------------------------------------ */
.quickBox {
    background: #fafafa;
    padding: 35px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: 0.25s ease;
}

.quickBox:hover {
    transform: translateY(-6px);
    background: #ffffff;
    border-color: #b30000;
    box-shadow: 0 0 18px rgba(214,0,0,0.15);
}

.quickBox h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}


/* ------------------------------------------------------------
   UNIVERSAL CARD STYLE (News / Posts / Videos)
------------------------------------------------------------ */
.card-custom,
.card-custom-gear {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e3e3e3;
    transition: 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-custom:hover,
.card-custom-gear:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 26px rgba(0,0,0,0.08);
}

/* Lower black content area */
.card-custom .p-3,
.card-custom-gear .p-3 {
    background: #111;
    color: #fff;
    padding: 22px;
    flex-grow: 1;
}

.card-custom h3,
.card-custom-gear h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff !important;
}

.card-custom p,
.card-custom-gear p {
    font-size: 15px;
    color: #bbbbbb !important;
    line-height: 1.45;
}



/* ------------------------------------------------------------
   CATEGORY LABEL — CLICKABLE
------------------------------------------------------------ */
.card-category {
    position: absolute;
    right: 14px;
    top: 14px;
    background: rgba(179, 0, 0, 0.95);
    color: #fff !important;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 20;
    text-transform: uppercase;
    text-decoration: none !important;
    pointer-events: auto !important; /* 🔥 CLICKABLE */
}


/* ------------------------------------------------------------
   THUMBNAILS (UNIVERSAL)
------------------------------------------------------------ */
.thumb-wrapper,
.video-thumb-wrapper,
.thumb-wrapper-gear {
    position: relative;
}

.thumb-wrapper img,
.video-thumb-wrapper img,
.thumb-wrapper-gear img {
    width: 100%;
    height: 220px !important;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

@media (max-width: 992px) {
    .thumb-wrapper img,
    .video-thumb-wrapper img,
    .thumb-wrapper-gear img {
        height: 200px !important;
    }
}

@media (max-width: 576px) {
    .thumb-wrapper img,
    .video-thumb-wrapper img,
    .thumb-wrapper-gear img {
        height: 180px !important;
    }
}


/* ------------------------------------------------------------
   VIDEO PLAY ICON (ONLY VIDEO)
------------------------------------------------------------ */
.video-overlay-play {
    position: absolute;
    inset: 0;
    z-index: 29;
    pointer-events: none;
}

.video-overlay-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
}

.video-overlay-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent white;
    transform: translate(-40%, -50%);
    z-index: 31;
}

.video-thumb-wrapper:hover .video-overlay-play::before,
.video-thumb-wrapper:hover .video-overlay-play::after {
    transform: translate(-50%, -50%) scale(1.08);
}


/* ------------------------------------------------------------
   GEAR PRICE TAG (CLICK-SAFE)
------------------------------------------------------------ */
.gear-price-tag {
    position: absolute;
    right: 14px;
    top: 14px;
    background: #b30000;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 25;
    pointer-events: none !important; /* Kart tıklamasını bozmasın */
}


.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 65%; /* 16:9 oran = 9/16 = 0.5625 */
    height: 0;
    margin-bottom: 20px;
    overflow: hidden;
    background: #000;
    border-radius: 12px; /* İstersen kaldırabilirsin */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-duration {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 40;
    pointer-events: none;
}

/* ------------------------------------------------------------
   PREMIUM BREADCRUMB (SEO + UX)
------------------------------------------------------------ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin: 25px 0;
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.breadcrumb a {
    color: #b30000;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
    font-weight: 600;
}

.breadcrumb span[aria-current="page"] {
    color: #666;
    font-weight: 500;
}

.breadcrumb .sep {
    color: #999;
    margin: 0 4px;
}

/* Mobil – satır taşmasın, kaydırılsın */
@media (max-width: 576px) {
    .breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .breadcrumb::-webkit-scrollbar {
        display: none;
    }
}

/* ==============================
   next video
================================ */

.next-video-bar {
    margin-top: 36px;
    border-radius: 14px;
    background: #111;
    box-shadow: 0 10px 26px rgba(0,0,0,.4);
    overflow: hidden;
}

.next-video-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    text-decoration: none;
}

.next-video-thumb {
    position: relative;
    width: 110px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.next-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.next-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    font-size: 26px;
    color: #fff;
    opacity: .95;
}

.next-video-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.next-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    color: #ff3b3b;
}

.next-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
}

.next-video-link:hover .next-title {
    text-decoration: underline;
}


/* =====================================
   RELATED / NEXT POST BOX
===================================== */
/* =====================================
   RELATED / NEXT POST BOX (CLICKABLE)
===================================== */
.next-post-box {
    display: block; /* Linki kutu gibi davranmaya zorlar */
    background-color: #f8f9fa;
    border-left: 6px solid #b30000;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    
    /* Link özellikleri */
    text-decoration: none !important; /* Alt çizgiyi kaldır */
    color: inherit; /* Yazı rengini bozma */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Kutuya mouse gelince ne olsun? */
.next-post-box:hover {
    transform: translateY(-5px); /* Hafif yukarı kalkar */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: #fff; /* Rengi hafif açılır */
}

/* Başlık */
.next-post-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    transition: color 0.2s;
}

/* Kutuya gelince başlık kırmızı olsun (şık bir detay) */
.next-post-box:hover h3 {
    color: #b30000;
}

/* Etiket */
.next-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b30000;
    margin-bottom: 8px;
}

/* Yazı */
.next-post-box p {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}

/* En alttaki "Read related ->" yazısı */
.next-post-cta {
    font-weight: bold;
    color: #b30000;
    font-size: 15px;
}

/* Mobilde ayarlar */
@media (max-width: 768px) {
    .next-post-box {
        padding: 15px;
    }
    .next-post-box h3 {
        font-size: 18px;
    }
}

/* ===============================
   AF-PAGINATION GENEL STİLLER
   =============================== */
.af-pagination-wrap {
    /* Sayfalama bileşenini ortalamak için */
    display: flex;
    justify-content: center;
    /* Üstten biraz boşluk */
    margin-top: 30px !important; 
    margin-bottom: 30px;
}

.af-pagination {
    /* Kenar boşluklarını sıfırlama */
    --bs-pagination-padding-x: 1rem;
    --bs-pagination-padding-y: 0.6rem;
    --bs-pagination-font-size: 1rem;
    
    /* Sayfalamayı düzgün göstermek için */
    display: flex;
    flex-wrap: wrap; /* Mobil cihazlarda taşmayı önler */
    gap: 4px; /* Sayfa numaraları arasına küçük boşluk ekler */
}

.af-pagination .page-item {
    /* Kalın font */
    font-weight: 600; 
}

/* ===============================
   PAGE LINK STİLLERİ
   =============================== */
.af-pagination .page-link {
    color: #495057; /* Koyu gri metin */
    background-color: #f8f9fa; /* Açık gri arka plan */
    border: 1px solid #dee2e6;
    border-radius: 6px !important; /* Köşeleri yumuşatma */
    transition: all 0.2s ease-in-out;
    padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
}

.af-pagination .page-link:hover {
    color: #0d0d0d; /* Hover'da daha koyu metin */
    background-color: #e9ecef; /* Hover'da daha koyu arka plan */
    border-color: #adb5bd;
}


/* ===============================
   AKTİF SAYFA STİLLERİ (Kırmızı Vurgu)
   =============================== */
.af-pagination .page-item.active .page-link {
    z-index: 3;
    color: #ffffff;
    /* Kırmızı/Yangın teması için */
    background-color: #dc3545; /* Bootstrap danger */
    border-color: #dc3545;
    /* Hover olunca daha koyu kırmızı */
    pointer-events: none; /* Aktif sayfaya tıklamayı engeller */
}

/* ===============================
   DEVAM ET/ÖNCEKİ BUTONLARI (Prev/Next)
   =============================== */
/* Okları belirginleştirmek için stil */
.af-pagination .page-item:first-child .page-link,
.af-pagination .page-item:last-child .page-link {
    font-weight: 700;
}

/* Devam et/Önceki linklerindeki Hover efekti */
.af-pagination .page-item:not(.active) .page-link:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Hafif gölge ekler */
    transform: translateY(-1px); /* Hafif yukarı kaydırır */
}

@media (max-width: 576px) {
    .af-pagination {
        /* Sayfa numaraları arasındaki boşluğu azaltma */
        gap: 2px;
    }
    .af-pagination .page-link {
        /* Metin ve dolguyu küçültme */
        --bs-pagination-padding-x: 0.75rem;
        --bs-pagination-padding-y: 0.5rem;
        --bs-pagination-font-size: 0.9rem;
    }
}


.af-ad{
  margin: 18px 0;
  border: 1px dashed rgba(148,163,184,.55);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255,255,255,.65);
}

/* CLS’yi azaltmak için kaba yükseklik tahmini */
.af-ad--top{ min-height: 250px; }
.af-ad--inner{ min-height: 180px; }
.af-ad--middle{ min-height: 250px; }

@media (min-width: 992px){
  .af-ad--inner{ min-height: 220px; }
}

