/* Yılın Kelebeği — kelebekler.net
   Derleme gerektirmeyen düz CSS. Renk ve yazı ölçüleri en üstteki değişkenlerden değiştirilebilir. */

:root {
  --moss: #1e3a2f;
  --moss-2: #2b4d3f;
  --paper: #f5f7f1;
  --card: #ffffff;
  --ink: #17201b;
  --muted: #55625a;
  --line: #d5dccf;
  --blue: #2f5bd3;
  --blue-dark: #2347a8;
  --sulphur: #f1cf4a;
  --red: #b3261e;
  --green: #2e7d4f;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;

  --step--1: 0.889rem;
  --step-0: 1.125rem;   /* 18px gövde: yaşlı ziyaretçiler için büyük */
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: 3.157rem;

  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--sulphur); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: var(--step-1); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.latin { font-family: var(--serif); font-style: italic; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(40px, 7vw, 88px); }
.section-tight { padding-block: clamp(24px, 4vw, 48px); }
.stack > * + * { margin-top: 1rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 50; }

/* ---------- Başlık ---------- */
.site-head { background: var(--moss); color: #fff; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: var(--step-1); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.brand:hover { color: var(--sulphur); }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: #e6efe9; text-decoration: none; padding: 6px 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--sulphur); text-decoration-thickness: 3px; }
.nav form { display: inline; }
.nav .linkish { background: none; border: 0; color: #e6efe9; font: inherit; cursor: pointer; padding: 6px 2px; }
.nav .btn { padding: 8px 16px; min-height: 0; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; margin-left: auto; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); border-radius: var(--radius); padding: 8px 14px; font: inherit; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 16px; margin-left: 0; }
  .nav.open { display: flex; }
}

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border-radius: var(--radius);
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
  font: 700 var(--step-0)/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-light { background: transparent; color: inherit; border-color: currentColor; }
.btn-light:hover { background: rgba(255,255,255,.1); color: inherit; border-color: currentColor; }
.btn-sulphur { background: var(--sulphur); border-color: var(--sulphur); color: var(--ink); }
.btn-sulphur:hover { background: #e4bf2e; border-color: #e4bf2e; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { background: #eef2fb; color: var(--blue-dark); border-color: var(--blue); }
.btn-danger { background: transparent; color: var(--red); border-color: #e7c3c0; }
.btn-danger:hover { background: #fbeeed; color: var(--red); border-color: var(--red); }
.btn-small { min-height: 40px; padding: 6px 14px; font-size: var(--step--1); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Ana sayfa vitrini ---------- */
.hero { background: var(--moss); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(78vh, 720px); }
.hero-copy { padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(32px, 6vw, 72px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 500; }
.hero-copy .year { display: block; font-size: .5em; font-weight: 400; color: var(--sulphur); letter-spacing: 0; margin-bottom: .25em; }
.hero-copy p { color: #d8e5dc; font-size: var(--step-1); }
.hero-phase { display: flex; flex-direction: column; gap: 2px; border-left: 4px solid var(--sulphur); padding-left: 14px; margin: 8px 0 28px; }
.hero-phase strong { font-size: var(--step-1); }
.hero-phase span { color: #c9d8ce; }
.hero-media { position: relative; overflow: hidden; background: #0f1f18; min-height: 360px; }
.hero-media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-media .slide.is-active { opacity: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .empty { position: absolute; inset: 0; display: grid; place-items: center; color: #9fb5a8; text-align: center; padding: 24px; }

/* Müze iğne etiketi: imza öğesi */
.pin-label {
  position: absolute; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  background: #fbfbf6; color: var(--ink); max-width: 340px;
  padding: 14px 18px 12px 34px; border: 1px solid #c9cbbd; border-radius: 2px;
  box-shadow: 0 1px 0 #c9cbbd, 0 10px 24px rgba(0,0,0,.25);
  font-size: var(--step--1); line-height: 1.4;
}
.pin-label::before { content: ""; position: absolute; left: 13px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: #2b2b2b; box-shadow: inset -2px -2px 0 #000, 0 0 0 2px #bfbfb4; }
.pin-label .latin { font-size: var(--step-0); display: block; }
.pin-label .tr { display: block; color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; min-height: 62vw; }
  .hero-copy { padding-inline: var(--gutter); }
}
@media (prefers-reduced-motion: reduce) { .hero-media .slide { transition: none; } }

/* ---------- Sayılar ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 12px 48px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.facts div { display: flex; align-items: baseline; gap: 8px; }
.facts b { font-family: var(--serif); font-size: var(--step-2); font-weight: 600; }

/* ---------- Nasıl işler / takvim ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline li { position: relative; padding: 0 0 22px 44px; counter-increment: step; }
.timeline li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--moss); display: grid; place-items: center; font-weight: 700; font-size: var(--step--1); }
.timeline li::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-now::before { background: var(--sulphur); border-color: var(--sulphur); }
.timeline time { display: block; color: var(--muted); font-size: var(--step--1); }

.rules-list { margin: 0; padding-left: 1.2em; }
.rules-list li { margin-bottom: .5em; }

/* ---------- Galeri ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tile { display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile:hover { border-color: var(--blue); color: inherit; }
.tile .ph { aspect-ratio: 4 / 3; background: #e7ebe3; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; }
.tile .meta { padding: 10px 14px 14px; }
.tile .meta strong { display: block; font-family: var(--serif); font-weight: 600; }
.tile .rank { float: right; font-weight: 700; background: var(--sulphur); border-radius: 3px; padding: 0 8px; font-size: var(--step--1); }

.showcase-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.showcase-strip figure { margin: 0; }
.showcase-strip .frame { overflow: hidden; border-radius: var(--radius); background: #0f1f18; }
.showcase-strip img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.showcase-strip figure:hover img { transform: scale(1.06); }
.showcase-strip figcaption { font-size: var(--step--1); color: #c9d8ce; padding-top: 8px; }
.showcase-strip figcaption .latin { color: #fff; }

/* ---------- Kutular ve formlar ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.panel + .panel { margin-top: 20px; }
.notice { padding: 14px 18px; border-radius: var(--radius); background: #e8f3ec; border: 1px solid #b8d9c4; margin-bottom: 20px; }
.notice.warn { background: #fdf6dc; border-color: #ecd98a; }
.notice.error { background: #fbeeed; border-color: #e7c3c0; color: #6e1813; }

.form { display: grid; gap: 20px; max-width: 720px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 4px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url], .field input[type=tel], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid #b9c4b5; border-radius: var(--radius);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(47, 91, 211, .25); }
.field .error { color: var(--red); font-weight: 700; margin-top: 6px; display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 24px; height: 24px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }

/* Dosya seçme alanı */
.drop {
  display: block; border: 3px dashed #9fb0a2; border-radius: 10px; background: #fff; padding: 28px; text-align: center; cursor: pointer;
}
.drop:hover, .drop.is-over { border-color: var(--blue); background: #f2f5fd; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { display: block; font-size: var(--step-1); }
.drop img { max-height: 340px; margin: 0 auto 12px; border-radius: 4px; }
.drop .file-info { display: block; margin-top: 8px; }
.drop .file-info.bad { color: var(--red); font-weight: 700; }

/* Hak göstergesi */
.quota { display: grid; gap: 10px; }
.quota-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--moss); display: grid; place-items: center; }
.slot.used { background: var(--moss); }
.slot.used svg { fill: #fff; }
.slot.bonus { border-style: dashed; border-color: var(--blue); }
.slot.bonus.used { background: var(--blue); border-style: solid; }
.slot svg { width: 20px; height: 20px; fill: transparent; }
.bar { height: 14px; background: #e3e8df; border-radius: 7px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--sulphur); border-right: 2px solid #c9a823; transition: width .5s ease; }

/* Hesap tablosu */
.entry-list { display: grid; gap: 14px; }
.entry-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.entry-row img { width: 120px; height: 90px; object-fit: cover; border-radius: 4px; }
.entry-row h3 { margin: 0 0 4px; }
@media (max-width: 640px) { .entry-row { grid-template-columns: 90px 1fr; } .entry-row img { width: 90px; height: 70px; } .entry-row .actions { grid-column: 1 / -1; } }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: var(--step--1); font-weight: 700; background: #e7ebe3; }
.badge.pending { background: #fdf0c4; }
.badge.approved { background: #d3ecdc; }
.badge.rejected, .badge.disqualified { background: #f6d6d3; }

/* ---------- Düello ---------- */
.duel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .duel { grid-template-columns: 1fr; } }
.duel-card {
  position: relative; display: flex; flex-direction: column; background: #0f1a15; border: 3px solid transparent; border-radius: 8px;
  overflow: hidden; cursor: pointer; padding: 0; font: inherit; color: #fff; text-align: left; width: 100%;
}
.duel-card:hover { border-color: var(--sulphur); }
.duel-card .ph { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #0f1a15; }
.duel-card .ph img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.duel-card .cap { padding: 10px 14px 12px; background: #13221b; }
.duel-card .cap strong { font-family: var(--serif); font-weight: 600; display: block; }
.duel-card .cap span { color: #b9cbbf; font-size: var(--step--1); }
.duel-card .result { position: absolute; inset: auto 0 0 0; padding: 14px; background: linear-gradient(transparent, rgba(0,0,0,.85)); display: none; }
.duel.revealed .duel-card { cursor: default; }
.duel.revealed .result { display: block; }
.duel-card.won { border-color: var(--sulphur); }
.duel-card.lost { opacity: .72; }
.result .pct { font-family: var(--serif); font-size: var(--step-3); font-weight: 600; line-height: 1; }
.result .bar { margin-top: 8px; background: rgba(255,255,255,.2); }
.duel-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.duel-msg { min-height: 1.6em; font-weight: 700; }
.zoom { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; border: 0; border-radius: 4px; padding: 6px 10px; font: inherit; font-size: var(--step--1); cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; place-items: center; z-index: 100; padding: 16px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; max-width: 96vw; object-fit: contain; }
.lightbox button { position: absolute; top: 12px; right: 12px; }

/* ---------- Fotoğraf sayfası ---------- */
.photo-stage { background: #0f1a15; padding: clamp(12px, 3vw, 32px) 0; }
.photo-stage img { max-height: 84vh; margin: 0 auto; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }

/* ---------- Sponsorlar ve ödüller ---------- */
.sponsors { display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: center; }
.sponsors a, .sponsors span { display: block; color: var(--muted); text-decoration: none; }
.sponsors img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .85; }
.sponsors a:hover img { filter: none; opacity: 1; }
.sponsors .main img { max-height: 92px; }
.prizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.prize { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--sulphur); border-radius: var(--radius); padding: 18px; }
.prize .value { font-weight: 700; }
.prize .by { color: var(--muted); font-size: var(--step--1); }

.winner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: center; margin-bottom: 40px; }
.winner img { border-radius: var(--radius); }
.winner .place { font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; color: var(--moss); }
@media (max-width: 760px) { .winner { grid-template-columns: 1fr; } }

/* ---------- Dark section ---------- */
.band { background: var(--moss); color: #fff; }
.band p { color: #d8e5dc; }
.band a:not(.btn) { color: var(--sulphur); }

/* ---------- Altbilgi ---------- */
.site-foot { background: #142a21; color: #c9d8ce; padding-block: 40px; font-size: var(--step--1); }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 6px; }

/* Sayfalama */
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.pager a, .pager span { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--card); }
.pager .current { background: var(--moss); color: #fff; border-color: var(--moss); }

.prose h2 { font-size: var(--step-2); margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { max-width: 68ch; }

/* ---------- Canlılık: kaydırınca beliren içerik ---------- */
html.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
html.js .rv.rv-zoom { transform: scale(.94); }
html.js .rv.rv-left { transform: translateX(-32px); }
html.js .rv.in, html.rv-off .rv { opacity: 1; transform: none; }

/* Vitrin: yavaş yakınlaşma ve etiketin kayarak gelmesi */
.hero-media .slide.is-active img { animation: kenburns 14s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.pin-label:not([hidden]) { animation: pinIn .9s cubic-bezier(.2,.7,.2,1) .4s both; }
@keyframes pinIn { from { opacity: 0; transform: translateX(-24px) rotate(-2deg); } to { opacity: 1; transform: none; } }

/* Başlık açılışı */
html.js .hero-copy > * { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
html.js .hero-copy > *:nth-child(2) { animation-delay: .12s; }
html.js .hero-copy > *:nth-child(3) { animation-delay: .24s; }
html.js .hero-copy > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Ödül kartları ve galeri */
.prize { transition: transform .35s ease, box-shadow .35s ease; position: relative; overflow: hidden; }
.prize:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(30, 58, 47, .14); }
.prize::after { content: ""; position: absolute; inset: -6px auto auto 0; height: 6px; width: 0; background: var(--blue); transition: width .5s ease; }
.prize:hover::after { width: 100%; }
.tile .ph { overflow: hidden; }
.tile .ph img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile:hover .ph img { transform: scale(1.07); }
.timeline li.is-now::before { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(241, 207, 74, .7); } 50% { box-shadow: 0 0 0 9px rgba(241, 207, 74, 0); } }

/* Hareket azaltma tercihinde: kayma ve büyüme yok, yalnızca yumuşak beliriş */
@media (prefers-reduced-motion: reduce) {
  html.js .rv, html.js .rv.rv-zoom, html.js .rv.rv-left { transform: none; transition: opacity .6s ease; }
  .hero-media .slide.is-active img, .timeline li.is-now::before { animation: none; }
  .pin-label:not([hidden]) { animation: fadeIn .6s ease both; }
  html.js .hero-copy > * { animation-name: fadeIn; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
