/* ==========================================================================
   Algorave İzmir — algoraveizmir.org
   Marka: kırmızı #DD1E1E · koyu kırmızı #A91917 · krem #FFEBDE · siyah #0B0304
   Fontlar: Space Grotesk (başlık/gövde) · JetBrains Mono (etiket/sayı)
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk-400.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk-700.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-400.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Afişten alınan palet */
  --red: #dd1e1e;
  --red-lo: #a91917;
  --cream: #ffebde;
  --ink: #0b0304;
  --ink-2: #140708;
  --ink-3: #1d0c0d;
  --line: #35191a;
  --text: #f2e4de;
  --muted: #b09a94;

  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --gap: clamp(2rem, 5vw, 4rem);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 clamp(1rem, .96rem + .2vw, 1.075rem)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--red) 70%, transparent); text-underline-offset: .2em; }
a:hover { color: #fff; text-decoration-color: var(--cream); }

:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Başlıklar ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.25rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); }
h4 { font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
     font-family: var(--mono); font-weight: 400; margin: 2rem 0 .75rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.kicker {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9rem;
}
.big { font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); line-height: 1.45; color: #fff; }
.section-lede { color: var(--muted); max-width: 55ch; margin-bottom: 2.5rem; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-head.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--ink) 94%, transparent); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand img { width: 168px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); order: 2; margin-left: auto; }
.nav a {
  font-size: .95rem; text-decoration: none; color: var(--muted);
  padding: .35rem 0; position: relative; transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--cream); transition: right .25s;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { right: 0; }
.nav .nav-cta {
  background: var(--red); color: #fff; padding: .5rem 1.1rem; border-radius: 999px;
  font-weight: 700;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--cream); color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem; width: 2.75rem; height: 2.75rem;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav { order: 4; margin-left: 0; }
  .nav {
    position: fixed; inset: 4.25rem 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.5rem;
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: min(92svh, 820px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,3,4,.55) 0%, rgba(11,3,4,.25) 35%, rgba(11,3,4,.94) 88%),
    linear-gradient(85deg, rgba(11,3,4,.8) 0%, transparent 62%);
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(3rem, 9vw, 6rem); }

.eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text); display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  padding: .45rem .9rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 { text-shadow: 0 2px 40px rgba(0,0,0,.5); }
.lede { font-size: clamp(1.05rem, .95rem + .55vw, 1.3rem); color: #e4d2cb; max-width: 46ch; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn {
  display: inline-block; padding: .85rem 1.7rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .18s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--cream); color: var(--ink); }
.btn-ghost { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { border-color: var(--cream); background: rgba(221,30,30,.18); }

/* ---------- Sayılar ---------- */
.stats { background: var(--ink-2); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.stats-grid > div { padding: 2rem 1.5rem 2rem 0; }
.stats-grid > div + div { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.stats-grid b {
  display: block; font-family: var(--mono); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  color: var(--red); line-height: 1; margin-bottom: .5rem;
}
.stats-grid span { font-size: .92rem; color: var(--muted); }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div { padding: 1.5rem 1rem 1.5rem 0; }
  .stats-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats-grid > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1.25rem; }
  .stats-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Bölümler ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-alt { background: var(--ink-2); }

.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.howto li {
  border-left: 2px solid var(--red); padding: .1rem 0 .1rem 1.1rem;
  font-size: .95rem; color: var(--muted);
}
.howto b { display: block; color: #fff; font-size: 1rem; margin-bottom: .2rem; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: var(--gap); }
.mv article { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.mv h3 { color: var(--cream); }
.mv p { color: var(--muted); margin: 0; }
@media (max-width: 700px) { .mv { grid-template-columns: 1fr; } }

/* ---------- Manifesto ---------- */
.manifesto { list-style: none; counter-reset: m; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.manifesto li {
  counter-increment: m; position: relative;
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.25rem 1.75rem 1.75rem; transition: border-color .25s, transform .25s;
}
.manifesto li:hover { border-color: var(--red); transform: translateY(-3px); }
.manifesto li::before {
  content: counter(m, decimal-leading-zero);
  position: absolute; top: 1rem; right: 1.25rem;
  font-family: var(--mono); font-size: 2rem; color: var(--line);
}
.manifesto h3 { margin-bottom: .6rem; padding-right: 2.5rem; }
.manifesto p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Etkinlik ---------- */
.event {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.event-media img {
  width: 100%; aspect-ratio: 3 / 2; max-height: 460px; object-fit: cover; object-position: 50% 45%;
}
.event-body { padding: clamp(1.5rem, 3vw, 2.75rem); }
@media (min-width: 900px) {
  .event-body { column-count: 2; column-gap: var(--gap); }
  .event-body > * { break-inside: avoid; }
  .event-body > h4 { break-after: avoid; margin-top: 0; }
  .event-body > h4:first-of-type { margin-top: 1.5rem; }
  .event-body > h3, .event-body > .tag { column-span: all; }
}
@media (max-width: 620px) { .event-media img { aspect-ratio: 4 / 3; } }

.tag {
  display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}
.tag-past { background: rgba(221,30,30,.18); color: #ffb9ab; border: 1px solid rgba(221,30,30,.45); }

.event h3 span { color: var(--muted); font-weight: 400; }

.meta { margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.meta > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; font-size: .93rem; }
.meta dt { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); padding-top: .15rem; }
.meta dd { margin: 0; color: var(--text); }
@media (max-width: 520px) { .meta > div { grid-template-columns: 1fr; gap: .15rem; } }

.lineup { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .7rem; }
.lineup li { font-size: .93rem; color: var(--muted); padding-left: 1.1rem; position: relative; }
.lineup li::before { content: '▸'; position: absolute; left: 0; color: var(--cream); }
.lineup b { color: #fff; }

.credit { font-size: .82rem; color: #8a706a; font-family: var(--mono); margin-top: 1.5rem; }

.next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-top: 1.25rem; padding: 1.75rem;
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.next h3 { margin-bottom: .35rem; }
.next p { color: var(--muted); font-size: .95rem; max-width: 46ch; margin: 0; }

/* ---------- Galeri ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: .65rem; }
.shot {
  padding: 0; border: 0; background: var(--ink-3); cursor: zoom-in; overflow: hidden;
  border-radius: 10px; aspect-ratio: 3/4; position: relative;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.shot:hover img { transform: scale(1.06); opacity: .85; }
.shot::after {
  content: ''; position: absolute; inset: 0; border: 1.5px solid transparent; border-radius: 10px;
  transition: border-color .25s; pointer-events: none;
}
.shot:hover::after { border-color: var(--cream); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; gap: .5rem; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(9,3,4,.97); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: .9rem; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 82svh; width: auto; border-radius: 8px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #fff; cursor: pointer; border-radius: 999px; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox button:hover { background: var(--red); }
.lb-close { top: 1rem; right: 1rem; width: 2.9rem; height: 2.9rem; font-size: 1.75rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 3.1rem; height: 3.1rem; font-size: 2rem; padding-bottom: .25rem; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}

/* ---------- Katıl ---------- */
.join { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } }
.join-text p:not(.big) { color: var(--muted); }
.coc { font-size: .9rem; }

.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.channels li { display: grid; gap: .2rem; padding: 1.1rem 1.35rem; background: var(--ink-2); }
.channels li + li { border-top: 1px solid var(--line); }
.ch-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.channels a { font-size: 1.05rem; font-weight: 700; text-decoration: none; color: #fff; }
.channels a:hover { color: var(--cream); }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink-2); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 4.5rem; }
.foot-inner {
  display: grid; grid-template-columns: 1.1fr 1fr auto; gap: var(--gap);
  align-items: start; padding-bottom: 3rem;
}
@media (max-width: 900px) { .foot-inner { grid-template-columns: 1fr 1fr; } .foot-nav { grid-column: 1 / -1; } }
@media (max-width: 620px) { .foot-inner { grid-template-columns: 1fr; gap: 2.5rem; } }

.foot-logo { width: 190px; margin-bottom: 1rem; }
.foot-brand p { color: var(--muted); font-size: .95rem; max-width: 30ch; }

.foot-contact h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); margin-bottom: 1.1rem; }
.channels { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.channels li { display: grid; gap: .2rem; padding: .95rem 1.25rem; background: var(--ink-3); }
.channels li + li { border-top: 1px solid var(--line); }
.ch-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.channels a { font-size: 1rem; font-weight: 700; text-decoration: none; color: #fff; word-break: break-word; }
.channels a:hover { color: var(--red); }

.foot-nav { display: grid; gap: .65rem; align-content: start; }
.foot-nav a { font-size: .92rem; color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: #fff; }

.foot-bottom {
  border-top: 1px solid var(--line); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between;
}
.foot-bottom p { font-size: .82rem; color: #8a706a; font-family: var(--mono); margin: 0; }
.foot-bottom a { color: #8a706a; }
.foot-bottom a:hover { color: var(--red); }

/* ---------- Dil seçici ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.head-right { display: flex; align-items: center; gap: .5rem; order: 3; }
.lang { display: inline-flex; }
.lang select {
  appearance: none; -webkit-appearance: none;
  font: 400 .82rem/1 var(--mono); letter-spacing: .08em;
  color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1.9rem .5rem .85rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 1.05rem center, right .75rem center;
  background-size: .3rem .3rem, .3rem .3rem;
  background-repeat: no-repeat;
  transition: border-color .2s, color .2s;
}
.lang select:hover { border-color: var(--red); color: #fff; }
.lang select option { background: var(--ink-2); color: var(--text); }

/* ---------- Davranış kuralları sayfası ---------- */
.doc { padding-block: clamp(3rem, 7vw, 5.5rem); }
.doc .wrap { max-width: 820px; }
.doc h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem); margin-top: 2.75rem; }
.doc h3 { margin-top: 1.75rem; }
.doc ul { padding-left: 1.2rem; color: var(--muted); display: grid; gap: .5rem; margin: 0 0 1.5rem; }
.doc .back { font-family: var(--mono); font-size: .85rem; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 2rem; }
.doc .back:hover { color: var(--cream); }
.doc .note { background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; color: var(--muted); font-size: .92rem; }
