/* ==========================================================================
   BGİV Program Giriş Siteleri — ortak stil (tek ekran kurgu)
   baslat.bugenclikteisvar.com ve hizlandir.bugenclikteisvar.com
   --------------------------------------------------------------------------
   Sayfa SCROLL ETMEZ. Dikey duzen: ust bar / tam ekran hero / ince footer.
   Yukseklik 100dvh'a sabitlenir, hero kalan bosluga yayilir.

   Renkler kurumsal logolardan alinmistir (bgivLogo.svg):
     lacivert #263a87 · turuncu #f39400 · mor #6c41f2
     kirmizi  #d30041 · turkuaz #19b3b1
   Programa ozel vurgu rengi (--accent / --accent-soft / --accent-dark)
   index.php icindeki :root bloguyla eziliyor.
   ========================================================================== */

:root {
  --navy: #263a87;
  --navy-deep: #1b2a63;
  --orange: #f39400;
  --ink: #2b2f3a;
  --muted: #646b7d;
  --line: #e4e7f0;
  --bg: #f6f7fb;
  --white: #ffffff;

  /* programa ozel — index.php tarafindan eziliyor */
  --accent: #6c41f2;
  --accent-soft: #8f6df7;
  --accent-dark: #4d26c9;

  --shell: 1240px;
  --bar-h: 76px;
  --foot-h: 52px;
  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;

  /* Tek ekran: ust bar + hero + footer, sayfa uzamaz */
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Ust bar ================================================= */

.topbar {
  position: relative;
  z-index: 60;
  flex: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--bar-h);
}

.topbar__logo { flex: none; }
.topbar__logo img { height: 48px; width: auto; }

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.topbar__nav a:not(.btn) {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.topbar__nav a:not(.btn):hover { color: var(--accent); border-bottom-color: var(--accent); }

.topbar__actions { display: flex; align-items: center; gap: 12px; }

/* ===== Butonlar ================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: transform .18s ease, box-shadow .18s ease,
              background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(38, 58, 135, .22);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 32%, transparent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(38, 58, 135, .3);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 40%, transparent);
}

.btn--ghost {
  background: var(--white);
  color: var(--accent);
  border-color: var(--line);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--white));
}
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

.btn--lg { padding: clamp(13px, 1.7vh, 17px) 36px; font-size: 15px; }

/* ===== Hero — kalan tum ekrani kaplar ========================== */

.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  place-items: safe center;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  text-align: center;
}

/* Arka plandaki yumusak renk lekeleri.
   Kendi kirpilmis katmaninda duruyorlar: hero'nun kenarindan tasan daireler
   dogrudan .hero'ya baglansaydi hero'nun kaydirma alanini buyutur ve
   emniyet supabi olan overflow-y:auto bosuna devreye girerdi. */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero__bg::before {
  width: 62vmin; height: 62vmin;
  top: -24vmin; right: -14vmin;
  background: radial-gradient(circle,
              color-mix(in srgb, var(--accent) 18%, transparent) 0%,
              transparent 70%);
}
.hero__bg::after {
  width: 54vmin; height: 54vmin;
  bottom: -22vmin; left: -12vmin;
  background: radial-gradient(circle,
              color-mix(in srgb, var(--navy) 14%, transparent) 0%,
              transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  padding: 28px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Program logosu — ekranin odagi */
.hero__logo {
  width: min(400px, 60vw, 42vh);
  height: auto;
  margin-bottom: clamp(12px, 2.4vh, 28px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--white);
  background: color-mix(in srgb, var(--accent) 10%, var(--white));
  border: 1px solid var(--line);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--white));
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: clamp(10px, 1.8vh, 20px);
}

.hero__badge i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.75); }
}

.hero__title {
  font-size: clamp(20px, 1.6vw + 1.1vh, 34px);
  line-height: 1.22;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.012em;
  margin-bottom: clamp(8px, 1.3vh, 16px);
}
.hero__title em { font-style: normal; color: var(--accent); }

.hero__text {
  font-size: clamp(13.5px, .4vw + .6vh, 16px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: clamp(14px, 2.4vh, 28px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Kisa bilgi seridi: 18-30 · 2-5 · Ucretsiz */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(14px, 2.6vh, 30px);
  padding-top: clamp(12px, 2vh, 22px);
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 560px;
}

.hero__fact strong {
  display: block;
  font-size: clamp(17px, .8vw + .7vh, 22px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}
.hero__fact span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.hero__note {
  margin-top: clamp(10px, 1.6vh, 18px);
  font-size: 13px;
  color: var(--muted);
}
.hero__note a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ===== Ince footer — tek cizgi ================================= */

.footer {
  flex: none;
  min-height: var(--foot-h);
  display: flex;
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.footer a { transition: color .2s ease; }
.footer a:hover { color: var(--accent); }

.footer__links { display: flex; gap: 20px; }

/* ===== Mobil menu ============================================== */

.navtoggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.navtoggle span,
.navtoggle span::before,
.navtoggle span::after {
  position: absolute;
  left: 50%;
  width: 19px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .22s ease, opacity .22s ease;
}
.navtoggle span { top: 50%; margin-top: -1px; }
.navtoggle span::before { content: ""; left: 0; transform: none; top: -6px; }
.navtoggle span::after  { content: ""; left: 0; transform: none; top: 6px; }

.navtoggle[aria-expanded="true"] span { background: transparent; }
.navtoggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.navtoggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ===== Responsive ============================================== */

/* Ust bardaki 3 baglanti + 2 buton bu genislikten sonra sigmiyor. */
@media (max-width: 1023px) {
  :root { --bar-h: 66px; }

  .navtoggle { display: block; }
  .topbar__logo img { height: 40px; }
  .topbar__inner { gap: 12px; }

  .topbar__nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(38, 58, 135, .12);
    padding: 10px 28px 22px;
  }
  .topbar__nav.is-open { display: flex; }

  .topbar__nav a:not(.btn) {
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .topbar__nav a:not(.btn):hover { border-bottom-color: var(--line); }

  /* Buton sarmalayicisi kaybolur, butonlar menunun dogrudan cocugu olur;
     menu kapaliyken (display:none) onlar da gizlenir. */
  .topbar__actions { display: contents; }
  .topbar__nav .btn { width: 100%; margin-top: 14px; }
  .topbar__nav .btn + .btn { margin-top: 10px; }
}

@media (max-width: 760px) {
  :root { --foot-h: 44px; }

  .shell { padding: 0 18px; }
  .topbar__nav { padding: 10px 18px 22px; }

  /* Butonlar alt alta gectigi icin dikey yer ihtiyaci artiyor;
     logo kuculuyor, rozet kalkiyor ki tek ekrana sigsin. */
  .hero__inner { padding: 20px 18px; }
  .hero__logo { width: min(230px, 58vw); margin-bottom: 16px; }
  .hero__badge { display: none; }
  .hero__title { margin-bottom: 10px; }
  .hero__text { line-height: 1.5; margin-bottom: 18px; }
  .hero__cta { width: 100%; flex-direction: column; gap: 10px; }
  .hero__cta .btn { width: 100%; }
  /* Uc bilgi tek sirada kalsin, etiketler alt satira sarabilir */
  .hero__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
    padding-top: 14px;
    gap: 10px;
  }
  .hero__fact span { font-size: 11.5px; line-height: 1.35; }
  .hero__note { margin-top: 12px; font-size: 12px; }

  /* Footer tek satirda kalsin: program adi ve linkler gizlenir */
  .footer { font-size: 11.5px; }
  .footer__inner { justify-content: center; text-align: center; }
  .footer__links,
  .footer__program { display: none; }
}

/* ===== Alcak ekranlar =========================================
   Ekran kisaldikca en az kritik ogeden baslayarak sadelestiriyoruz,
   boylece icerik hep tek ekrana sigar ve kirpilmaz. */

@media (max-height: 700px) {
  .hero__note { display: none; }
}

/* Hem dar hem kisa (360x640 gibi telefonlar): butonlar alt alta oldugu icin
   dikey yer daraliyor, logo ve bosluklari biraz daha kisiyoruz. */
@media (max-width: 760px) and (max-height: 700px) {
  .hero__logo { width: min(200px, 52vw); margin-bottom: 12px; }
  .hero__text { margin-bottom: 14px; }
  .hero__facts { margin-top: 14px; padding-top: 11px; }
}

@media (max-height: 620px) {
  .hero__badge { display: none; }
  .hero__logo { margin-bottom: 12px; }
  .hero__facts { margin-top: 14px; padding-top: 12px; }
}

@media (max-height: 600px) and (max-width: 760px) {
  .hero__facts { display: none; }
}

@media (max-height: 480px) {
  .hero__facts { display: none; }
  .hero__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
