/* ==========================================================================
   Ders Dışı Öğrenmeler I & II — Çankaya Üniversitesi
   Ana renkler: #30363c (koyu) ve #ffed02 (sarı)
   Mobil-önce (mobile-first) responsive tasarım
   ========================================================================== */

:root {
  --dark: #30363c;
  --dark-2: #262b30;
  --dark-3: #1d2126;
  --accent: #ffed02;
  --accent-soft: rgba(255, 237, 2, 0.14);
  --text: #3a4148;
  --text-soft: #5b646d;
  --on-dark: #e8ebec;
  --on-dark-soft: #b9c0c7;
  --bg: #f5f6f7;
  --white: #ffffff;
  --border: #e2e5e8;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(48, 54, 60, 0.07);
  --shadow-lg: 0 10px 30px rgba(48, 54, 60, 0.14);
  --container: 1080px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Erişilebilirlik: atla bağlantısı */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: var(--accent);
  padding: 10px 18px;
  z-index: 100;
  border-radius: 0 0 10px 0;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Üst çubuk / Menü
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  height: 50px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text .brand-uni {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.01em;
}

.brand-text .brand-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hamburger buton (yalnızca mobil) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: var(--dark);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--dark-2);
}

.nav-toggle .bar {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigasyon (mobil: katlanır panel) */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: none;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  padding: 10px 20px 16px;
}

.site-nav li + li {
  border-top: 1px solid var(--border);
}

.site-nav a {
  display: block;
  padding: 13px 10px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: var(--accent-soft);
}

.site-nav a.active {
  background: var(--accent);
  color: var(--dark);
}

.site-nav a.active::before {
  content: "●  ";
  font-size: 0.7em;
}

/* --------------------------------------------------------------------------
   Hero / Sayfa başlığı
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}

.hero::after {
  /* sağ üstte ince sarı daire dekoru */
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 237, 2, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border: 2px solid rgba(255, 237, 2, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 64px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.85rem, 5.5vw, 2.9rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.hero h1 .hl {
  color: var(--accent);
}

.hero-lead {
  margin-top: 16px;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--on-dark-soft);
  max-width: 58ch;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Küçük hero (iç sayfalar için) */
.hero--compact .hero-inner {
  padding: 44px 20px 40px;
}

/* --------------------------------------------------------------------------
   Butonlar
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}

.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(255, 237, 2, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--dark-2);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Bölümler
   -------------------------------------------------------------------------- */
.section {
  padding: 52px 0;
}

.section--tint {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 28px;
  max-width: 62ch;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-head h2 {
  color: var(--dark);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  line-height: 1.25;
  font-weight: 800;
}

.section-head p {
  margin-top: 10px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   Kartlar
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--dark);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* Önemli sayılar (istatistik) */
.stat-num {
  display: inline-block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  background: linear-gradient(
    transparent 62%,
    var(--accent) 62%,
    var(--accent) 92%,
    transparent 92%
  );
  padding: 0 4px;
  margin-bottom: 8px;
}

.stat-card .stat-sub {
  display: block;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   Etkinlik rozetleri (chips)
   -------------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.chips li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  box-shadow: var(--shadow);
}

.chips li::before {
  content: "✦ ";
  color: var(--dark);
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   Adım adımlar (1-2-3)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.step h3 {
  color: var(--dark);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   CTA bandı
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--dark);
  color: var(--on-dark);
  border-top: 4px solid var(--accent);
}

.cta-band .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 800;
}

.cta-band p {
  color: var(--on-dark-soft);
  max-width: 56ch;
}

/* --------------------------------------------------------------------------
   İçerik sayfaları (Bilgilendirme)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 78ch;
}

.prose h2 {
  color: var(--dark);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 14px;
}

.prose ul {
  list-style: none;
  margin: 10px 0 18px;
}

.prose ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px dashed var(--border);
}

.prose ul li:last-child {
  border-bottom: none;
}

.prose ul li::before {
  content: "▪";
  position: absolute;
  left: 6px;
  color: var(--dark);
  background: var(--accent);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  top: 9px;
}

.callout {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 18px 0;
  box-shadow: var(--shadow);
  color: var(--text);
}

.callout strong {
  color: var(--dark);
}

.callout--warn {
  border-left-color: var(--dark);
}

/* --------------------------------------------------------------------------
   SSS — Akordeon
   -------------------------------------------------------------------------- */
.faq-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.faq-tools .btn {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--dark);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.faq-item[open] .faq-num {
  background: var(--accent);
  color: var(--dark);
}

.faq-answer {
  padding: 0 18px 18px 60px;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.faq-answer p {
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  list-style: none;
  margin: 8px 0;
}

.faq-answer ul li {
  position: relative;
  padding: 4px 0 4px 22px;
}

.faq-answer ul li::before {
  content: "▪";
  position: absolute;
  left: 4px;
  color: var(--dark);
}

.faq-answer .em {
  font-weight: 800;
  color: var(--dark);
  background: var(--accent);
  padding: 1px 7px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Etkinlik sistemi sayfası: sistem kutusu
   -------------------------------------------------------------------------- */
.system-box {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.system-box .system-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.system-box h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.system-box p {
  color: var(--on-dark-soft);
  max-width: 46ch;
  margin: 0 auto 20px;
  font-size: 0.97rem;
}

.system-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--on-dark-soft);
}

/* --------------------------------------------------------------------------
   Alt bilgi (footer)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark-3);
  color: var(--on-dark-soft);
  border-top: 4px solid var(--accent);
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 44px;
  width: auto;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
}

.footer-brand span {
  color: var(--white);
  font-weight: 700;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
}

.footer-nav a {
  color: var(--on-dark-soft);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   Odak görünür (erişilebilirlik)
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--dark);
  outline-offset: 2px;
}

.hero :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible,
.system-box :focus-visible {
  outline-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Responsive genişletme
   -------------------------------------------------------------------------- */
@media (min-width: 480px) {
  .card-grid--stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 760px) {
  /* Masaüstü menü */
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
  }

  .site-nav li + li {
    border-top: none;
  }

  .site-nav a {
    padding: 9px 14px;
    font-size: 0.95rem;
    border-radius: 999px;
  }

  .site-nav a.active::before {
    content: none;
  }

  .section {
    padding: 68px 0;
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-band .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
  }

  .footer-copy {
    border-top: none;
    padding-top: 0;
    margin-left: auto;
  }

  .hero-inner {
    padding: 84px 20px;
  }

  .hero--compact .hero-inner {
    padding: 56px 20px;
  }
}

@media (min-width: 1000px) {
  .hero h1 {
    max-width: 22ch;
  }
}

/* Hareket azaltma tercihine saygı */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
