/* ============================================================
   COMIC POP — Dr. Yasemin Aydınlı
   Tasarım sistemi: renk, tipografi, panel, balon, halftone,
   buton, rozet, ses efektleri (SFX) ve yardımcı sınıflar.
   Astro'ya taşırken: bu dosya global stylesheet olur.
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Comic four-color palette */
  --c-yellow:   #FFD60A;
  --c-yellow-d: #FFB800;
  --c-red:      #FF2E2E;
  --c-red-d:    #D81B1B;
  --c-blue:     #1EA7FF;
  --c-blue-d:   #0A7CDB;
  --c-green:    #2FCB5B;
  --c-green-d:  #1FA445;

  --ink:        #0E0D10;     /* mürekkep siyahı */
  --paper:      #FFF8E8;     /* sıcak kağıt */
  --paper-2:    #FFFDF5;
  --white:      #FFFFFF;

  /* Shadows / borders */
  --line:       4px;
  --line-thick: 6px;
  --hard:       8px 8px 0 var(--ink);
  --hard-sm:    5px 5px 0 var(--ink);
  --hard-lg:    12px 12px 0 var(--ink);

  --r:          6px;       /* paneller köşeli */
  --r-bubble:   28px;

  --maxw:       1240px;

  --font-comic: 'Bangers', system-ui, sans-serif;
  --font-body:  'Nunito', system-ui, sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  /* base ben-day dot texture on the page itself */
  background-image:
    radial-gradient(circle, rgba(14,13,16,.06) 1.3px, transparent 1.5px);
  background-size: 14px 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--c-yellow); color: var(--ink); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.center { align-items: center; }
.between { justify-content: space-between; }
.wrap-flex { flex-wrap: wrap; }
.gap-sm { gap: 10px; } .gap { gap: 18px; } .gap-lg { gap: 30px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.comic   { font-family: var(--font-comic); font-weight: 400; letter-spacing: .5px; line-height: .98; }

/* Big outlined "sound effect" headline */
.sfx {
  font-family: var(--font-comic);
  line-height: .9;
  color: var(--c-yellow);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 rgba(14,13,16,.18);
  letter-spacing: 1px;
  text-wrap: balance;
}
.sfx--red    { color: var(--c-red); }
.sfx--blue   { color: var(--c-blue); }
.sfx--green  { color: var(--c-green); }
.sfx--white  { color: var(--white); }
.sfx--pop    { text-shadow: 4px 4px 0 var(--c-red), 8px 8px 0 var(--ink); }
.sfx--popblue{ text-shadow: 4px 4px 0 var(--c-blue), 8px 8px 0 var(--ink); }

h1, h2, h3 { text-wrap: balance; }

/* Section kicker label — little comic tab */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-comic);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 1.5px;
  background: var(--ink);
  color: var(--c-yellow);
  padding: 6px 16px 4px;
  border-radius: 4px;
  transform: rotate(-1.5deg);
}
.kicker--red   { color: var(--white); background: var(--c-red); border: 3px solid var(--ink); }
.kicker--blue  { color: var(--white); background: var(--c-blue); border: 3px solid var(--ink); }

.h-display {
  font-family: var(--font-comic);
  font-size: clamp(38px, 7vw, 88px);
  line-height: .92;
  letter-spacing: .5px;
}
.h2 {
  font-family: var(--font-comic);
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: .96;
  letter-spacing: .5px;
}
.h3 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
}
.lead { font-size: clamp(16px, 1.4vw, 20px); font-weight: 600; max-width: 60ch; }
.muted { color: rgba(14,13,16,.66); }
.tac { text-align: center; }
.mx-auto { margin-inline: auto; }

.em-red  { color: var(--c-red); }
.em-blue { color: var(--c-blue); }
.underline-pop {
  background: linear-gradient(transparent 62%, var(--c-yellow) 62% 92%, transparent 92%);
  padding-inline: 2px;
}

/* ============================================================
   PANELS (comic page cells)
   ============================================================ */
.panel {
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--hard);
  position: relative;
}
.panel--lift  { box-shadow: var(--hard-lg); }
.panel--sm    { box-shadow: var(--hard-sm); }
.panel--flat  { box-shadow: none; }
.panel--pad   { padding: clamp(20px, 2.4vw, 34px); }
.panel--yellow{ background: var(--c-yellow); }
.panel--red   { background: var(--c-red); color: var(--white); }
.panel--blue  { background: var(--c-blue); color: var(--white); }
.panel--green { background: var(--c-green); color: var(--white); }
.panel--ink   { background: var(--ink); color: var(--paper); }

.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(1.5deg); }
.tilt-l2 { transform: rotate(-3deg); }
.tilt-r2 { transform: rotate(3deg); }

/* ============================================================
   HALFTONE / RAYS / TEXTURES
   ============================================================ */
.halftone { position: relative; }
.halftone::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background-image: radial-gradient(circle, rgba(14,13,16,.22) 2px, transparent 2.4px);
  background-size: 12px 12px;
  pointer-events: none; opacity: .5;
}
.halftone--light::before { background-image: radial-gradient(circle, rgba(255,255,255,.5) 2px, transparent 2.4px); opacity: .55; }
.halftone--dense::before { background-size: 8px 8px; }

/* radial sunburst (yellow/red panels in the reference) */
.rays {
  background-image: repeating-conic-gradient(
    from 0deg at 50% 50%,
    var(--c-yellow) 0deg 7deg,
    var(--c-yellow-d) 7deg 14deg);
}
.rays--red   { background-image: repeating-conic-gradient(from 0deg at 50% 50%, var(--c-red) 0deg 7deg, var(--c-red-d) 7deg 14deg); }
.rays--blue  { background-image: repeating-conic-gradient(from 0deg at 50% 50%, var(--c-blue) 0deg 7deg, var(--c-blue-d) 7deg 14deg); }
.rays--green { background-image: repeating-conic-gradient(from 0deg at 50% 50%, var(--c-green) 0deg 7deg, var(--c-green-d) 7deg 14deg); }

/* speed / action lines radiating from center (white) */
.speed {
  background-image: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(14,13,16,.0) 0deg 3deg,
    rgba(14,13,16,.10) 3deg 4deg);
}

/* diagonal stripes (the BLANK COMIC BOOK reference background) */
.stripes {
  background-image: repeating-linear-gradient(
    115deg, var(--c-yellow) 0 26px, var(--c-yellow-d) 26px 52px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --bg: var(--c-blue);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 900;
  font-size: clamp(15px, 1.1vw, 18px);
  letter-spacing: .3px;
  color: var(--white); background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 14px 26px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .09s ease, box-shadow .09s ease;
  text-transform: none;
}
.btn:hover  { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--red    { --bg: var(--c-red); }
.btn--yellow { --bg: var(--c-yellow); color: var(--ink); }
.btn--green  { --bg: var(--c-green); }
.btn--ink    { --bg: var(--ink); }
.btn--ghost  { --bg: var(--white); color: var(--ink); }
.btn--lg     { padding: 17px 34px; font-size: clamp(16px,1.3vw,20px); }
.btn--block  { display: flex; justify-content: center; width: 100%; }
.btn .arrow  { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   BADGES / STICKERS / CHIPS
   ============================================================ */
.sticker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 14px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 7px 15px;
  box-shadow: 3px 3px 0 var(--ink);
}
.sticker--yellow { background: var(--c-yellow); }
.sticker--red    { background: var(--c-red); color: #fff; }
.sticker--blue   { background: var(--c-blue); color: #fff; }
.sticker--green  { background: var(--c-green); color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; font-size: 14px;
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 13px;
}

/* check bullet list */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.checks li::before {
  content: "✔"; flex: none;
  display: grid; place-items: center;
  width: 28px; height: 28px; font-size: 15px;
  color: var(--ink); background: var(--c-green);
  border: 2.5px solid var(--ink); border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
}
.checks--blue li::before { background: var(--c-blue); color: #fff; }
.checks--yellow li::before { background: var(--c-yellow); }

/* ============================================================
   SPEECH BUBBLE
   ============================================================ */
.bubble {
  position: relative;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-bubble);
  padding: 22px 26px;
  box-shadow: var(--hard-sm);
}
.bubble::after {
  content: ""; position: absolute;
  width: 34px; height: 26px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-top: none; border-left: none;
}
/* tail bottom-left */
.bubble--bl::after {
  left: 38px; bottom: -16px;
  border-radius: 0 0 0 26px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  transform: rotate(0deg);
  width: 30px; height: 30px;
}
.bubble--yellow { background: var(--c-yellow); }
.bubble--yellow::after { background: var(--c-yellow); }
.bubble--blue { background: var(--c-blue); color: #fff; }
.bubble--blue::after { background: var(--c-blue); }

/* thought-ish caption box (rectangular narration) */
.caption {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 4px;
  padding: 14px 18px;
  font-weight: 800;
  box-shadow: var(--hard-sm);
}

/* ============================================================
   BURST / STARBURST (SFX badges)
   ============================================================ */
.burst {
  display: inline-grid; place-items: center;
  font-family: var(--font-comic);
  color: var(--ink);
  text-align: center;
  background: var(--c-yellow);
  padding: 28px;
  filter: drop-shadow(5px 5px 0 var(--ink));
  clip-path: polygon(
    50% 0%, 61% 16%, 80% 9%, 76% 29%, 96% 30%, 82% 45%,
    100% 55%, 80% 62%, 90% 82%, 68% 76%, 64% 97%, 50% 81%,
    36% 97%, 32% 76%, 10% 82%, 20% 62%, 0% 55%, 18% 45%,
    4% 30%, 24% 29%, 20% 9%, 39% 16%);
}
.burst--red   { background: var(--c-red); color: #fff; }
.burst--blue  { background: var(--c-blue); color: #fff; }
.burst--green { background: var(--c-green); color: #fff; }
.burst--white { background: #fff; }

/* ============================================================
   IMAGE SLOTS (user-fillable) framed as comic panels
   ============================================================ */
image-slot {
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--hard);
  background: var(--paper-2);
  overflow: hidden;
}
.imgframe { border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: var(--hard); overflow: hidden; background: var(--paper-2); }

/* striped placeholder for purely decorative imagery */
.ph {
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(45deg, rgba(14,13,16,.08) 0 8px, transparent 8px 16px);
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  display: grid; place-items: center;
  color: rgba(14,13,16,.5);
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 700;
  text-align: center; padding: 12px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-2);
  border-bottom: var(--line-thick) solid var(--ink);
}
/* dotted (halftone) header background */
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle, rgba(14,13,16,.18) 1.6px, transparent 1.9px);
  background-size: 12px 12px;
}
/* multi-color comic ribbon along the top */
.topstrip { display: flex; height: 9px; border-bottom: 3px solid var(--ink); position: relative; z-index: 2; }
.topstrip > i { flex: 1; }
.topstrip > i:nth-child(1) { background: var(--c-red); }
.topstrip > i:nth-child(2) { background: var(--c-yellow); }
.topstrip > i:nth-child(3) { background: var(--c-green); }
.topstrip > i:nth-child(4) { background: var(--c-blue); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 10px; position: relative; z-index: 2; }

/* ---- logo lockup ---- */
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-badge {
  position: relative; width: 46px; height: 46px; flex: none; transform: rotate(-4deg);
  background: var(--c-red); border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; overflow: hidden;
}
.brand-badge::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.4) 1.4px, transparent 1.6px);
  background-size: 7px 7px;
}
.brand-badge > b {
  position: relative; font-family: var(--font-comic); font-weight: 400; font-size: 23px; color: #fff;
  -webkit-text-stroke: 1.4px var(--ink); paint-order: stroke fill; line-height: 1; letter-spacing: .5px;
}
.brand-name { display: flex; flex-direction: column; line-height: .82; }
.brand-name > b { font-family: var(--font-comic); font-weight: 400; font-size: 24px; letter-spacing: .6px; white-space: nowrap; }
.brand-name > small { font-family: var(--font-body); font-weight: 900; font-size: 9.5px; letter-spacing: 1.6px; color: rgba(14,13,16,.62); margin-top: 4px; white-space: nowrap; }

/* ---- nav ---- */
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-weight: 800; font-size: 14px; white-space: nowrap;
  padding: 7px 10px; border-radius: 8px;
  border: 2.5px solid transparent;
  transition: background .12s, border-color .12s, transform .08s;
}
.nav a:hover { background: var(--c-yellow); border-color: var(--ink); transform: translateY(-1px); }
.nav a.active { background: var(--ink); color: var(--c-yellow); border-color: var(--ink); }

/* ---- header tools (language + cta + toggle) ---- */
.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 900; font-size: 13px; color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 9px;
  padding: 7px 10px; box-shadow: 2px 2px 0 var(--ink);
}
.lang-btn:hover { background: var(--c-yellow); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 3px solid var(--ink); border-radius: 11px;
  box-shadow: 5px 5px 0 var(--ink); padding: 6px; min-width: 150px; z-index: 60; display: none;
}
.lang-menu.open { display: grid; gap: 2px; }
.lang-menu button {
  text-align: left; font-weight: 800; font-size: 14px;
  padding: 8px 11px; border-radius: 7px; background: none; border: none; color: var(--ink);
}
.lang-menu button:hover { background: var(--c-yellow); }
.lang-menu button.on { background: var(--ink); color: var(--c-yellow); }

.nav-toggle { display: none; background: var(--ink); color: var(--c-yellow); border: 3px solid var(--ink); border-radius: 10px; width: 46px; height: 46px; font-family: var(--font-comic); font-size: 22px; }

@media (max-width: 1160px) {
  .nav-cta { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--paper-2); border-bottom: var(--line-thick) solid var(--ink);
    padding: 16px clamp(16px,4vw,40px); z-index: 1; }
  .nav.open { display: flex; }
  .nav a { font-size: 17px; background: #fff; border-color: var(--ink); }
  .nav-toggle { display: grid; place-items: center; }
}
@media (max-width: 460px) { .brand-name > small { display: none; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--paper); border-top: var(--line-thick) solid var(--ink); }
.site-footer a:hover { color: var(--c-yellow); }
.footer-strip {
  background: var(--c-red); color: #fff;
  font-family: var(--font-comic); letter-spacing: 2px;
  border-block: var(--line) solid var(--ink);
  overflow: hidden; white-space: nowrap;
}
.footer-strip .track { display: inline-flex; gap: 36px; padding: 10px 0; animation: marquee 26s linear infinite; }
.footer-strip .track span { font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* social comic badges */
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 rgba(0,0,0,.4);
  font-weight: 900; font-size: 13px;
  transition: transform .1s;
}
.social a:hover { transform: translate(-2px,-2px); }

/* ============================================================
   FORMS
   ============================================================ */
.field { display: grid; gap: 7px; }
.field label { font-weight: 900; font-size: 14px; letter-spacing: .3px; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  border: 3px solid var(--ink); border-radius: 12px;
  padding: 13px 15px; background: #fff; color: var(--ink);
  width: 100%; outline: none;
  transition: box-shadow .1s, transform .1s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 4px 4px 0 var(--c-blue);
}
.field textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.pagehero { border-bottom: var(--line-thick) solid var(--ink); position: relative; overflow: hidden; }
.pagehero .wrap { padding-block: clamp(48px, 7vw, 96px); position: relative; z-index: 2; }
.breadcrumb { font-weight: 800; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   STATS
   ============================================================ */
.stat-num { font-family: var(--font-comic); font-size: clamp(44px, 6vw, 80px); line-height: .9; }

/* ============================================================
   ENTRANCE ANIMATIONS (measured)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px) rotate(-1deg); transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
  .pop-hover { transition: transform .12s ease; }
  .pop-hover:hover { transform: translateY(-4px) rotate(-1deg); }
}

/* small float loop for stickers (subtle) */
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 5s ease-in-out infinite; }
  @keyframes float { 0%,100%{ transform: translateY(0) rotate(-3deg);} 50%{ transform: translateY(-7px) rotate(-1deg);} }
}

/* utilities */
.rel { position: relative; }
.z2 { position: relative; z-index: 2; }
.mt-s{margin-top:10px}.mt{margin-top:20px}.mt-l{margin-top:36px}
.mb-s{margin-bottom:10px}.mb{margin-bottom:20px}.mb-l{margin-bottom:36px}
.hide-mobile { }
@media (max-width: 620px) { .hide-mobile { display: none; } }
