/* Çubuklu Tenis Spor Kulübü — public site
   Renkler admin panelinden CSS değişkenleriyle yönetilir (layouts/main.php) */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary: #184634;
  --accent: #2f6b53;
  --ball: #d9e021;
  --sky: #29abe2;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --text: #182420;
  --muted: #5d6b64;
  --line: #e3e9e4;
  --danger: #9a3f2e;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(24, 70, 52, .08);
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow);
}
.site-header .container { display: flex; align-items: center; gap: 18px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--primary); font-size: 1.06rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: 44px; object-fit: contain; border-radius: 10px; background: #fff; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.main-nav a {
  padding: 8px 13px; border-radius: 9px; color: var(--text); font-weight: 500; font-size: .95rem;
}
.main-nav a:hover { background: var(--bg); text-decoration: none; }
.main-nav a.active { background: var(--primary); color: #fff; }
.nav-cta {
  background: var(--accent); color: #fff !important; font-weight: 600;
}
.nav-cta:hover { background: var(--primary) !important; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 1.2rem; cursor: pointer; color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 70%);
  color: #fff; padding: 72px 0 84px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(217,224,33,.25), transparent 65%);
}
.hero .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; }
.hero h1 { font-size: 2.5rem; line-height: 1.2; margin: 0 0 16px; }
.hero p { font-size: 1.12rem; opacity: .92; margin: 0 0 28px; max-width: 560px; }
.hero-logo { text-align: center; }
.hero-logo img { width: 240px; max-width: 100%; border-radius: 24px; box-shadow: 0 12px 40px rgba(0,0,0,.25); background: #fff; padding: 12px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: .97rem;
  border: none; cursor: pointer; transition: all .15s; text-decoration: none !important; font-family: var(--font);
}
.btn-primary { background: var(--ball); color: var(--primary); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-green { background: var(--accent); color: #fff; }
.btn-green:hover { background: var(--primary); }
.btn-ghost { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: #fdf0ed; color: var(--danger); border: 1px solid #f2d5cd; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 13px; font-size: .87rem; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.65rem; color: var(--primary); margin: 0; }
.section-head .more { font-weight: 600; font-size: .95rem; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; color: var(--primary); font-size: 1.12rem; }
.card .muted { color: var(--muted); font-size: .93rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Badges & status ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge-green { background: #e3f2e9; color: var(--primary); }
.badge-yellow { background: #fdf6d8; color: #8a6d00; }
.badge-red { background: #fdeae5; color: var(--danger); }
.badge-gray { background: #eef1ef; color: var(--muted); }
.badge-blue { background: #e3f0fa; color: #1c5d8f; }

/* ---------- Court board ---------- */
.court-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.court-card__head { background: var(--primary); color: #fff; padding: 13px 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.court-card__head h3 { margin: 0; font-size: 1.05rem; color: #fff; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; padding: 14px; }
.slot {
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 6px; text-align: center;
  font-size: .84rem; font-weight: 600; background: #f2f7f3; color: var(--primary);
}
.slot .price { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); }
.slot .slot-type { display: block; font-size: .65rem; opacity: .85; margin-top: 2px; }
.slot.free { background: #e8f5ec; color: var(--primary); border-color: #c3e2cf; }
.slot.busy { background: #fdeae5; color: var(--danger); border-color: #f2d5cd; }
.slot.pending { background: #fdf6d8; color: #8a6d00; border-color: #efe2a8; }
.slot.lesson { background: #e3f0fa; color: #1c5d8f; border-color: #c8e0f2; }
.slot.hold { background: #eee8f5; color: #5a4a7a; border-color: #d8cfe8; }
.slot.maintenance { background: #fff0e0; color: #a65c00; border-color: #f5dcc0; }
.slot.completed { background: #d4edda; color: #155724; border-color: #b8dfc4; }
.slot.past { background: #f0f0f0; color: #888; border-color: #ddd; opacity: .55; }
.slot.weather-medium { box-shadow: inset 0 0 0 2px #e6a817; }
.slot.weather-high { box-shadow: inset 0 0 0 2px #c0392b; }
.weather-flag { font-size: .65rem; line-height: 1; }
.slot-legend .swatch.weather-medium { background: #fff3cd; box-shadow: inset 0 0 0 2px #e6a817; }
.slot-legend .swatch.weather-high { background: #fde8e8; box-shadow: inset 0 0 0 2px #c0392b; }
.slot.empty { background: transparent; border: none; color: #ccc; }
.slot.selectable { cursor: pointer; transition: all .12s; }
.slot.selectable:hover { border-color: var(--accent); transform: translateY(-1px); }
.slot.selected { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }
.slot.selected .price { color: rgba(255,255,255,.75); }
.slot.disabled { opacity: .45; }

/* Slot matrix (eski panel düzeni) */
.slot-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: .82rem; color: var(--muted); }
.slot-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.slot-legend .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.08); }
.slot-legend .swatch.free { background: #e8f5ec; }
.slot-legend .swatch.busy { background: #fdeae5; }
.slot-legend .swatch.pending { background: #fdf6d8; }
.slot-legend .swatch.lesson { background: #e3f0fa; }
.slot-legend .swatch.hold { background: #eee8f5; }
.slot-legend .swatch.maintenance { background: #fff0e0; }
.slot-legend .swatch.past { background: #f0f0f0; }

.slot-matrix-wrap { overflow-x: auto; margin: 0 -4px; }
.slot-matrix { width: 100%; border-collapse: separate; border-spacing: 4px; min-width: 480px; }
.slot-matrix th { font-size: .78rem; color: var(--primary); padding: 6px 4px; text-align: center; font-weight: 700; }
.slot-matrix__time-col { width: 52px; font-size: .78rem; color: var(--muted); text-align: right; padding-right: 8px; white-space: nowrap; }
.slot-matrix td { vertical-align: top; padding: 0; }
.slot-matrix .slot.cell { min-width: 72px; font-size: .72rem; padding: 6px 4px; margin: 0; }
.slot-matrix .slot-time { display: block; font-weight: 700; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 600; font-size: .9rem; color: var(--primary); }
.form-row .help { font-size: .8rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time],
input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-size: .96rem; font-family: var(--font); background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: .95rem; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Flash ---------- */
.flash { padding: 13px 18px; border-radius: 10px; margin: 16px 0; font-weight: 500; font-size: .95rem; }
.flash-success { background: #e3f2e9; color: var(--primary); border: 1px solid #c3e2cf; }
.flash-error { background: #fdeae5; color: var(--danger); border: 1px solid #f2d5cd; }
.flash-warning { background: #fdf6d8; color: #8a6d00; border: 1px solid #efe2a8; }
.flash-info { background: #e3f0fa; color: #1c5d8f; border: 1px solid #c8e0f2; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; padding: 11px 14px; background: #f2f6f3; color: var(--primary); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fafcfa; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,.85); margin-top: 64px; padding: 44px 0 24px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.site-footer .foot-note { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-brand img { height: 46px; border-radius: 9px; background: #fff; padding: 3px; }

/* ---------- Member area ---------- */
.member-shell { display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding: 32px 0; align-items: start; }
.member-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 84px; }
.member-nav a { display: block; padding: 10px 14px; border-radius: 9px; color: var(--text); font-weight: 500; font-size: .94rem; }
.member-nav a:hover { background: var(--bg); text-decoration: none; }
.member-nav a.active { background: var(--primary); color: #fff; }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-tile .num { font-size: 1.7rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.stat-tile .lbl { font-size: .84rem; color: var(--muted); }

.progressbar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progressbar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------- Pricing ---------- */
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card .price { font-size: 1.9rem; font-weight: 800; color: var(--primary); margin: 6px 0 2px; }
.plan-card ul { padding-left: 18px; margin: 12px 0; color: var(--muted); font-size: .93rem; flex: 1; }
.plan-card.featured { border: 2px solid var(--accent); box-shadow: 0 8px 24px rgba(47,107,83,.18); }
.plan-flag { position: absolute; top: -12px; right: 16px; background: var(--ball); color: var(--primary); font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }

/* ---------- Coach cards ---------- */
.coach-card { text-align: center; }
.coach-avatar {
  width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 700; overflow: hidden;
}
.coach-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 440px; margin: 48px auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.45rem; color: var(--primary); margin: 0 0 6px; }
.auth-logo { text-align: center; margin-bottom: 18px; }
.auth-logo img { height: 76px; border-radius: 14px; }

/* ---------- Utility ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.between{justify-content:space-between}
.center{text-align:center}
.w-100{width:100%}
.prose { max-width: 760px; }
.prose p { margin: 0 0 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 150px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .member-shell { grid-template-columns: 1fr; }
  .member-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .member-nav a { white-space: nowrap; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}

/* === THEME SYSTEM (10 COLORS) === */

/* 2. Dark Mode */
body.theme-dark {
  --primary: #1e1e1e;
  --accent: #4ade80;
  --ball: #22c55e;
  --bg: #121212;
  --surface: #1e1e1e;
  --text: #e0e0e0;
  --muted: #9e9e9e;
  --line: #333333;
  --danger: #ef4444;
}

/* 3. Ocean Blue */
body.theme-ocean {
  --primary: #0f172a;
  --accent: #3b82f6;
  --ball: #60a5fa;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --danger: #ef4444;
}

/* 4. Forest Green */
body.theme-forest {
  --primary: #064e3b;
  --accent: #10b981;
  --ball: #34d399;
  --bg: #ecfdf5;
  --surface: #ffffff;
  --text: #064e3b;
  --muted: #059669;
  --line: #d1fae5;
  --danger: #ef4444;
}

/* 5. Sunset Orange */
body.theme-sunset {
  --primary: #7c2d12;
  --accent: #f97316;
  --ball: #fb923c;
  --bg: #fff7ed;
  --surface: #ffffff;
  --text: #431407;
  --muted: #9a3412;
  --line: #ffedd5;
  --danger: #dc2626;
}

/* 6. Royal Purple */
body.theme-royal {
  --primary: #4c1d95;
  --accent: #8b5cf6;
  --ball: #a78bfa;
  --bg: #f5f3ff;
  --surface: #ffffff;
  --text: #2e1065;
  --muted: #6d28d9;
  --line: #ede9fe;
  --danger: #e11d48;
}

/* 7. Rose Gold */
body.theme-rose {
  --primary: #831843;
  --accent: #f43f5e;
  --ball: #fb7185;
  --bg: #fff1f2;
  --surface: #ffffff;
  --text: #4c0519;
  --muted: #9f1239;
  --line: #ffe4e6;
  --danger: #dc2626;
}

/* 8. Midnight */
body.theme-midnight {
  --primary: #020617;
  --accent: #6366f1;
  --ball: #818cf8;
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: #334155;
  --danger: #f43f5e;
}

/* 9. Slate Grey */
body.theme-slate {
  --primary: #334155;
  --accent: #64748b;
  --ball: #94a3b8;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --danger: #ef4444;
}

/* 10. Neon Contrast */
body.theme-neon {
  --primary: #000000;
  --accent: #ccff00;
  --ball: #39ff14;
  --bg: #111111;
  --surface: #000000;
  --text: #ffffff;
  --muted: #aaaaaa;
  --line: #444444;
  --danger: #ff0055;
}

/* Public Site Theme Fixes */
body.theme-dark .site-header, body.theme-midnight .site-header, body.theme-neon .site-header { background: var(--surface); border-bottom-color: var(--line); }
body.theme-dark .main-nav a:hover, body.theme-midnight .main-nav a:hover { background: rgba(255,255,255,0.05); }
body.theme-neon .main-nav a:hover { background: rgba(255,255,255,0.1); }
body.theme-dark .brand img, body.theme-midnight .brand img, body.theme-neon .brand img { background: transparent; }
body.theme-neon .btn-green { color: #000; font-weight: bold; }


/* === PUBLIC LAYOUT SYSTEM (10 MODES) === */

/* 2. Boxed */
body.layout-boxed { background: #dcdcdc; }
body.layout-boxed .site-header { max-width: 1200px; margin: 0 auto; }
body.layout-boxed > *:not(.site-header) { max-width: 1200px; margin-left: auto; margin-right: auto; background: var(--bg); box-shadow: 0 0 30px rgba(0,0,0,0.1); }
body.layout-boxed .hero { border-radius: 0; }

/* 3. Fullwidth */
body.layout-fullwidth .container { max-width: 100%; padding: 0 40px; }

/* 4. Floating Header */
body.layout-floating-header .site-header { position: fixed; top: 20px; left: 20px; right: 20px; border-radius: 20px; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border: none; max-width: 1160px; margin: 0 auto; }
body.theme-dark.layout-floating-header .site-header, body.theme-midnight.layout-floating-header .site-header, body.theme-neon.layout-floating-header .site-header { background: rgba(30,30,30,0.9); }
body.layout-floating-header { padding-top: 100px; }

/* 5. Centered Stack */
body.layout-centered-nav .site-header .container { flex-direction: column; justify-content: center; text-align: center; gap: 15px; }
body.layout-centered-nav .main-nav { margin: 0 auto; justify-content: center; }

/* 6. Sidebar (Admin-like public layout) */

  
  
  
  
  
  
}

/* 7. Compact */
body.layout-compact { font-size: 14px; line-height: 1.4; }
body.layout-compact .section { padding: 30px 0; }
body.layout-compact .hero { padding: 40px 0; }
body.layout-compact .card { padding: 15px; }
body.layout-compact .btn { padding: 6px 12px; font-size: 0.9rem; }
body.layout-compact .main-nav a { padding: 5px 10px; font-size: 0.9rem; }

/* 8. Spacious */
body.layout-spacious { font-size: 18px; line-height: 1.8; }
body.layout-spacious .section { padding: 100px 0; }
body.layout-spacious .hero { padding: 120px 0; }
body.layout-spacious .card { padding: 40px; }
body.layout-spacious .btn { padding: 15px 30px; font-size: 1.1rem; }
body.layout-spacious .main-nav a { padding: 10px 18px; font-size: 1.05rem; }
body.layout-spacious .section-head h2 { font-size: 2.2rem; margin-bottom: 40px; }

/* 9. Rounded */
body.layout-rounded { --radius: 30px; }
body.layout-rounded .btn { border-radius: 99px; }
body.layout-rounded .main-nav a { border-radius: 99px; }
body.layout-rounded .card { border-radius: 30px; }
body.layout-rounded .brand img, body.layout-rounded .hero-logo img { border-radius: 50%; }

/* 10. Sharp */
body.layout-sharp { --radius: 0px; }
body.layout-sharp .btn { border-radius: 0; }
body.layout-sharp .main-nav a { border-radius: 0; }
body.layout-sharp .card { border-radius: 0; }
body.layout-sharp .brand img, body.layout-sharp .hero-logo img { border-radius: 0; }
body.layout-sharp .site-header { border-radius: 0 !important; }
body.layout-sharp input, body.layout-sharp select, body.layout-sharp textarea { border-radius: 0; }

/* 11. Bento Grid (Apple Stili) */
body.layout-bento { background: #f2f2f7; }
body.layout-bento .site-header { margin: 20px; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
body.layout-bento .section { padding: 40px 20px; }
body.layout-bento .card { border-radius: 24px; border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
body.layout-bento .hero { margin: 0 20px; border-radius: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
body.theme-dark.layout-bento { background: #000; }
body.theme-dark.layout-bento .card, body.theme-dark.layout-bento .site-header { background: #1c1c1e; box-shadow: none; border: none; }

/* 12. Glassmorphism */
body.layout-glass { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, transparent) 0%, color-mix(in srgb, var(--accent) 20%, transparent) 100%); background-attachment: fixed; }
body.layout-glass .site-header { background: rgba(255,255,255,0.2) !important; backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.4); }
body.layout-glass .card, body.layout-glass .hero { background: rgba(255,255,255,0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 8px 32px rgba(0,0,0,0.05); }
body.theme-dark.layout-glass .site-header, body.theme-dark.layout-glass .card { background: rgba(30,30,30,0.4) !important; border-color: rgba(255,255,255,0.05); color: #fff; }

/* 13. Neumorphism */
body.layout-neumorphism { background: #e0e5ec; --radius: 20px; }
body.layout-neumorphism .site-header { background: #e0e5ec; box-shadow: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5); border: none; margin-bottom: 20px; }
body.layout-neumorphism .card, body.layout-neumorphism .hero { background: #e0e5ec; box-shadow: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5); border: none; color: #4d4d4d; }
body.layout-neumorphism .hero h1, body.layout-neumorphism .hero p { color: #333; }
body.layout-neumorphism .btn, body.layout-neumorphism input, body.layout-neumorphism select, body.layout-neumorphism textarea { background: #e0e5ec; box-shadow: 6px 6px 10px 0 rgba(163,177,198,0.6), -6px -6px 10px 0 rgba(255,255,255,0.5); border: none; color: #333; }
body.layout-neumorphism .btn:hover { box-shadow: inset 4px 4px 8px 0 rgba(163,177,198,0.6), inset -4px -4px 8px 0 rgba(255,255,255,0.5); }
body.theme-dark.layout-neumorphism { background: #292d32; }
body.theme-dark.layout-neumorphism .site-header, body.theme-dark.layout-neumorphism .card, body.theme-dark.layout-neumorphism .hero, body.theme-dark.layout-neumorphism .btn { background: #292d32; box-shadow: 5px 5px 10px #1d1f23, -5px -5px 10px #353b41; color: #ccc; }
body.theme-dark.layout-neumorphism .hero h1, body.theme-dark.layout-neumorphism .hero p { color: #fff; }

/* 14. Neubrutalism */
body.layout-neubrutalism { background: #f4f4f0; }
body.layout-neubrutalism * { font-weight: 600; border-radius: 0 !important; }
body.layout-neubrutalism .site-header { border-bottom: 4px solid #000; box-shadow: 0 4px 0 #000; }
body.layout-neubrutalism .card { border: 4px solid #000; box-shadow: 6px 6px 0px #000; transition: transform 0.1s; }
body.layout-neubrutalism .card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0px #000; }
body.layout-neubrutalism .btn, body.layout-neubrutalism input { border: 3px solid #000; box-shadow: 4px 4px 0px #000; }
body.layout-neubrutalism .btn:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #000; }
body.theme-dark.layout-neubrutalism { background: #000; color: #fff; }
body.theme-dark.layout-neubrutalism .site-header, body.theme-dark.layout-neubrutalism .card, body.theme-dark.layout-neubrutalism .btn { border-color: #fff; box-shadow: 6px 6px 0px #fff; background: #111; }

/* 15. Fintech (Stripe SaaS Stili) */
body.layout-fintech { background: #f7f9fc; --radius: 8px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body.layout-fintech .site-header { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.05); box-shadow: none; }
body.layout-fintech .hero { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); padding-bottom: 120px; }
body.layout-fintech .card { background: #fff; border: none; box-shadow: 0 15px 35px rgba(50,50,93,0.1), 0 5px 15px rgba(0,0,0,0.07); transition: transform 0.2s, box-shadow 0.2s; }
body.layout-fintech .card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(50,50,93,0.12), 0 8px 20px rgba(0,0,0,0.09); }
body.layout-fintech .btn { box-shadow: 0 4px 6px rgba(50,50,93,0.11), 0 1px 3px rgba(0,0,0,0.08); font-weight: 600; }
body.layout-fintech .btn:hover { transform: translateY(-1px); box-shadow: 0 7px 14px rgba(50,50,93,0.1), 0 3px 6px rgba(0,0,0,0.08); }
body.theme-dark.layout-fintech { background: #0a2540; color: #a3acb9; }
body.theme-dark.layout-fintech .site-header { background: rgba(10,37,64,0.9); border-bottom-color: #1a1f36; }
body.theme-dark.layout-fintech .card { background: #1a1f36; box-shadow: 0 15px 35px rgba(0,0,0,0.2); }


/* 16. Off-Canvas (Gizli Dev Menü) */
body.layout-offcanvas .site-header { border-bottom: none; background: transparent; box-shadow: none; position: absolute; }
body.layout-offcanvas .main-nav { position: fixed; top: 0; left: -100vw; width: 100vw; height: 100vh; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); flex-direction: column; justify-content: center; align-items: center; z-index: 1000; transition: left 0.3s ease; }
body.layout-offcanvas .main-nav.open { left: 0; }
body.layout-offcanvas .main-nav a { font-size: 2rem; padding: 15px; }
body.layout-offcanvas .nav-toggle { display: block; position: fixed; top: 20px; right: 20px; z-index: 1001; }
body.theme-dark.layout-offcanvas .main-nav { background: rgba(0,0,0,0.95); }

/* 17. Floating Dock (macOS Alt Menü) */
body.layout-dock { padding-bottom: 80px; }
body.layout-dock .site-header { position: fixed; bottom: 20px; top: auto; left: 50%; transform: translateX(-50%); border-radius: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); width: auto; max-width: 90vw; padding: 0 20px; z-index: 1000; }
body.layout-dock .site-header .container { min-height: 60px; justify-content: center; }
body.layout-dock .brand span { display: none; }
body.layout-dock .main-nav { gap: 10px; }
body.layout-dock .nav-toggle { display: none; }

/* 19. Asymmetrical Masonry */
@media (min-width: 900px) {
  body.layout-masonry .grid, body.layout-masonry .grid-3, body.layout-masonry .grid-4 { display: block; column-count: 3; column-gap: 20px; }
  body.layout-masonry .card { break-inside: avoid; margin-bottom: 20px; display: inline-block; width: 100%; }
}

/* 21. Bottom Edge (Alta Yapışık Menü) */
body.layout-bottom { padding-bottom: 70px; }
body.layout-bottom .site-header { position: fixed; top: auto; bottom: 0; left: 0; width: 100%; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1000; }
body.layout-bottom .site-header .container { min-height: 70px; justify-content: space-around; }
body.layout-bottom .brand { display: none; }
body.layout-bottom .main-nav { width: 100%; justify-content: space-around; }

/* 23. Fullscreen Snap */
@media (min-width: 900px) {
  html { scroll-snap-type: y mandatory; height: 100vh; overflow-y: scroll; }
  body.layout-snap .hero, body.layout-snap .section { scroll-snap-align: start; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
}

/* 25. Command Palette Centric */
body.layout-command .site-header .container { justify-content: center; }
body.layout-command .main-nav { display: none; }
body.layout-command .site-header::after { content: 'Tüm siteyi arayın... (Sadece Gösterim)'; position: absolute; top: 15px; right: 20px; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }


/* === 18. Dynamic Hero (Değişen Dinamik Zemin) === */
@keyframes dynamicBgAnimSite {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
body.layout-split { background: linear-gradient(-45deg, var(--primary), var(--accent), #23d5ab, #23a6d5); background-size: 400% 400%; animation: dynamicBgAnimSite 15s ease infinite; color: #fff; }
body.layout-split .site-header { background: rgba(0,0,0,0.3); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.1); }
body.layout-split .site-header a, body.layout-split .site-header .brand { color: #fff !important; }
body.layout-split .main-nav a:hover { background: rgba(255,255,255,0.1); }
body.layout-split .hero { background: transparent !important; color: #fff; }
body.layout-split .hero::after { display: none; }
body.layout-split .card, body.layout-split .section.alt { background: rgba(255,255,255,0.1); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 8px 32px rgba(0,0,0,0.2); color: #fff; }

/* === 22. Magazine (Dergi Stili Büyük Tipografi) === */
body.layout-horizontal { background: #fdfaf6; color: #1a1a1a; font-family: 'Playfair Display', serif; }
body.layout-horizontal .site-header { background: transparent; border-bottom: 2px solid #1a1a1a; box-shadow: none; }
body.layout-horizontal .brand { font-size: 1.8rem; font-weight: bold; text-transform: uppercase; letter-spacing: 3px; }
body.layout-horizontal h1, body.layout-horizontal h2, body.layout-horizontal h3 { font-family: 'Playfair Display', serif; font-weight: bold; font-size: 3rem; letter-spacing: -1px; }
body.layout-horizontal .hero { background: #fdfaf6; color: #1a1a1a; padding: 100px 0; }
body.layout-horizontal .hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 30px; }
body.layout-horizontal .card { border: none; border-top: 4px solid #1a1a1a; border-radius: 0; background: transparent; box-shadow: none; padding: 20px 0; margin-bottom: 40px; }
body.layout-horizontal .hero::after { display: none; }


/* === 6. App Shell (Üst ve Yan Sabit, Orta Kayar) === */
@media (min-width: 900px) {
    body.layout-sidebar { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
    body.layout-sidebar .site-header { position: fixed; top: 0; left: 0; width: 100%; height: 70px; z-index: 100; border-bottom: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; }
    body.layout-sidebar .main-nav { position: fixed; top: 70px; left: 0; width: 260px; height: calc(100vh - 70px); background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; padding: 20px; }
    body.layout-sidebar main { margin-top: 70px; margin-left: 260px; height: calc(100vh - 70px); overflow-y: auto; width: calc(100% - 260px); }
    body.layout-sidebar .site-footer { margin-top: auto; }
}

/* === 20. Random Gallery (Rastgele Galeri Arkaplanı) === */
body.layout-dual-sidebar .site-header { background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.1); color: #fff; }
body.layout-dual-sidebar a, body.layout-dual-sidebar .brand { color: #fff !important; }
body.layout-dual-sidebar .main-nav a:hover { background: rgba(255,255,255,0.1); }
body.layout-dual-sidebar main { background: rgba(0,0,0,0.5); min-height: 100vh; padding-top: 50px; }
body.layout-dual-sidebar h1, body.layout-dual-sidebar h2, body.layout-dual-sidebar h3, body.layout-dual-sidebar p { color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
body.layout-dual-sidebar .card, body.layout-dual-sidebar .section.alt { background: rgba(255,255,255,0.1); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.5); color: #fff; }

/* === 24. Animated Flow (Hareketli Akışkan Geçişler) === */
@keyframes fluidFadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
body.layout-right .section, body.layout-right .hero { animation: fluidFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
body.layout-right .card { transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
body.layout-right .card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
body.layout-right a { transition: all 0.3s ease; }
body.layout-right .main-nav a:hover { transform: translateX(5px); }

/* Fix for Footer Contrast in all layouts */
.site-footer { background: #1a1a1a !important; color: #ffffff !important; }
.site-footer a { color: #ffffff !important; opacity: 0.8; }
.site-footer a:hover { opacity: 1; }
