/* ==========================================================
   METUSAR — ortak stil dosyası
   Renkleri değiştirmek için sadece :root içindeki değişkenleri düzenleyin.
   ========================================================== */
:root {
  --bg: #0b0f17;
  --bg-2: #111827;
  --card: #151c2b;
  --line: #243046;
  --text: #e7ecf3;
  --muted: #9aa6b8;
  --accent: #e3262f;      /* ODTÜ kırmızısı */
  --accent-2: #ff7a3d;    /* motor alevi turuncusu */
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ---------- Üst menü ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; letter-spacing: .08em; }
.brand-mark { width: 30px; height: 30px; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-2); }
.nav-links a.active { color: #fff; background: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .4rem .6rem; font-size: 1.1rem; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 7rem 0 6rem;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(227, 38, 47, .25), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(255, 122, 61, .12), transparent 60%),
    var(--bg);
}
.hero::before { /* yıldızlar */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent),
    radial-gradient(1px 1px at 85% 60%, #fff, transparent),
    radial-gradient(1px 1px at 10% 70%, #fff, transparent),
    radial-gradient(1px 1px at 55% 45%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 92% 88%, #fff, transparent);
}
.hero .container { position: relative; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; margin: 0 0 1.25rem; letter-spacing: -.02em; max-width: 14ch; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin: 0 0 2rem; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg-2); }

.page-hero { padding: 4.5rem 0 3rem; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 300px at 90% 0%, rgba(227, 38, 47, .18), transparent 60%), var(--bg); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .5rem; letter-spacing: -.02em; }
.page-hero p { color: var(--muted); margin: 0; max-width: 60ch; font-size: 1.1rem; }

/* ---------- Bölümler ---------- */
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.section-title { font-size: 1.9rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
.section-sub { color: var(--muted); margin: 0 0 2.5rem; max-width: 62ch; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.card .icon { font-size: 1.6rem; margin-bottom: .75rem; }
a.card { text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat { padding: 1.25rem; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0; }
.stat b { display: block; font-size: 2rem; font-family: var(--mono); }
.stat span { color: var(--muted); font-size: .9rem; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .05em;
  padding: .2rem .55rem; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
}
.tag.red { color: #fff; background: var(--accent); border-color: var(--accent); }
.tag.orange { color: var(--accent-2); border-color: rgba(255,122,61,.5); }

/* Doldurulması gereken yer tutucular — içerik girildikçe silinir */
.todo { background: rgba(255, 122, 61, .12); border: 1px dashed var(--accent-2); color: var(--accent-2); border-radius: 6px; padding: 0 .35rem; font-size: .9em; }

/* ---------- Zaman çizelgesi ---------- */
.timeline { position: relative; margin: 0; padding: 0 0 0 2rem; list-style: none; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.timeline li { position: relative; margin-bottom: 1.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.85rem; top: 1.65rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline li.future::before { border-color: var(--muted); border-style: dashed; }
.timeline .meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem; }
.timeline ul { margin: .75rem 0 0; padding-left: 1.1rem; color: var(--muted); }

/* ---------- Eğitim ---------- */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.filter-btn {
  font: inherit; font-size: .9rem; cursor: pointer;
  padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--muted);
}
.filter-btn.active, .filter-btn:hover { color: #fff; border-color: var(--accent); }
.filter-btn.active { background: var(--accent); }
.search {
  width: 100%; max-width: 360px; font: inherit; padding: .65rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text); margin-bottom: 1rem;
}
.video-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.video-thumb { aspect-ratio: 16/9; background: #000 center/cover no-repeat; position: relative; display: grid; place-items: center; }
.video-thumb.empty { background: linear-gradient(135deg, #1a2235, #0f1522); }
.video-thumb .play { width: 54px; height: 54px; border-radius: 50%; background: rgba(227,38,47,.9); display: grid; place-items: center; font-size: 1.2rem; color: #fff; }
.video-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.video-body h3 { margin: 0; font-size: 1.05rem; }
.video-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.video-body .meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; padding-top: .5rem; }
.empty-state { color: var(--muted); text-align: center; padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); }

.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.res-item { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.res-item h3 { font-size: 1rem; margin: 0 0 .25rem; }
.res-item a.title { text-decoration: none; }
.res-item a.title:hover { color: var(--accent-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; background: var(--bg-2); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
