/* ==================================================================
   AUCS — Ankara University Computer Society
   Marka renkleri logodan: #FFA415 → #FF136E → #410094
   ================================================================== */

:root {
  --ink: #16111F;
  --text: #2E2837;
  --muted: #6A6375;
  --line: #E6E2EA;
  --bg: #FFFFFF;
  --bg-alt: #F6F4F1;
  --dark: #120B1D;

  --accent: #E0115F;
  --accent-hover: #C20E52;
  --orange: #FF9F0F;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
  --header-h: 76px;
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Tipografi ---------- */
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); font-stretch: 108%; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 16px; }
.h3 { font-size: 1.35rem; line-height: 1.25; font-weight: 700; margin: 0; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; margin: 0; }
.label { margin: 0 0 6px; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link::after { content: " →"; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- Üst menü ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .25s, box-shadow .25s; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: block; flex: none; }
.header__logo img { height: 46px; width: auto; }
.logo-dark { display: none !important; }
.header--solid { background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header--solid .logo-light { display: none !important; }
.header--solid .logo-dark { display: block !important; }

.menu { display: flex; align-items: center; gap: 2px; }
.menu a:not(.btn) { padding: 8px 12px; border-radius: 6px; font-size: .97rem; font-weight: 500; text-decoration: none; color: rgba(255, 255, 255, .85); transition: color .2s, background .2s; }
.menu a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .1); }
.header--solid .menu a:not(.btn) { color: var(--text); }
.header--solid .menu a:not(.btn):hover { color: var(--ink); background: var(--bg-alt); }
.menu a.is-active:not(.btn) { color: #fff; }
.header--solid .menu a.is-active:not(.btn) { color: var(--accent); }
.menu__cta { height: 40px; padding: 0 16px; margin-left: 10px; font-size: .95rem; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease); }
.header--solid .burger span, .header--open .burger span { background: var(--ink); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.header--open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.header--open .burger span:nth-child(2) { opacity: 0; }
.header--open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: #fff;
  min-height: max(560px, 86svh); display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 112px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 11, 29, .95) 0%, rgba(18, 11, 29, .8) 36%, rgba(18, 11, 29, .15) 68%, rgba(18, 11, 29, 0) 100%),
    linear-gradient(180deg, rgba(18, 11, 29, .8) 0%, rgba(18, 11, 29, 0) 25%);
}
.hero__inner { pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.hero__pre { margin: 0 0 18px; font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .7); }
.hero__title { color: #fff; font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 24px; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .78); max-width: 52ch; margin: 0 0 32px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Yaklaşan etkinlik ---------- */
.next {
  position: relative; z-index: 2; margin-top: -56px; padding-block: 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
}
.next::before {
  content: ""; position: absolute; inset: 0 var(--gutter); z-index: -1; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -24px rgba(22, 17, 31, .35);
}
.next > * { margin-block: 24px; }
.next__date {
  margin-left: 24px; width: 84px; text-align: center; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
.next__month { display: block; order: -1; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 0; }
.next__day { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; padding: 10px 0 12px; color: var(--ink); font-stretch: 110%; }
.next__date { display: flex; flex-direction: column; }
.next__left::before { content: "· "; }
.next__left { margin-left: 4px; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.next__title { font-size: 1.5rem; line-height: 1.2; font-weight: 800; margin: 0 0 4px; }
.next__meta { margin: 0; color: var(--text); font-weight: 500; }
.next__text { margin: 2px 0 0; color: var(--muted); font-size: .97rem; }
.next__btn { margin-right: 24px; }

/* ---------- Bölümler ---------- */
.section { padding-block: clamp(64px, 8vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 40px; }
.next + .section { padding-top: clamp(72px, 9vw, 112px); }

/* ---------- Hakkımızda ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about__text p { margin: 0 0 16px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.mv h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.mv p { margin: 0; font-size: .97rem; color: var(--muted); }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about__photo figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }

.numbers { margin: clamp(48px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.numbers div { padding: 24px 0 0; }
.numbers dd { margin: 0; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1; color: var(--ink); font-stretch: 110%; font-variant-numeric: tabular-nums; }
.numbers dt { margin-top: 6px; color: var(--muted); font-size: .95rem; }

/* ---------- Etkinlikler ---------- */
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.event__img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.event:hover .event__img { transform: scale(1.03); }
.event__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; position: relative; background: #fff; }
.event__body h3 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.event__meta { margin: 0; font-size: .88rem; font-weight: 600; color: var(--accent); }
.event__body p:not(.event__meta) { margin: 0; font-size: .95rem; color: var(--muted); }
.event__body .link { margin-top: auto; padding-top: 8px; font-size: .95rem; }

.lists { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: 56px; }
.lists h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
.lists ul { list-style: none; margin: 0; padding: 0; }
.lists li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lists li span:last-child { color: var(--muted); font-size: .95rem; }

.gallery-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 64px 0 20px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.poster { margin: 0; }
.poster button { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 8px; overflow: hidden; }
.poster img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease), opacity .2s; }
.poster button:hover img { transform: scale(1.04); }
.poster figcaption { margin-top: 10px; font-size: .93rem; line-height: 1.4; }
.poster figcaption b { display: block; color: var(--ink); font-weight: 600; }
.poster figcaption span { color: var(--muted); font-size: .88rem; }

/* ---------- Tarihçe ---------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.tl { display: grid; grid-template-columns: 110px 1fr; }
.tl__year { font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1; padding-top: 4px; font-stretch: 112%; }
.tl__body { position: relative; padding: 0 0 40px 32px; border-left: 2px solid var(--line); }
.tl:last-child .tl__body { padding-bottom: 0; }
.tl__body::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.tl:last-child .tl__body::before { background: var(--accent); }
.tl__body h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.tl__body p { margin: 0; color: var(--muted); max-width: 64ch; }
.tl__body img { margin-top: 16px; width: 100%; max-width: 420px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }

/* ---------- Ekip ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.member { margin: 0; }
.member__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #E9E5EE; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.member:hover .member__photo img { transform: scale(1.03); }
.member__ph { width: 100%; height: 100%; display: grid; place-items: end center; color: #CFC8D8; }
.member__ph svg { width: 70%; height: auto; }
.member h3 { margin: 12px 0 2px; font-size: 1.05rem; font-weight: 700; font-stretch: 100%; }
.member p { margin: 0; font-size: .93rem; color: var(--muted); }
.member a { color: var(--accent); font-size: .9rem; font-weight: 600; text-decoration: none; }

/* ---------- Bize katıl ---------- */
.join { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.join .lead { margin-bottom: 28px; }
.squads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.squads li { padding: 20px 0; border-top: 1px solid var(--line); }
.squads h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.squads p { margin: 0; font-size: .97rem; color: var(--muted); }

/* ---------- Sponsorluk ---------- */
.sponsor { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.sponsor .lead { margin-bottom: 20px; }
.checks { list-style: none; margin: 0 0 28px; padding: 0; }
.checks li { position: relative; padding: 6px 0 6px 28px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--accent); font-weight: 800; }
.reach { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 28px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reach div { background: #fff; padding: 18px 20px; }
.reach dd { margin: 0; font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.1; font-stretch: 110%; }
.reach dt { color: var(--muted); font-size: .92rem; }
.partners__label { margin: 0 0 12px; font-size: .92rem; color: var(--muted); }
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.partners li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: .9rem; font-weight: 600; color: var(--text); }

.tiers { margin-top: 64px; }
.tiers .h3 { margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .97rem; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
thead th { font-weight: 700; color: var(--ink); background: #FBFAF8; }
tbody th { text-align: left; font-weight: 500; color: var(--text); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td { color: var(--accent); font-weight: 700; }
.note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand img { width: 240px; height: auto; }
.footer__brand p { margin: 12px 0 0; font-size: .95rem; }
.footer h4 { margin: 0 0 12px; color: #fff; font-size: .95rem; font-weight: 700; font-stretch: 100%; }
.footer p { margin: 0; font-size: .95rem; line-height: 1.7; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__social { list-style: none; margin: 0; padding: 0; line-height: 1.7; font-size: .95rem; }
.footer__bottom { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem !important; }

/* ---------- Afiş büyütme ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); overflow: visible; }
.lightbox::backdrop { background: rgba(10, 6, 16, .85); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox p { margin: 12px 0 0; text-align: center; color: #fff; font-size: .95rem; }
.lightbox__close { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.6rem; line-height: 1; }
.lightbox__close:hover { background: rgba(255, 255, 255, .3); }

/* ---------- Görünme animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
  .menu a:not(.btn) { padding: 8px 9px; font-size: .93rem; }
  .events { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .header__logo img { height: 38px; }
  .burger { display: block; }
  .menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -20px rgba(22, 17, 31, .3);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .header--open { background: #fff; box-shadow: 0 1px 0 var(--line); }
  .header--open .logo-light { display: none !important; }
  .header--open .logo-dark { display: block !important; }
  .header--open .menu { opacity: 1; visibility: visible; transform: none; }
  .menu a:not(.btn), .header--solid .menu a:not(.btn) { color: var(--text); padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu__cta { margin: 16px 0 0; height: 48px; }

  .about, .join, .sponsor { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
  .next { grid-template-columns: auto 1fr; }
  .next__btn { grid-column: 1 / -1; justify-self: start; margin: 0 0 24px 24px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 72px) 0 96px; align-items: flex-end; }
  .hero__veil { background: linear-gradient(0deg, rgba(18, 11, 29, .96) 0%, rgba(18, 11, 29, .82) 55%, rgba(18, 11, 29, .45) 100%); }
  .hero__buttons .btn { flex: 1 1 auto; }
  .next { gap: 16px; align-items: start; }
  .next__left { display: block; margin: 2px 0 0; }
  .next__left::before { content: none; }
  .next__date { margin-left: 16px; width: 68px; }
  .next__day { font-size: 1.8rem; }
  .next__title { font-size: 1.25rem; }
  .next > .next__body { margin-right: 16px; }
  .next__btn { margin-left: 16px; }
  .mv { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .events { grid-template-columns: 1fr; }
  .lists { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-head { flex-direction: column; gap: 4px; }
  .tl { grid-template-columns: 64px 1fr; }
  .tl__year { font-size: 1.15rem; }
  .tl__body { padding-left: 20px; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .squads { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
