/* =============================================
   MEG Teması – SINGLE-PRATIK
   Yüklendiği Yer : PRATİK BİLGİ DETAY (single-pratik.php)
   İçerik         : Pratik bilgi detay sayfası
   ============================================= */

/* =========================================================
   1. HERO BÖLÜMÜ
========================================================= */
.sp-hero {
    background: var(--navy);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 90% 50%, rgba(232,205,134,.07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(232,205,134,.04) 0%, transparent 70%);
    pointer-events: none;
}

.sp-hero .meg-container { position: relative; }

/* Breadcrumb */
.sp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 12px;
}

.sp-breadcrumb__link {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}
.sp-breadcrumb__link:hover { color: var(--gold-light); }

.sp-breadcrumb__sep     { color: rgba(255,255,255,.25); }

.sp-breadcrumb__current {
    color: rgba(255,255,255,.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Hero Meta – Etiket */
.sp-hero__meta { margin-bottom: 16px; }

.sp-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(232,205,134,.15);
    border: 1px solid rgba(232,205,134,.35);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

/* Hero Başlık */
.sp-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 20px;
}

/* Tarih satırı */
.sp-hero__date {
    color: rgba(255,255,255,.45);
    font-size: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.sp-hero__date i        { color: var(--gold); font-size: 11px; }
.sp-hero__date strong   { color: rgba(255,255,255,.7); }

/* =========================================================
   2. GÖVDE – İKİ SÜTUNLU LAYOUT
========================================================= */
.sp-body {
    background: var(--bg);
    padding: 56px 0 80px;
}

.sp-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* =========================================================
   3. ANA İÇERİK ALANI
========================================================= */
.sp-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Özet Kutusu */
.sp-excerpt {
    display: flex;
    gap: 16px;
    background: var(--gold-pale);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin-bottom: 36px;
}

.sp-excerpt__icon {
    color: var(--gold);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sp-excerpt__text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--navy);
    font-weight: 500;
}
.sp-excerpt__text p { margin: 0; }

/* =========================================================
   4. ENTRY-CONTENT – Metin & Tablo İçerikleri
========================================================= */
.sp-entry-content {
    font-family: var(--font-body);
    color: var(--text);
    font-size: 15px;
    line-height: 1.85;
}

/* Paragraflar */
.sp-entry-content p { margin-bottom: 1.6rem; }

/* Başlıklar */
.sp-entry-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-entry-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-mid);
    margin: 2rem 0 0.8rem;
}

.sp-entry-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1.5rem 0 0.6rem;
}

/* Listeler */
.sp-entry-content ul,
.sp-entry-content ol {
    padding-left: 0;
    margin-bottom: 1.8rem;
    list-style: none;
}

.sp-entry-content ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 15px;
}

.sp-entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 9px;
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.sp-entry-content ol { counter-reset: ol-counter; }

.sp-entry-content ol li {
    counter-increment: ol-counter;
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
}

.sp-entry-content ol li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0; top: 0;
    width: 22px; height: 22px;
    background: var(--navy);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Bağlantılar */
.sp-entry-content a:not(.meg-btn):not(.sp-back-btn) {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(232,205,134,.35);
    text-underline-offset: 3px;
    transition: all var(--transition);
}
.sp-entry-content a:not(.meg-btn):not(.sp-back-btn):hover {
    color: var(--navy);
    text-decoration-color: var(--navy);
}

/* Kalın metin */
.sp-entry-content strong,
.sp-entry-content b { color: var(--navy); font-weight: 700; }

/* Görsel */
.sp-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 20px 0;
}

/* Separator */
.sp-entry-content hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 36px 0;
}

/* Blockquote – sıfırla */
.sp-entry-content blockquote,
.sp-entry-content .wp-block-quote {
    all: unset;
    display: block;
    margin: 0 0 1.5rem 0;
    font-size: 15px;
    color: var(--text);
    line-height: 1.85;
}
.sp-entry-content blockquote p { margin: 0; }

/* =========================================================
   5. TABLOLAR
========================================================= */

/* WordPress tablo kaydırma desteği */
.sp-entry-content .wp-block-table,
.sp-entry-content figure.wp-block-table {
    overflow-x: auto !important;
    display: block;
    width: 100%;
    margin: 32px 0;
    -webkit-overflow-scrolling: touch;
}

/* Tablo üst altın şerit */
.sp-entry-content table::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* Ana tablo */
.sp-entry-content table {
    width: 100% !important;
    table-layout: auto;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* Başlık satırı */
.sp-entry-content thead tr,
.sp-entry-content table tr:first-child {
    background: var(--navy) !important;
}

.sp-entry-content thead th,
.sp-entry-content table tr:first-child th,
.sp-entry-content table tr:first-child td {
    background: var(--navy) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    padding: 14px 18px !important;
    font-size: 13px;
    text-transform: uppercase;
    border: none !important;
}

/* Başlık içindeki alt elemanlar beyaz kalsın */
.sp-entry-content table tr:first-child td *,
.sp-entry-content thead th * {
    color: var(--white) !important;
    background: transparent !important;
}

/* Veri hücreleri */
.sp-entry-content tbody tr td,
.sp-entry-content table tr:not(:first-child) td {
    padding: 14px 18px !important;
    border-bottom: 1px solid var(--border) !important;
    background-color: var(--white) !important;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.5;
}

/* Hücre metin rengi */
.sp-entry-content table tr:not(:first-child) td,
.sp-entry-content table tr:not(:first-child) td p,
.sp-entry-content table tr:not(:first-child) td span,
.sp-entry-content table tr:not(:first-child) td strong,
.sp-entry-content table tr:not(:first-child) td b {
    color: var(--text) !important;
    background-color: transparent !important;
    word-break: break-word;
}

/* Zebra satırlar */
.sp-entry-content tbody tr:nth-child(even) td,
.sp-entry-content table tr:nth-child(even):not(:first-child) td {
    background-color: var(--off) !important;
}

/* Hover */
.sp-entry-content tbody tr:hover td,
.sp-entry-content table tr:not(:first-child):hover td {
    background-color: var(--gold-pale) !important;
    transition: background .2s ease;
}

/* Son sütun sağa yaslı (tutar/değer) */
.sp-entry-content table td:last-child {
    text-align: right !important;
    font-weight: 700 !important;
}

/* Son satır alt çizgisiz */
.sp-entry-content tbody tr:last-child td,
.sp-entry-content table tr:last-child td {
    border-bottom: none !important;
}

/* =========================================================
   6. GERİ DÖN BUTONU
========================================================= */
.sp-back-btn-wrap {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.sp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: var(--white) !important;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    transition: all var(--transition);
    text-decoration: none !important;
}

.sp-back-btn:hover {
    background: var(--gold);
    color: var(--navy) !important;
    transform: translateX(-3px);
}

/* =========================================================
   7. SIDEBAR
========================================================= */
.sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

/* Ortak kart stili */
.sp-sidebar__card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* Bilgi kartı */
.sp-sidebar__card--info {
    border-top: 3px solid var(--gold);
    text-align: center;
}

.sp-sidebar__card-icon { font-size: 40px; margin-bottom: 12px; line-height: 1; }

.sp-sidebar__card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.sp-sidebar__card-meta { margin-bottom: 12px; }

.sp-sidebar__tag {
    display: inline-block;
    background: var(--gold-pale);
    color: var(--navy);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.sp-sidebar__card-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Liste kartı */
.sp-sidebar__list-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.sp-sidebar__list-title i { color: var(--gold); }

.sp-sidebar__list { display: flex; flex-direction: column; gap: 4px; }
.sp-sidebar__list-item { margin: 0; }

.sp-sidebar__list-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.sp-sidebar__list-link:hover {
    background: var(--gold-pale);
    border-color: rgba(232,205,134,.3);
    transform: translateX(3px);
}

.sp-sidebar__list-icon  { font-size: 16px; flex-shrink: 0; }

.sp-sidebar__list-text {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}

.sp-sidebar__list-arrow {
    color: var(--gold);
    font-size: 10px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity var(--transition);
}
.sp-sidebar__list-link:hover .sp-sidebar__list-arrow { opacity: 1; }

/* CTA kartı */
.sp-sidebar__card--cta {
    background: var(--navy);
    border: none;
    text-align: center;
}

.sp-sidebar__cta-icon {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}

.sp-sidebar__cta-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.sp-sidebar__cta-desc {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
    margin-bottom: 18px;
}

/* =========================================================
   8. RESPONSİF
========================================================= */