/* =========================================
   SINGLE.CSS - YAMA DETAY SAYFASI STİLLERİ
   (Header, İçerik, Galeri, Yorumlar, Sidebar)
   ========================================= */

/* -----------------------------------------------------------
   1. ÖZEL HEADER (Hero Section)
   ----------------------------------------------------------- */
.patch-header-custom {
    background-size: cover;
    background-position: center;
    padding: 60px 0 50px 0;
    position: relative;
    border-bottom: 4px solid var(--primary);
}

.patch-header-custom::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    backdrop-filter: blur(2px);
}

.header-content-layer { position: relative; z-index: 2; }

/* Breadcrumb Linkleri */
.crumb-link {
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.crumb-link:hover { color: var(--primary) !important; }

.crumb-active {
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
}

/* -----------------------------------------------------------
   2. İÇERİK KUTULARI (Content Box)
   ----------------------------------------------------------- */
.content-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.box-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}

.box-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
    color: var(--text-main);
}
[data-theme="dark"] .box-header h4 { color: #fff; }

.content-body { padding: 25px; }

/* İçerik Metin Düzenlemeleri */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}
.content-body p:empty, 
.content-body figure:empty { display: none; }

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}
[data-theme="dark"] .article-body { color: #e0e0e0; }

/* -----------------------------------------------------------
   3. MEDYA (Video & Galeri)
   ----------------------------------------------------------- */
/* YouTube Responsive */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.video-container iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; border: 0;
}

/* Galeri Thumbnail */
.gallery-thumb {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}
.gallery-thumb:hover {
    transform: scale(1.03);
    border-color: var(--primary);
    z-index: 5;
}

/* -----------------------------------------------------------
   4. SIDEBAR BİLGİ LİSTESİ
   ----------------------------------------------------------- */
.sidebar-widget {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 30px;
}
.widget-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}
.info-list li:last-child { border-bottom: none; }

.info-label { color: var(--text-muted); font-weight: 600; }
.info-value { color: var(--text-main); font-weight: 700; text-align: right; }
[data-theme="dark"] .info-value { color: #fff; }

/* -----------------------------------------------------------
   5. ETKİLEŞİMLER (Puanlama & Toast)
   ----------------------------------------------------------- */
.rating-box { text-align: center; }
.cursor-pointer { cursor: pointer; }
.stars i { transition: transform 0.2s, color 0.2s; }
.stars i:hover { transform: scale(1.2); }

/* Toast Bildirimi */
.pixel-toast {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--primary); color: #fff;
    padding: 12px 25px; border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-weight: 700; font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase; z-index: 9999;
    transform: translateY(100px); opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex; align-items: center; gap: 10px;
}
.pixel-toast.show { transform: translateY(0); opacity: 1; }

/* -----------------------------------------------------------
   6. FORMLAR VE YORUMLAR
   ----------------------------------------------------------- */
.comment-form .form-control {
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
}
.comment-form .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: none;
}

/* -----------------------------------------------------------
   7. SIDEBAR İNDİRME BUTONU (Mini)
   ----------------------------------------------------------- */
.btn-download-main {
    display: block;
    background-color: var(--primary) !important;
    color: #fff !important;
    text-decoration: none;
    padding: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.btn-download-main:hover {
    background-color: transparent !important;
    border-color: var(--primary);
    color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.2);
}

/* -----------------------------------------------------------
   8. REKLAM ALANLARI
   ----------------------------------------------------------- */
.ad-slot-wrapper {
    width: 100%; min-width: 250px;
    text-align: center; margin-bottom: 20px;
}
.ad-fallback-simple {
    display: none; padding: 15px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

/* -----------------------------------------------------------
   9. METİN YARDIMCILARI
   ----------------------------------------------------------- */
.text-dynamic { color: var(--text-main); }
[data-theme="dark"] .text-dynamic { color: #fff; }