/* ═══════════════════════════════════════════
   YeşilKOBİ Design System
   Tone: Clean editorial, nature-tech hybrid
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --bg: #f6f9f4;
  --bg-card: #ffffff;
  --bg-dark: #0d1f12;
  --bg-accent: #e8f5e1;
  --border: #d4e4d0;
  --border-light: #e8efe5;
  --text: #1a2e1e;
  --text-muted: #5a7460;
  --text-light: #8a9f8e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --gold: #d97706;
  --gold-bg: #fffbeb;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --red: #dc2626;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-lg: 16px;
  --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --max-w: 1140px;
}

/* ─── KEYFRAMES ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── REVEAL ANIMATION UTILITIES ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero, .hero::after { animation: none !important; }
}

/* ─── GLOBAL ─── */
html { scroll-behavior: smooth; }
::selection { background: var(--green-100); color: var(--green-800); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-700); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--green-800); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ─── ICON UTILITY ─── */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}
.icon svg { width: 100%; height: 100%; fill: currentColor; }

/* ─── NAV ─── */
.nav {
  background: var(--bg-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--green-600); }
.nav-links {
  display: flex;
  gap: 4px;
  transition: opacity 0.3s, transform 0.3s;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.mobile-nav {
  display: none;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 14px;
}
.mobile-nav a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}
.mobile-nav a.active { background: rgba(255,255,255,0.1); }
.mobile-nav.open { display: block; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.08); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(-45deg, #0d1f12, #1a3a20, #0f2918, #162e1c);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,0.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  position: relative;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--green-600);
}
.gradient-text {
  background: linear-gradient(135deg, var(--green-600), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(15px, 2vw, 17px);
  color: rgba(255,255,255,0.65);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--green-600);
  font-family: var(--mono);
  text-shadow: 0 0 20px rgba(22,163,74,0.3);
}
.hero-stat small {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* ─── DISCLAIMER BANNER ─── */
.disclaimer-banner {
  background: var(--gold-bg);
  border-bottom: 1px solid #fde68a;
  padding: 10px 0;
  font-size: 12px;
  color: var(--gold);
  text-align: center;
  font-weight: 500;
}

/* ─── SECTIONS ─── */
.section {
  padding: 48px 0;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.programs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.programs-count {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-800);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.programs-count strong {
  font-family: var(--mono);
  margin-right: 4px;
}

.programs-tip {
  margin: -10px 0 18px;
  color: var(--text-light);
  font-size: 12px;
}

/* ─── FILTER TABS ─── */
.filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.filter-tab {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-snap-align: start;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}
.filter-tab.active {
  box-shadow: 0 4px 12px rgba(22,163,74,0.2);
}

/* ─── PROGRAM CARDS ─── */
.program-grid {
  display: grid;
  gap: 16px;
}
.program-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-600), #4ade80);
  opacity: 0;
  transition: opacity 0.3s;
}
.program-card:hover {
  box-shadow: 0 12px 40px rgba(22,163,74,0.12), 0 4px 16px rgba(0,0,0,0.06);
  border-color: rgba(22,163,74,0.3);
  transform: translateY(-4px);
}
.program-card:hover::before { opacity: 1; }
@supports not (backdrop-filter: blur(10px)) {
  .program-card { background: #fff; }
}

/* Card filter animations */
.program-card.hiding {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}
.program-card.showing {
  animation: fadeInUp 0.4s ease forwards;
}
.program-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.program-bank-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
}
.program-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.program-type-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
  white-space: nowrap;
}
.program-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.program-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.program-feature {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 6px;
  color: var(--text);
  font-weight: 500;
}
.program-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.program-meta-item {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}
.program-meta-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.program-meta-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.program-ifi {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 10px;
  background: var(--blue-bg);
  color: var(--blue);
  border-radius: 6px;
  font-weight: 600;
  margin-bottom: 12px;
}
.program-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 11px 20px;
  background: var(--green-700);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(22,163,74,0.2);
}
.program-cta:hover {
  background: var(--green-800);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(22,163,74,0.3);
}

/* ─── BANK CARDS (sidebar/listing) ─── */
.bank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.bank-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bank-chip:hover {
  border-color: var(--green-600);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  color: var(--text);
  transform: translateY(-2px);
}
.bank-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bank-chip-count {
  margin-left: auto;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-light);
}

/* ─── GOVERNMENT SUPPORT CARDS ─── */
.gov-card {
  background: linear-gradient(135deg, rgba(255,251,235,0.5), rgba(255,255,255,0.9));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  border-left: 4px solid var(--gold);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.gov-card:hover {
  box-shadow: 0 8px 32px rgba(217,119,6,0.08);
  transform: translateY(-2px);
}
.gov-card-source {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 6px;
}
.gov-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.gov-card-type {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--gold-bg);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-light);
  background: #fff;
}

.blog-table th,
.blog-table td {
  border: 1px solid var(--border-light);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  color: var(--text);
  vertical-align: top;
}

.blog-table th {
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 700;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-dark);
  padding: 48px 0 24px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--green-600), var(--gold), var(--green-600)) 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--green-600);
}
.footer a {
  color: rgba(255,255,255,0.5);
  display: block;
  min-height: 40px;
  padding: 8px 0;
  font-size: 13px;
  transition: color 0.2s, padding-left 0.2s;
}
.footer a:hover {
  color: var(--green-600);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 11px;
  line-height: 1.8;
}
.footer-disclaimer {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}
.footer-more-btn {
  display: none;
  margin-top: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
}

/* ─── LEGAL PAGES ─── */
.legal-content {
  max-width: 720px;
  padding: 48px 20px;
  margin: 0 auto;
}
.legal-content h1 { font-size: 28px; margin-bottom: 8px; letter-spacing: -0.02em; }
.legal-content h2 { font-size: 18px; margin-top: 32px; margin-bottom: 12px; color: var(--green-800); }
.legal-content h3 { font-size: 15px; margin-top: 20px; margin-bottom: 8px; }
.legal-content p { margin-bottom: 12px; font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.legal-content ul { padding-left: 20px; margin-bottom: 12px; }
.legal-content li { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin-bottom: 4px; }
.legal-date { font-size: 12px; color: var(--text-light); margin-bottom: 32px; }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  padding: 16px 20px;
  z-index: 999;
  display: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-banner.show { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cookie-banner p { color: rgba(255,255,255,0.7); font-size: 13px; margin: 0; }
.cookie-banner a { color: var(--green-600); }
.cookie-btn {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.cookie-btn-accept { background: var(--green-700); color: #fff; }
.cookie-btn-accept:hover { background: var(--green-800); }
.cookie-btn-reject { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.cookie-btn-reject:hover { background: rgba(255,255,255,0.15); }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(22,163,74,0.3);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--green-800);
  transform: translateY(-2px);
}

/* ─── 404 ─── */
.page-404 {
  text-align: center;
  padding: 80px 20px;
}
.page-404 h1 { font-size: 72px; color: var(--green-600); font-family: var(--mono); }
.page-404 p { font-size: 18px; color: var(--text-muted); margin: 12px 0 24px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero { padding: 44px 0 40px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
  .bank-list { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 36px 0 32px; }
  .hero p { font-size: 14px; margin-bottom: 16px; }
  .hero::after { width: 200px; height: 200px; right: -5%; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .bank-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .programs-header { flex-direction: column; align-items: flex-start; }
  .programs-count { white-space: normal; }
  .program-card { padding: 18px; }
  .program-card-header { flex-direction: column; }
  .program-meta-item { min-width: 120px; }
  .blog-table th, .blog-table td { font-size: 12px; padding: 8px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 14px; }
  .section { padding: 36px 0; }
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 13px; margin-bottom: 20px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .program-meta { gap: 12px; }
  .program-meta-item { min-width: 100%; }
  .program-cta { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .cookie-banner.show { align-items: stretch; }
  .cookie-btn { width: 100%; }
  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
  .footer-disclaimer { max-height: 80px; overflow: hidden; position: relative; }
  .footer-disclaimer.expanded { max-height: none; }
  .footer-more-btn { display: inline-flex; align-items: center; justify-content: center; }
  .blog-table, .blog-table thead, .blog-table tbody, .blog-table th, .blog-table td, .blog-table tr { display: block; }
  .blog-table thead { display: none; }
  .blog-table tr { margin-bottom: 10px; border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; }
  .blog-table td { border: none; border-bottom: 1px solid var(--border-light); }
  .blog-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: .3px;
  }
  .blog-table td:last-child { border-bottom: none; }
}
