/**
 * Temajet Single Post Stylesheet & Sticky Next Post Bar
 * 
 * Sitedeki diğer sayfaları koruma: Sadece tekil haber (single.php)
 * sayfalarında geçerli kurallar içerir.
 * 
 * @package temajet
 * @version 1.0.0
 */

/* Body padding koruması: sticky bar açıkken footer ve içerik arkada kalmasın */
body.single {
    padding-bottom: 55px !important;
}

/* ==========================================================================
   HABER ARALARI AYRAÇLARI (ANA ŞERİT & KESİK ÇİZGİLİ AYRAÇ)
   ========================================================================== */

/* 1. İlk Haberin Bitimi / 2. Haber Başlamadan Önceki Kırmızı Rozetli Ana Şerit */
.single-post-divider-main {
    margin: 45px 0;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.single-post-divider-main .divider-main-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.single-post-divider-main .divider-main-badge {
    background: #d90429;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: 4px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(217, 4, 41, 0.22);
}

.single-post-divider-main .divider-main-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #d90429 0%, #e5e7eb 100%);
}

.single-post-divider-main .divider-main-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* 2. Sonraki Haberlerin Bitimi (2, 3, 4... Haber Araları Kesik Çizgili Ayraç) */
:root {
    --tj-next-divider-color: #cccccc;
}

.single-post-divider-dashed {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.single-post-divider-dashed::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    border-top: 2px dashed var(--tj-next-divider-color, #cccccc);
    z-index: 1;
}

.single-post-divider-dashed .divider-icon {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 15px;
    color: #888888;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* ==========================================================================
   STICKY BOTTOM BAR (EKRANIN ALTINA YAPIŞAN TEMİZ BANT)
   ========================================================================== */
.sticky-next-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #ffffff;
    border-top: 2px solid #d90429;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
    user-select: none;
}

.sticky-next-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.sticky-next-bar.is-closed {
    display: none !important;
}

.sticky-next-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}

.sticky-next-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

/* Rozet */
.sticky-next-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d90429;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.sticky-next-badge i {
    font-size: 10px;
}

/* Kategori */
.sticky-next-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.sticky-next-cat::after {
    content: "•";
    margin-left: 8px;
    color: #cbd5e1;
}

/* Başlık Linki */
.sticky-next-title {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    line-height: 1.3;
}

.sticky-next-title:hover {
    color: #d90429;
}

/* Sağ Alan (Aksiyon Butonu & Kapatma Butonu) */
.sticky-next-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sticky-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.sticky-next-btn:hover {
    background: #d90429;
    color: #ffffff;
}

.sticky-next-btn:active {
    transform: scale(0.98);
}

.sticky-next-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.sticky-next-close:hover {
    color: #111111;
    background-color: #f3f4f6;
}

/* ==========================================================================
   METİN SONU MİNİMALİST ÇUBUK STİLİ (inline)
   ========================================================================== */
.sticky-next-bar.style-inline {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 30px auto;
    max-width: 1200px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #d90429;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ==========================================================================
   MOBİL & TABLET DUYARLILIK (RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
    .sticky-next-bar {
        height: 48px;
        padding: 0 12px;
    }
    .sticky-next-cat {
        display: none;
    }
    .sticky-next-title {
        font-size: 13px;
    }
    .sticky-next-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    .sticky-next-btn span {
        display: none;
    }
    .sticky-next-btn {
        padding: 6px 10px;
    }
}

/* ==========================================================================
   SONSUZ KAYDIRMA HABER AYRAÇLARI (DIVIDERS)
   ========================================================================== */

/* İlk Haberin Bitimi: Kırmızı Rozetli Ana Şerit */
.single-post-divider-main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0 40px;
    width: 100%;
    position: relative;
}

.single-post-divider-main::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 15%, #e2e8f0 85%, transparent);
    z-index: 1;
}

.single-post-divider-main .divider-main-inner {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 0 20px;
}

.single-post-divider-main .divider-main-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d90429;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(217, 4, 41, 0.25);
}

.single-post-divider-main .divider-main-text {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
}

/* Sonraki Haberlerin Bitimi: Minimalist Kesik Çizgili Ayraç (2, 3, 4... Haber Araları) */
.single-post-divider-dashed {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0;
    width: 100%;
    position: relative;
}

.single-post-divider-dashed::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    border-top: 2px dashed #cccccc;
    border-top-color: var(--tj-next-divider-color, #cccccc);
    z-index: 1;
}

.single-post-divider-dashed .divider-icon {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 15px;
    color: #888888;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
