/* ============================================================
   PsykoLink — BDT Alıştırmaları Sayfası
   Design System: Psiko Mavi & Mint Paleti
   Fonts: Poppins (headers) + Inter (body)
   ============================================================ */

:root {
  --primary-green: #10B981;
  --primary-blue: #3B82F6;
  --accent-purple: #6C63FF;
  --success-green: #22C55E;
  --warning-orange: #F59E0B;
  --gradient-blue-green: linear-gradient(135deg, #27AE60, #3498DB);
  --soft-gray: #F9FAFB;
  --dark-navy: #0C0F1A;
  --text-black: #1F2937;
  --text-muted: #4B5563;
  --text-light-gray: #9CA3AF;
  --white: #FFFFFF;
  --shadow: 0 25px 60px -30px rgba(14, 22, 40, 0.6);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: clamp(16rem, 90vw, 1200px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-black);
  background: var(--soft-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.inner {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: cover;
  border-radius: 25%;
  box-shadow:
    0 4px 14px -2px rgba(59, 130, 246, 0.45),
    0 2px 6px -1px rgba(14, 22, 40, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.1);
  box-shadow:
    0 8px 22px -4px rgba(59, 130, 246, 0.55),
    0 4px 10px -2px rgba(14, 22, 40, 0.3);
}

.logo-text {
  font-size: 1.1rem;
  color: var(--text-black);
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  color: var(--text-black);
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-blue);
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--primary-green) !important;
  color: white !important;
  box-shadow: 0 12px 30px -18px var(--primary-green);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--success-green) !important;
  color: white !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-black);
  margin-bottom: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Nav backdrop (mobile drawer overlay) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-backdrop.is-open { display: block; }

/* ============================================================
   BADGE & GRADIENT TEXT
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #B45309;
}

.badge i { font-size: 0.75rem; }

.gradient-text {
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  color: white;
  box-shadow: 0 14px 36px -16px rgba(245, 158, 11, 0.55);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -18px rgba(245, 158, 11, 0.65);
}

.btn.ghost {
  background: transparent;
  color: var(--text-black);
  border: 1.5px solid rgba(59, 130, 246, 0.35);
}

.btn.ghost:hover {
  background: rgba(59, 130, 246, 0.06);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

/* ============================================================
   HERO
   ============================================================ */

.ex-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(
    165deg,
    rgba(245, 158, 11, 0.05) 0%,
    rgba(239, 68, 68, 0.04) 50%,
    rgba(59, 130, 246, 0.04) 100%
  );
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.4rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.15;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hstat__num {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hstat__label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-light-gray);
  text-align: center;
}

.hstat-div {
  width: 1px;
  height: 2rem;
  background: rgba(14, 22, 40, 0.1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem 1.4rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-note i {
  color: var(--warning-orange);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Exercise preview card (hero right) */
.hero-visual {
  position: relative;
}

.ex-preview-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow:
    0 8px 40px -10px rgba(14, 22, 40, 0.12),
    0 2px 8px -2px rgba(14, 22, 40, 0.06);
  overflow: hidden;
}

.epc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.06));
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}

.epc-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.epc-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-black);
  font-family: "Poppins", sans-serif;
}

.epc-list {
  list-style: none;
  padding: 0.75rem 0;
  margin: 0;
}

.epc-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(14, 22, 40, 0.04);
  transition: background 0.2s ease;
}

.epc-list li:last-child { border-bottom: none; }

.epc-list li:hover {
  background: rgba(245, 158, 11, 0.04);
}

.epc-num {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  color: var(--text-light-gray);
  width: 1.6rem;
  text-align: right;
}

.epc-num.highlight {
  color: var(--warning-orange);
}

/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */

.ex-category {
  padding: 5.5rem 0;
  background: var(--soft-gray);
}

.ex-category--white {
  background: #fff;
}

.cat-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cat-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.cat-lead {
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cat-badge--green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.cat-badge--blue {
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.cat-badge--purple {
  background: rgba(108, 99, 255, 0.1);
  color: #5B21B6;
  border: 1px solid rgba(108, 99, 255, 0.25);
}

.cat-badge--orange {
  background: rgba(245, 158, 11, 0.1);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ============================================================
   EXERCISE GRID & CARDS
   ============================================================ */

.ex-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ex-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(14, 22, 40, 0.07);
  box-shadow:
    0 4px 20px -6px rgba(14, 22, 40, 0.08),
    0 1px 4px -1px rgba(14, 22, 40, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ex-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px -12px rgba(14, 22, 40, 0.12),
    0 4px 12px -4px rgba(14, 22, 40, 0.06);
}

.ex-category--white .ex-card {
  background: var(--soft-gray);
  border-color: rgba(14, 22, 40, 0.05);
}

.ex-card--highlight {
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  background: linear-gradient(160deg, #fffbf0 0%, #fff 100%);
}

.ex-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ex-num {
  font-size: 0.75rem;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  color: var(--text-light-gray);
  letter-spacing: 0.05em;
}

.ex-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.ex-icon--green {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}

.ex-icon--blue {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: white;
}

.ex-icon--purple {
  background: linear-gradient(135deg, #6C63FF, #9333EA);
  color: white;
}

.ex-icon--orange {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: white;
}

.ex-card__title {
  font-size: 1.1rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--text-black);
  line-height: 1.3;
}

.ex-card__desc {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

.ex-card__desc em {
  font-style: italic;
  color: var(--text-black);
  font-weight: 500;
}

/* Gains section */
.ex-gains {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.ex-category--white .ex-gains {
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.12);
}

.ex-gains__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-green);
  margin-bottom: 0.6rem;
}

.ex-category--white .ex-gains__title {
  color: var(--primary-blue);
}

.ex-gains ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ex-gains ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ex-gains ul li i {
  color: #047857;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.ex-category--white .ex-gains ul li i {
  color: #1D4ED8;
}

/* Example comparison block (Alternatif Düşünce / Reframing) */
.ex-example {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ex-ex-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
}

.ex-ex-row--neg {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.ex-ex-row--pos {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.ex-ex-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-gray);
  margin-bottom: 0.1rem;
}

.ex-ex-row--neg .ex-ex-label { color: #EF4444; }
.ex-ex-row--pos .ex-ex-label { color: var(--primary-green); }

.ex-ex-row span:last-child {
  color: var(--text-muted);
  font-style: italic;
}

.ex-ex-arrow {
  display: flex;
  justify-content: center;
  color: var(--text-light-gray);
  font-size: 0.85rem;
  padding: 0.1rem 0;
}

/* Self-questions block (Öz-Şefkat) */
.ex-selfq {
  background: rgba(108, 99, 255, 0.05);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.ex-selfq__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-purple);
  margin-bottom: 0.6rem;
}

.ex-selfq ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ex-selfq ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}

.ex-selfq ul li i {
  color: #5B21B6;
  font-size: 0.78rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* App note footer */
.ex-app-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: auto;
}

.ex-app-note i {
  color: #1D4ED8;
  margin-top: 0.2rem;
  flex-shrink: 0;
  font-size: 0.88rem;
}

/* ============================================================
   ETHICS BANNER
   ============================================================ */

.ethics-banner {
  background: var(--dark-navy);
  padding: 3.5rem 0;
}

.ethics-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.ethics-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #D97706, #F59E0B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.ethics-text {
  flex: 1;
  min-width: 280px;
}

.ethics-text h2 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.6rem;
}

.ethics-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.ethics-text strong {
  color: rgba(255, 255, 255, 0.92);
}

.ethics-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}

.ethics-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--dark-navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.75rem;
}

.logo-text-footer {
  font-size: 1.1rem;
  color: white;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.02em;
}

.site-footer h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer ul a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.site-footer ul a:hover {
  color: white;
}

.footer-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ex-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    z-index: 999;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
  }

  .ex-hero {
    padding: 3rem 0 2.5rem;
  }

  .ex-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .ethics-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .cat-header h2 {
    font-size: 1.45rem;
  }

  .ex-card {
    padding: 1.5rem;
  }
}
