/* ==========================================================================
   Çatkapı Tema — koyu lacivert zemin, turkuaz ana renk, turuncu vurgu
   (Mevcut Çatkapı sitesinin görsel kimliği). Sadece ziyaretçi sayfalarında
   (includes/header.php) yüklenir; yönetim ve bağışçı panelleri açık kalır.
   ========================================================================== */
:root {
    --primary-color: #14B8A6;
    --primary-light: #2DD4BF;
    --secondary-color: #F97316;
    --text-dark: #F8FAFC;
    --text-light: #94A3B8;
    --bg-light: #020617;
    --surface: #0F172A;
    --surface-2: #0B1222;
    --surface-3: #1E293B;
    --line: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
    --ck-accent: #F97316;
    --ck-accent-hover: #FB923C;
    --hx-lime: #14B8A6;
    --hx-gold: #F97316;
}
html { color-scheme: dark; }
body { background-color: #020617; color: #F8FAFC; }

/* Logo: koyu zeminde kendi renkleriyle */
.logo img, .navbar.scrolled .logo img { filter: none; }

/* Üst menü */
.navbar.scrolled { background: rgba(2, 6, 23, 0.92); border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px -15px rgba(0,0,0,.6); }
.navbar.scrolled .nav-link, .navbar.scrolled .logo { color: #F8FAFC; }
.navbar.scrolled .nav-link:hover, .nav-link:hover, .nav-link.active { color: var(--primary-light); }

/* Slider: vurgulu kelime turuncu (eski Çatkapı hero'su gibi) */
.hx-title span { color: var(--ck-accent); }

/* Bölümler */
.stats-section { background: radial-gradient(1200px 400px at 10% 0%, rgba(20,184,166,.18), transparent 60%), #0B1222; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-card { background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.cta { background: radial-gradient(900px 400px at 50% 0%, rgba(20,184,166,.25), transparent 70%), linear-gradient(180deg, #0B1222, #020617); border-top: 1px solid var(--line); }
.hx-trust-item { background: var(--surface); border-color: var(--line); }
.hx-trust-item h3 { color: #F8FAFC; }
.hx-trust-item p, .hx-step p { color: var(--text-light); }
.hx-step h3 { color: #F8FAFC; }
.section-title, .hx-journey .section-title { color: #F8FAFC; }
.news-section, .faq-section, .projects { background: transparent; }
.project-card, .news-card, .faq-item { background: var(--surface); border: 1px solid var(--line); }
.project-title, .news-title, .faq-question span { color: #F8FAFC; }

/* Butonlar: bağış = turuncu, diğer = turkuaz */
.btn-secondary, .btn-donate, .nav-donate, .hx-btn-donate { background: var(--ck-accent); border-color: var(--ck-accent); color: #fff; }
.btn-secondary:hover, .btn-donate:hover, .nav-donate:hover { background: var(--ck-accent-hover); border-color: var(--ck-accent-hover); }

/* Form alanları */
input, select, textarea { color-scheme: dark; }
.form-control, .form-group input, .form-group select, .form-group textarea { background: #0B1222; color: #F8FAFC; border-color: var(--line); }
.form-control::placeholder { color: #64748B; }

/* Yasal sayfa künye kutusu */
.legal-meta { background: var(--surface); color: var(--text-light); }

/* İç sayfa başlıkları: eski Çatkapı gibi koyu, görselli */
html body .page-header, html body .detail-header {
    background: linear-gradient(180deg, rgba(2,6,23,.75) 0%, rgba(2,6,23,.92) 70%, #020617 100%), url('../img/hero-bg.png') center/cover no-repeat;
    border-bottom: 1px solid var(--line);
}
html body .page-header h1 { color: #F8FAFC; }
html body .page-header p { color: #94A3B8; opacity: 1; }

/* Alt bilgi */
.footer, footer { background: #0F172A; border-top: 1px solid var(--line); }

/* Koyu zeminde okunabilirlik */
.content-section h2, .content-section h3, .about-text h2 { color: #F8FAFC; }
.bg-light { background-color: #0B1222 !important; }
.timeline-content, .team-member { background: var(--surface) !important; }
.timeline-item::after { background-color: #020617 !important; }
.hx-feature-cta { background: var(--ck-accent); color: #fff; }


/* ==========================================================================
   Ana sayfa slider'ı — eski Çatkapı hero tasarımı (solda metin, sağda hızlı bağış)
   ========================================================================== */
.ck-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 175px 0 90px; overflow: hidden; background: #020617; color: #F8FAFC; }
.ck-hero-bgs { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ck-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out; will-change: opacity, transform; }
.ck-slide-bg.active { opacity: 1; z-index: 1; transform: scale(1.04); animation: ckKenBurns var(--ck-dur, 7000ms) linear forwards; }
@keyframes ckKenBurns { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.ck-hero-overlay { position: absolute; inset: 0; z-index: 2; background:
    radial-gradient(circle at 85% 15%, rgba(20,184,166,.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(249,115,22,.10) 0%, transparent 40%),
    linear-gradient(90deg, #020617 0%, rgba(2,6,23,.86) 48%, rgba(2,6,23,.45) 100%); }
.ck-hero-overlay::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(180deg, transparent, #020617); }
.ck-hero-pattern { position: absolute; inset: 0; z-index: 2; opacity: .08; background-image: radial-gradient(#14B8A6 1px, transparent 1px); background-size: 30px 30px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); mask-image: linear-gradient(90deg, #000, transparent 60%); }
.ck-hero-container { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .ck-hero-container { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }

/* Slayt metinleri ve kademeli giriş animasyonu */
.ck-slides { display: grid; max-width: 620px; }
.ck-slide-text { grid-column: 1; grid-row: 1; visibility: hidden; pointer-events: none; }
.ck-slide-text.active { visibility: visible; pointer-events: auto; z-index: 2; }
.ck-anim { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.ck-slide-text.active .ck-anim { opacity: 1; transform: none; filter: none; transition: opacity .7s cubic-bezier(.22,1,.36,1) var(--d, 0ms), transform .7s cubic-bezier(.22,1,.36,1) var(--d, 0ms), filter .7s ease var(--d, 0ms); }

.ck-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem; background: rgba(255,255,255,.96); border-radius: 9999px; font-size: .875rem; font-weight: 600; color: #0F766E; margin-bottom: 1.5rem; box-shadow: 0 8px 24px -10px rgba(0,0,0,.5); }
.ck-badge i { font-size: .85rem; }
.ck-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #F97316; animation: ckPulseDot 2s infinite; }
@keyframes ckPulseDot { 0% { box-shadow: 0 0 0 0 rgba(249,115,22,.4); } 70% { box-shadow: 0 0 0 6px rgba(249,115,22,0); } 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); } }

.ck-hero-title { font-family: 'Outfit', sans-serif; font-size: 3rem; font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 1.5rem; color: #F8FAFC; text-wrap: balance; }
@media (min-width: 768px) { .ck-hero-title { font-size: 4rem; } }
@media (min-width: 1200px) { .ck-hero-title { font-size: 5rem; } }
.ck-hero-title .ck-accent, .ck-hero-title .text-accent, .ck-hero-title .text-gradient { background: linear-gradient(135deg, #F97316 0%, #ff9800 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #F97316; }
.ck-hero-subtitle { font-size: 1.125rem; color: #A5B4C8; margin: 0 0 2.25rem; max-width: 540px; line-height: 1.8; }
@media (min-width: 768px) { .ck-hero-subtitle { font-size: 1.25rem; } }

/* Butonlar */
.ck-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.25rem; }
.ck-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: 1rem 2rem; border-radius: 9999px; font-family: 'Outfit', sans-serif; font-size: 1.125rem; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: transform .25s ease, background .25s ease, box-shadow .25s ease, filter .25s ease, color .25s ease; text-decoration: none; }
.ck-btn-primary { --btn: #14B8A6; background: var(--btn); border-color: var(--btn); color: #fff; box-shadow: 0 12px 30px -12px var(--btn); }
.ck-btn-primary:hover { filter: brightness(1.12); transform: translateY(-2px); }
.ck-btn-arrow { font-size: .9rem; transition: transform .25s ease; }
.ck-btn-primary:hover .ck-btn-arrow { transform: translateX(4px); }
.ck-btn-outline { background: rgba(2,6,23,.35); border-color: #14B8A6; color: #2DD4BF; backdrop-filter: blur(6px); }
.ck-btn-outline:hover { background: rgba(20,184,166,.14); color: #fff; transform: translateY(-2px); }
.ck-btn-accent { background: linear-gradient(135deg, #F97316, #FB923C); border-color: #F97316; color: #fff; box-shadow: 0 14px 30px -12px rgba(249,115,22,.8); }
.ck-btn-accent:hover { filter: brightness(1.08); transform: translateY(-2px); }
.ck-btn-block { width: 100%; }

/* Kontroller: sayaç, ilerleme çubuklu noktalar, oklar */
.ck-hero-controls { display: flex; align-items: center; gap: 1.5rem; }
.ck-counter { font-family: 'Outfit', sans-serif; font-size: .95rem; color: #64748B; letter-spacing: .04em; min-width: 62px; }
.ck-counter b { color: #F8FAFC; font-size: 1.35rem; font-weight: 700; }
.ck-dots { display: flex; gap: .5rem; align-items: center; }
.ck-dot { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.28); cursor: pointer; overflow: hidden; transition: width .35s ease, background .3s ease; }
.ck-dot:hover { background: rgba(255,255,255,.5); }
.ck-dot.active { width: 44px; background: rgba(255,255,255,.18); }
.ck-dot-fill { position: absolute; inset: 0; background: #14B8A6; border-radius: inherit; transform: scaleX(0); transform-origin: left; }
.ck-dot.active .ck-dot-fill { transform: scaleX(1); }
.ck-dot.active.run .ck-dot-fill { animation: ckDotFill var(--ck-dur, 7000ms) linear forwards; }
@keyframes ckDotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ck-arrows { display: flex; gap: .5rem; }
.ck-arrow { width: 44px; height: 44px; border-radius: 50%; background: rgba(15,23,42,.6); border: 1px solid rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s ease; backdrop-filter: blur(10px); }
.ck-arrow:hover { background: #14B8A6; border-color: #14B8A6; transform: translateY(-2px); }
.ck-arrow:focus-visible, .ck-dot:focus-visible, .ck-amount:focus-visible { outline: 2px solid #2DD4BF; outline-offset: 3px; }

/* Rakamlar */
.ck-hero-stats { display: flex; gap: 2.25rem; flex-wrap: wrap; margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.1); }
.ck-stat { display: flex; align-items: center; gap: .8rem; }
.ck-stat-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(20,184,166,.12); color: #2DD4BF; border: 1px solid rgba(20,184,166,.25); }
.ck-stat > div { display: flex; flex-direction: column; }
.ck-stat-value { font-family: 'Outfit', sans-serif; font-size: 1.85rem; font-weight: 700; color: #F8FAFC; line-height: 1; margin-bottom: .25rem; font-variant-numeric: tabular-nums; }
.ck-stat-label { font-size: .85rem; font-weight: 500; color: #94A3B8; }

/* Hızlı bağış kutusu */
.ck-hero-widget { width: 100%; max-width: 480px; margin: 0 auto; }
.ck-widget-card { position: relative; background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(11,18,34,.96)); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid rgba(255,255,255,.14); border-radius: 1.75rem; padding: 2rem; box-shadow: 0 30px 70px -20px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.06); }
.ck-widget-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(20,184,166,.7), transparent 35%, transparent 65%, rgba(249,115,22,.55)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ck-widget-header { text-align: center; margin-bottom: 1.5rem; }
.ck-widget-ic { width: 52px; height: 52px; margin: 0 auto .75rem; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); box-shadow: 0 10px 24px -8px rgba(20,184,166,.8); }
.ck-widget-header h3 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; margin: 0 0 .25rem; color: #F8FAFC; }
.ck-widget-header p { margin: 0; font-size: .875rem; color: #CBD5E1; }
.ck-field { margin-bottom: 1.35rem; }
.ck-field label { display: block; font-size: .875rem; font-weight: 600; color: #F8FAFC; margin-bottom: .5rem; }
.ck-select-wrap { position: relative; }
.ck-select-wrap select { width: 100%; appearance: none; -webkit-appearance: none; background: rgba(2,6,23,.55); border: 1px solid rgba(255,255,255,.12); border-radius: .85rem; padding: .85rem 2.5rem .85rem 1rem; font: inherit; font-size: 1rem; color: #F8FAFC; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ck-select-wrap select:focus { outline: none; border-color: #14B8A6; box-shadow: 0 0 0 3px rgba(20,184,166,.18); }
.ck-select-wrap i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: #94A3B8; font-size: .85rem; }
.ck-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.ck-amount { background: rgba(30,41,59,.8); border: 1px solid rgba(255,255,255,.16); border-radius: .85rem; padding: .8rem 0; font: inherit; font-weight: 600; font-size: 1rem; color: #F8FAFC; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,.3); transition: all .2s ease; }
.ck-amount:hover { background: rgba(20,184,166,.25); border-color: #2DD4BF; }
.ck-amount.active { background: #14B8A6; border-color: #2DD4BF; color: #fff; font-weight: 800; box-shadow: 0 0 22px rgba(20,184,166,.6); transform: translateY(-2px); }
.ck-custom-amount { position: relative; display: flex; align-items: center; margin-top: .6rem; }
.ck-custom-amount[hidden] { display: none; }
.ck-custom-amount span { position: absolute; left: 1rem; color: #94A3B8; font-weight: 600; }
.ck-custom-amount input { width: 100%; padding: .8rem 1rem .8rem 2rem; background: rgba(2,6,23,.55); border: 1px solid #14B8A6; border-radius: .85rem; font: inherit; font-weight: 600; color: #F8FAFC; }
.ck-custom-amount input:focus { outline: none; box-shadow: 0 0 0 3px rgba(20,184,166,.18); }
.ck-secure { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1rem; margin: .9rem 0 0; font-size: .75rem; color: #94A3B8; }
.ck-secure i { color: #10B981; margin-right: .2rem; }

/* Kutudaki öne çıkan proje */
.ck-featured { display: block; margin-top: 1.35rem; padding: 1rem 1.1rem; border-radius: 1rem; background: rgba(2,6,23,.55); border: 1px solid rgba(255,255,255,.08); text-decoration: none; color: inherit; transition: border-color .25s, transform .25s; }
.ck-featured:hover { border-color: rgba(20,184,166,.55); transform: translateY(-2px); }
.ck-featured-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .45rem; }
.ck-featured-tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; }
.ck-live { width: 7px; height: 7px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: ckLive 1.8s infinite; }
@keyframes ckLive { 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.ck-featured-pct { font-family: 'Outfit', sans-serif; font-weight: 700; color: #2DD4BF; }
.ck-featured-title { font-weight: 600; color: #F8FAFC; margin-bottom: .6rem; line-height: 1.35; }
.ck-featured-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.ck-featured-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14B8A6, #2DD4BF); }
.ck-featured-meta { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .78rem; color: #94A3B8; }
.ck-featured-meta b { color: #E2E8F0; }

/* Aşağı kaydır */
.ck-scroll { position: absolute; left: 50%; bottom: 22px; z-index: 4; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; }
.ck-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: ckWheel 1.8s ease-in-out infinite; }
@keyframes ckWheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1199px) { .ck-scroll { display: none; } }
@media (max-width: 991px) {
    .ck-hero { min-height: auto; padding: 130px 0 50px; }
    .ck-hero-title { font-size: 2.6rem; }
    .ck-hero-subtitle { font-size: 1.05rem; margin-bottom: 1.75rem; }
    .ck-btn { padding: .85rem 1.5rem; font-size: 1rem; }
    .ck-hero-stats { gap: 1.25rem; }
    .ck-stat-ic { width: 38px; height: 38px; border-radius: 12px; }
    .ck-stat-value { font-size: 1.45rem; }
    .ck-widget-card { padding: 1.5rem; }
}
@media (max-width: 420px) {
    .ck-amounts { grid-template-columns: repeat(2, 1fr); }
    .ck-hero-controls { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ck-slide-bg, .ck-anim, .ck-slide-text.active .ck-anim { transition: none; animation: none; filter: none; }
    .ck-badge-dot, .ck-live, .ck-scroll span { animation: none; }
}
@media (max-width: 560px) {
    .ck-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
    .ck-stat-ic { display: none; }
}
