/*
Theme Name: Kavcıoğlu Ailesi
Theme URI: https://kavcioglu.net
Author: Kavcıoğlu Ailesi
Author URI: https://kavcioglu.net
Description: Kavcıoğlu ailesi için özel tasarlanmış köklü aile mirası teması. Aile tarihçesi, soy ağacı ve parola korumalı sayfalar içerir.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.7
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: kavcioglu
Tags: family, heritage, one-column, custom-menu, translation-ready
*/

/* ═══════════════════════════════════════════════════
   KAVCIOGLU THEME - GLOBAL STYLES
   ═══════════════════════════════════════════════════ */

:root {
  --bg: #faf8f4;
  --bg-alt: #f0ece4;
  --text: #2c3340;
  --text-muted: #6b7280;
  --accent: #8b6f3a;
  --accent-light: #c9a84c;
  --accent-bg: rgba(139,111,58,0.06);
  --green: #2d5a3d;
  --green-dark: #1a2f23;
  --green-light: #e8f0eb;
  --border: rgba(139,111,58,0.15);
  --blue: rgba(74,144,217,0.12);
  --blue-border: rgba(74,144,217,0.3);
  --blue-text: #2a6db5;
  --pink: rgba(217,74,122,0.1);
  --pink-border: rgba(217,74,122,0.3);
  --pink-text: #b53a6d;
  --radius: 12px;
  --card-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; }

/* ─── NAV ─── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
  letter-spacing: 0.5px;
}
.nav-logo:hover { color: var(--green); }

/* WordPress Menu */
.main-menu { display: flex; gap: 32px; list-style: none; }
.main-menu li { list-style: none; }
.main-menu a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s; letter-spacing: 0.3px;
}
.main-menu a:hover,
.main-menu .current-menu-item a,
.main-menu .current_page_item a { color: var(--accent); }

.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: 0.3s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a2f23 0%, #2d5a3d 40%, #3a6b4a 100%);
  color: #fff; text-align: center;
  padding: 100px 24px 90px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 18px; border-radius: 30px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem; font-weight: 700;
  line-height: 1.2; margin-bottom: 18px;
  letter-spacing: 1px;
}
.hero h1 span { color: var(--accent-light); }
.hero p {
  font-size: 1.05rem; line-height: 1.8;
  color: rgba(255,255,255,0.8);
  max-width: 560px; margin: 0 auto 36px;
}
.hero-divider {
  width: 60px; height: 3px;
  background: var(--accent-light);
  margin: 0 auto 28px; border-radius: 2px;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-light); color: #1a2f23;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 14px 32px; border-radius: 8px;
  transition: all 0.3s; letter-spacing: 0.3px;
}
.hero-btn:hover {
  background: #d4b558; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); color: #1a2f23;
}

/* ─── HERO MINI ─── */
.hero-mini {
  background: linear-gradient(135deg, #1a2f23, #2d5a3d);
  color: #fff; text-align: center;
  padding: 50px 24px 40px;
}
.hero-mini h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; margin-bottom: 8px;
}
.hero-mini p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ─── SECTIONS ─── */
.section {
  max-width: 1100px; margin: 0 auto;
  padding: 80px 24px;
}
.section-alt { background: var(--bg-alt); }
.section-alt .section { padding: 80px 24px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--text); margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted); font-size: 0.95rem;
  max-width: 540px; margin: 0 auto;
}
.section-divider {
  width: 40px; height: 3px;
  background: var(--accent);
  margin: 0 auto 16px; border-radius: 2px;
}

/* ─── HISTORY GRID ─── */
.history-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}
.history-text p { margin-bottom: 18px; color: var(--text); font-size: 0.95rem; }
.history-text .first-letter::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem; float: left; line-height: 1;
  margin-right: 8px; color: var(--accent); font-weight: 700;
}
.history-card {
  background: var(--green); color: #fff;
  padding: 40px; border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.history-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(201,168,76,0.15);
}
.history-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; margin-bottom: 20px; color: var(--accent-light);
}
.stat { margin-bottom: 16px; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700; color: var(--accent-light);
}
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* ─── TIMELINE ─── */
.timeline { position: relative; padding-left: 40px; max-width: 640px; }
.timeline::before {
  content: ''; position: absolute;
  left: 15px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 40px; }
.tl-item::before {
  content: ''; position: absolute;
  left: -33px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 3px solid var(--accent); background: var(--bg);
}
.tl-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--accent);
  font-weight: 600; margin-bottom: 6px;
}
.tl-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.tl-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ─── BRANCHES ─── */
.branches {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.branch-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow); border-color: var(--accent);
}
.branch-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}
.branch-card:nth-child(1)::after { background: #4a90d9; }
.branch-card:nth-child(2)::after { background: #d94a7a; }
.branch-card:nth-child(3)::after { background: #c9a84c; }
.branch-card:nth-child(4)::after { background: #5aaa6e; }
.branch-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--accent);
  font-weight: 700; opacity: 0.3;
  position: absolute; top: 16px; right: 20px;
}
.branch-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; margin-bottom: 8px; color: var(--text);
}
.branch-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ─── CTA SECTION ─── */
.cta-section {
  background: linear-gradient(135deg, #1a2f23, #2d5a3d);
  text-align: center; padding: 60px 24px; color: #fff;
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; margin-bottom: 12px;
}
.cta-section p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 28px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-light); color: #1a2f23;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 14px 36px; border-radius: 8px; transition: all 0.3s;
}
.cta-btn:hover { background: #d4b558; transform: translateY(-2px); color: #1a2f23; }

/* ─── PASSWORD GATE ─── */
.pw-gate {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a2f23, #2d5a3d);
  padding: 24px;
}
.pw-box {
  background: #fff; border-radius: 16px;
  padding: 48px 40px; max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.pw-box .lock-icon { font-size: 2.8rem; margin-bottom: 16px; display: block; }
.pw-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; margin-bottom: 8px; color: var(--text);
}
.pw-box p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.pw-box input[type="password"] {
  width: 100%; padding: 14px 16px;
  border: 2px solid #e5e7eb; border-radius: 10px;
  font-size: 1rem; text-align: center; outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s; letter-spacing: 4px;
}
.pw-box input[type="password"]:focus { border-color: var(--accent); }
.pw-btn {
  display: block; width: 100%; margin-top: 16px; padding: 14px;
  background: var(--green); color: #fff;
  border: none; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.pw-btn:hover { background: #245a34; }
.pw-error { color: #dc3545; font-size: 0.82rem; margin-top: 10px; display: none; }
.pw-box .back-link {
  display: inline-block; margin-top: 20px;
  color: var(--text-muted); font-size: 0.82rem;
}
.pw-box .back-link:hover { color: var(--accent); }

/* ─── FAMILY TREE ─── */
.tree-content { display: none; }
.tree-content.unlocked { display: block; }

.toolbar {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.legend { display: flex; gap: 18px; font-size: 0.8rem; color: var(--text-muted); }
.legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dm { background: var(--blue-text); }
.df { background: var(--pink-text); }
.dd { background: #999; }

.search-box { position: relative; }
.search-box input {
  padding: 10px 14px 10px 38px;
  border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text);
  font-size: 0.88rem; outline: none; width: 260px;
  font-family: 'Inter', sans-serif;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,111,58,0.08); }
.search-box .si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; }

.tree { max-width: 1200px; margin: 0 auto; padding: 10px 24px 40px; }

.node { position: relative; padding: 5px 0; }
.person-box {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  font-size: 0.85rem; cursor: default;
  transition: all 0.2s; position: relative;
}
.person-box:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.male { background: var(--blue); border: 1px solid var(--blue-border); color: var(--blue-text); }
.male:hover { background: rgba(74,144,217,0.18); }
.female { background: var(--pink); border: 1px solid var(--pink-border); color: var(--pink-text); }
.female:hover { background: rgba(217,74,122,0.16); }
.deceased { opacity: 0.5; }
.icon { font-size: 0.7rem; }
.pname { font-weight: 600; }
.detail { font-size: 0.72rem; color: var(--text-muted); margin-left: 4px; }
.highlight { background: rgba(201,168,76,0.25) !important; border-color: var(--accent) !important; opacity: 1 !important; }

.root {
  text-align: center; padding: 24px;
  background: linear-gradient(135deg, rgba(45,90,61,0.06), rgba(139,111,58,0.06));
  border: 2px solid var(--border); border-radius: 14px;
  margin: 0 auto 6px; max-width: 420px;
}
.root .rname { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--accent); }
.root .rinfo { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.vline { width: 2px; height: 20px; background: var(--border); margin: 0 auto; }

.sec {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--green);
  border-left: 3px solid var(--green);
  padding-left: 12px; margin: 36px 0 14px; letter-spacing: 0.3px;
}
.subsec { font-size: 0.88rem; color: var(--accent); margin: 18px 0 8px; font-weight: 600; padding-left: 4px; }

.children { margin-left: 28px; padding-left: 18px; border-left: 2px solid rgba(45,90,61,0.12); position: relative; }
.children .node::before { content: ''; position: absolute; left: -18px; top: 17px; width: 16px; height: 2px; background: rgba(45,90,61,0.12); }
.grandchildren { margin-left: 28px; padding-left: 18px; border-left: 2px solid rgba(139,111,58,0.12); }
.grandchildren .node::before { content: ''; position: absolute; left: -18px; top: 17px; width: 16px; height: 2px; background: rgba(139,111,58,0.12); }
.greatgrandchildren { margin-left: 28px; padding-left: 18px; border-left: 2px solid rgba(160,130,100,0.12); }
.greatgrandchildren .node::before { content: ''; position: absolute; left: -18px; top: 17px; width: 16px; height: 2px; background: rgba(160,130,100,0.12); }

.info-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px;
  font-size: 0.82rem; color: var(--text-muted);
  margin: 8px 0 12px; line-height: 1.6;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.kol-sep { height: 2px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 44px 0; }

/* ─── FOOTER ─── */
.site-footer {
  background: #1a2019; color: rgba(255,255,255,0.5);
  text-align: center; padding: 40px 24px; font-size: 0.82rem;
  border-top: 3px solid var(--accent);
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--accent-light); margin-bottom: 8px;
}

/* ─── WordPress Overrides ─── */
.wp-block-post-content { max-width: 100%; padding: 0; }
.entry-content { max-width: 100%; }
body.page .site-main { padding: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 70px 20px 60px; }
  .history-grid { grid-template-columns: 1fr; }
  .branches { grid-template-columns: 1fr; }
  .main-menu { display: none; }
  .main-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(250,248,244,0.98); backdrop-filter: blur(12px);
    padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .hamburger { display: block; }
  .section { padding: 50px 20px; }
  .hero-mini h1 { font-size: 1.6rem; }
  .toolbar { flex-direction: column; align-items: flex-start; }
  .search-box input { width: 100%; }
  .pw-box { padding: 32px 24px; }
}
