/**
 * 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;
}

/* ==========================================================================
   META & SOSYAL PAYLAŞIM BARI (NEWS-META-ACTION-BAR) - DARK MODE & CSS DEĞİŞKENLERİ
   ========================================================================== */
:root {
    --tj-meta-bg: #f8f9fa;
    --tj-meta-border: #e9ecef;
    --tj-meta-divider: #ced4da;
    --tj-meta-value: #000000;
    --tj-meta-label: #6c757d;
    --tj-btn-bg: #ffffff;
    --border-color: #ced4da;
    --text-color: #212529;
}

/* Dark Mode / Gece Modu Uyum Zırhı */
[data-theme="dark"],
.dark-mode,
.dark-theme,
body.dark,
body.dark-mode {
    --tj-meta-bg: #1e293b;
    --tj-meta-border: #334155;
    --tj-meta-divider: #475569;
    --tj-meta-value: #f8fafc;
    --tj-meta-label: #94a3b8;
    --tj-btn-bg: #0f172a;
    --border-color: #334155;
    --text-color: #f8fafc;
}

.news-meta-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: var(--tj-meta-bg, #f8f9fa);
    border-top: 1px solid var(--tj-meta-border, #e9ecef);
    border-bottom: 1px solid var(--tj-meta-border, #e9ecef);
    padding: 8px 12px;
    margin: 15px 0 20px 0;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.meta-info-group {
    display: flex;
    align-items: center;
    gap: 8px 10px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.meta-item {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-right: 10px;
    box-sizing: border-box;
}

.meta-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--tj-meta-divider, #ced4da);
}

.meta-value {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tj-meta-value, #000000);
    line-height: 1.1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.meta-icon-views {
    display: inline-block;
    vertical-align: -1px;
    margin-right: 3px;
    color: var(--tj-meta-label, #6c757d);
    flex-shrink: 0;
}

.meta-label {
    font-size: 8.5px;
    font-weight: 600;
    color: var(--tj-meta-label, #6c757d);
    letter-spacing: 0.5px;
    margin-top: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.meta-actions-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.share-btn, 
.font-btn, 
.google-news-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    box-sizing: border-box;
    border-radius: 2px;
    flex-shrink: 0;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.share-btn {
    width: 30px;
    border: none;
    color: #ffffff;
    padding: 0;
    text-decoration: none;
}

.share-btn svg {
    display: block;
    pointer-events: none;
}

.share-btn:hover,
.font-btn:hover {
    opacity: 0.88;
}

.share-btn.whatsapp    { background-color: #25D366; color: #ffffff; }
.share-btn.x-twitter   { background-color: #000000; color: #ffffff; }
.share-btn.facebook    { background-color: #1877F2; color: #ffffff; }
.share-btn.next-sosyal { background-color: #0F172A; color: #ffffff; }
.share-btn.telegram    { background-color: #229ED9; color: #ffffff; }
.share-btn.native-share{ background-color: #7A0000; color: #ffffff; }

.font-btn {
    width: 30px;
    padding: 0;
    background-color: var(--tj-btn-bg, #ffffff);
    color: var(--text-color, #212529);
    border: 1px solid var(--border-color, #ced4da);
    font-weight: 700;
    font-size: 12px;
    font-family: inherit;
}

.google-news-btn {
    padding: 0 10px;
    background-color: var(--tj-btn-bg, #ffffff);
    color: var(--text-color, #495057);
    border: 1px solid var(--border-color, #dadce0);
    text-decoration: none;
}

.google-news-btn svg {
    display: block;
    height: 14px;
    width: auto;
    max-width: 100%;
}

.google-news-btn:hover {
    border-color: #4285F4;
}

/* MOBİL DUYARLILIK (RESPONSIVE) */
@media (max-width: 768px) {
    .news-meta-action-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 10px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .meta-info-group {
        width: 100%;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-start;
        border-bottom: 1px dashed var(--tj-meta-divider, #dee2e6);
        padding-bottom: 8px;
        gap: 8px 10px;
    }
    .meta-item {
        padding-right: 10px;
    }
    .meta-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background-color: var(--tj-meta-divider, #ced4da);
        display: block;
    }
    .meta-actions-group {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 5px;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .meta-value {
        font-size: 11.5px;
    }
    .meta-label {
        font-size: 8px;
    }
    .meta-info-group {
        gap: 6px 8px;
    }
    .meta-item {
        padding-right: 8px;
    }
    .share-btn, .font-btn {
        width: 28px;
        height: 28px;
    }
    .google-news-btn {
        height: 28px;
        padding: 0 8px;
    }
}


