/*
 * Theme Name:  GönülDefteri Child
 * Template:    generatepress
 * Version:     11.0
 * Description: GönülDefteri v11 child theme — GeneratePress Premium + GenerateBlocks Pro
 * Author:      GönülDefteri Ekibi
 * Text Domain: gonuldefteri-child
 */

/* ─────────────────────────────────────────────────────────
   GLOBAL DESIGN TOKENS
   GP Global Styles > Custom CSS Variables ile de tanımlanabilir.
───────────────────────────────────────────────────────── */
:root {
  --gd-yaprak-green:       #86efac;
  --gd-yaprak-green-light: #dcfce7;
  --gd-yaprak-dark:        #166534;
  --gd-surface:            #f0fdf4;
  --gd-border:             #e5e7eb;
  --gd-text:               #111827;
  --gd-text-muted:         #6b7280;
  --gd-radius:             12px;
  --gd-radius-sm:          8px;
  --gd-shadow:             0 2px 12px rgba(0,0,0,.08);
  --gd-shadow-lg:          0 8px 30px rgba(0,0,0,.14);
  --gd-transition:         .15s ease;
}

[data-gd-theme="dark"] {
  --gd-surface:      #1f2937;
  --gd-border:       #374151;
  --gd-text:         #f9fafb;
  --gd-text-muted:   #9ca3af;
  --gd-shadow:       0 2px 12px rgba(0,0,0,.3);
  --gd-shadow-lg:    0 8px 30px rgba(0,0,0,.5);
}

/* ─────────────────────────────────────────────────────────
   GENEL
───────────────────────────────────────────────────────── */
body { color: var(--gd-text); }

a { color: #1d4ed8; }
a:hover { color: #1e40af; }

/* Şiir İçeriği */
.entry-content .siir-govde {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1rem;
  line-height: 1.9;
  white-space: pre-line;
  max-width: 60ch;
}

/* ─────────────────────────────────────────────────────────
   ŞİİR KARTLARI
───────────────────────────────────────────────────────── */
.gd-siir-card {
  background: #fff;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius);
  padding: 20px;
  transition: box-shadow var(--gd-transition);
}

.gd-siir-card:hover {
  box-shadow: var(--gd-shadow-lg);
}

[data-gd-theme="dark"] .gd-siir-card {
  background: #1f2937;
}

/* Editör Seçkisi işareti */
.gd-editor-secki-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  color: #d97706;
  background: #fef9c3;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  padding: 2px 6px;
}

/* ─────────────────────────────────────────────────────────
   PROFİL SEKME SİSTEMİ
───────────────────────────────────────────────────────── */
.gd-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--gd-border);
  margin-bottom: 24px;
}

.gd-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  color: var(--gd-text-muted);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--gd-transition), border-color var(--gd-transition);
}

.gd-tab.active,
.gd-tab[aria-selected="true"] {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.gd-tab-pane { display: block; }
.gd-tab-pane.hidden { display: none; }

/* ─────────────────────────────────────────────────────────
   FOUC ÖNLEME BLOĞU
   Bu kodu <head>'e ekle (tema PHP'de inline olarak):
   <script>
     (function(){
       var t=document.cookie.match(/gd_theme_sync=([^;]+)/);
       document.documentElement.setAttribute('data-gd-theme',
         t ? (t[1]==='dark' ? 'dark' : t[1]==='light' ? 'light' :
           (window.matchMedia('(prefers-color-scheme:dark)').matches ? 'dark':'light'))
         : (window.matchMedia('(prefers-color-scheme:dark)').matches ? 'dark':'light'));
     })();
   </script>
───────────────────────────────────────────────────────── */
