/*
Theme Name: Naksibend Vuslat
Theme URI: https://naksibend.com
Author: Naksibend.com Yazılım Ekibi
Author URI: https://naksibend.com
Description: Nakşibendi yolu için özel olarak tasarlanmış, silsile-i aliyye ve divan modülleri içeren minimalist, tasavvufi tema.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naksibend
Tags: one-column, custom-colors, custom-menu, featured-images, translation-ready

Bu tema Tailwind CSS kullanmaktadır. Stil tanımları büyük oranda front-page.php içerisinde inline veya CDN üzerinden yönetilmektedir.
Özel CSS düzenlemelerinizi buraya ekleyebilirsiniz.
*/

/* WordPress admin bar düzeltmesi (Opsiyonel) */
body.admin-bar #navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #navbar {
        top: 46px;
    }
}

/* Temel Renk Değişkenleri */
:root {
    --c-gold: #D4AF37;
    --c-green: #1A3C34;
    --c-paper: #F9F7F1;
    --c-ink: #2C2C2C;
}

/* Tailwind Renk Sınıfları (CDN ile otomatik tanınır ama ek tanımlar) */
.text-sufi-green { color: var(--c-green); }
.bg-sufi-green { background-color: var(--c-green); }
.text-gold-base { color: var(--c-gold); }
.bg-gold-base { background-color: var(--c-gold); }
.text-gold-dark { color: #B59428; }
.bg-paper-base { background-color: var(--c-paper); }
.bg-paper-dark { background-color: #F0ECE2; }
.text-ink-base { color: var(--c-ink); }
.border-gold-base { border-color: var(--c-gold); }

/* Font Aileleri */
.font-serif { font-family: 'Playfair Display', serif; }
.font-arabic { font-family: 'Scheherazade New', serif; }
.font-divan { font-family: 'Amiri', serif; }
.font-handwriting { font-family: 'Dancing Script', cursive; }

/* GLOBAL TYPOGRAPHY & READABILITY */
body {
    font-family: 'Crimson Pro', serif;
    font-size: 18px; /* Yaşlılar için okunabilirlik */
    line-height: 1.7; /* Rahat okuma */
    color: var(--c-ink);
    background-color: var(--c-paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--c-green);
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--c-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--c-gold);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Handwritten Note Style Blockquote */
blockquote {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 1.2rem;
    border-left: 4px solid var(--c-gold);
    background: rgba(212, 175, 55, 0.05);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    position: relative;
}

/* Form Elements Readability */
input, textarea, select, button {
    font-family: 'Inter', sans-serif; /* Formlar için okunaklı sans-serif */
    font-size: 1rem;
}

/* Scrollbar Stilleri */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--c-paper); }
::-webkit-scrollbar-thumb { background: var(--c-gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-green); }

/* Selection Rengi */
::selection {
    background: var(--c-green);
    color: var(--c-gold);
}

/* --- VUSLAT MEDYA PLAYER & TRANSKRİPT --- */
.vuslat-player-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
}
#vuslat-player {
    width: 100%;
    display: block;
}
#vuslat-transcript {
    max-height: 400px;
    overflow-y: auto;
    background: var(--c-paper);
    border: 1px solid rgba(212, 175, 55, 0.3); /* Gold border opacity */
    padding: 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}
.transcript-line {
    display: block;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--c-ink);
}
.transcript-line:hover {
    background: rgba(212, 175, 55, 0.1); /* Light Gold Hover */
}
.transcript-line.active {
    background: var(--c-gold);
    color: #fff;
    font-weight: 500;
    transform: scale(1.01);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- SİLSİLE AĞACI (ŞECERE DEFTERİ) --- */
.silsile-tree {
    position: relative;
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}
/* Merkez Çizgi (Ana Kol İçin) */
.silsile-tree::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--c-gold);
    transform: translateX(-50%);
    z-index: 0;
}

.silsile-node {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Ana Halka Tasarımı */
.silsile-card {
    background: var(--c-paper);
    border: 2px solid var(--c-gold);
    padding: 20px 40px;
    border-radius: 50px; /* Oval/Madalyon tarzı */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-width: 300px;
    position: relative;
    transition: transform 0.3s ease;
}
.silsile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Bağlantı Noktaları */
.silsile-card::before, .silsile-card::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--c-gold);
    border-radius: 50%;
    transform: translateX(-50%);
}
.silsile-card::before { top: -26px; } /* Üst nokta */
.silsile-card::after { bottom: -26px; } /* Alt nokta */

/* Halife / Yan Kol Tasarımı */
.silsile-branch-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.silsile-card.halife {
    background: #fff;
    border: 1px dashed var(--c-gold);
    border-radius: 12px; /* Karemsi */
    padding: 10px 20px;
    min-width: 200px;
    font-size: 0.9em;
}
/* Halifeler ana çizgiden bağımsız */
.silsile-card.halife::before, .silsile-card.halife::after {
    display: none; 
}

/* İsimlendirmeler */
.silsile-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--c-green);
    font-weight: 700;
}
.silsile-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: 1.8rem;
    color: var(--c-gold);
    margin-top: 5px;
}
.silsile-dates {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .silsile-tree::before { left: 20px; }
    .silsile-node { align-items: flex-start; margin-left: 40px; }
    .silsile-card { min-width: auto; width: 100%; text-align: left; border-radius: 12px; }
    .silsile-card::before { left: -26px; top: 50%; transform: translateY(-50%); }
    .silsile-card::after { display: none; }
}
