/**
 * Genç Meclis Simülasyonu — Global styles
 * Mobile-first, dark theme, glassmorphism
 */

/* -------------------------------------------------------------------------- */
/* CSS variables                                                               */
/* -------------------------------------------------------------------------- */
:root {
  --bg-deep: #070b12;
  --bg-elevated: #0d1424;
  --bg-glass: rgba(15, 23, 42, 0.55);
  --bg-glass-strong: rgba(15, 23, 42, 0.78);
  --border-glass: rgba(148, 163, 184, 0.12);
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --accent-warm: #f472b6;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --success: #34d399;
  --danger: #fb7185;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.18);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --header-h: 72px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------- */
/* Reset & base                                                                */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.no-scroll {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(56, 189, 248, 0.14), transparent),
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(167, 139, 250, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(244, 114, 182, 0.08), transparent);
  background-attachment: fixed;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: #7dd3fc;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------- */
/* Typography                                                                  */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.lead {
  font-size: 1.125rem;
  color: var(--text);
  max-width: 65ch;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/* Layout utilities                                                            */
/* -------------------------------------------------------------------------- */
.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Glass card                                                                  */
/* -------------------------------------------------------------------------- */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  border-color: rgba(56, 189, 248, 0.25);
}

.card-body {
  padding: 1.35rem 1.5rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(167, 139, 250, 0.2));
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #6366f1);
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  color: #0f172a;
  box-shadow: 0 14px 40px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--border-glass);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.14);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* Site header / nav (injected)                                                */
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Logo: kırpma yok — siyah kutu etkisini önlemek için contain + şeffaf çerçeve */
.nav-brand-mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.nav-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  display: block;
}

.nav-brand-text {
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1023px) {
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h) + 2.5rem) 1.5rem 2rem;
    background: rgba(13, 20, 36, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(148, 163, 184, 0.15);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .nav-menu.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 1rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition), padding-left var(--transition);
    display: block;
    width: 100%;
  }

  .nav-menu a:hover,
  .nav-menu a.is-active {
    color: var(--accent);
    padding-left: 1rem;
    background: transparent;
  }

  .nav-menu a.btn.btn-primary {
    margin-top: 2.5rem !important;
    text-align: center;
    border-radius: 999px;
    padding: 1rem !important;
    border-bottom: none;
    font-size: 1.05rem;
    color: #0f172a !important;
    background: linear-gradient(120deg, var(--accent), #6366f1) !important;
  }
}

@media (min-width: 1024px) {
  .nav-menu a {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
  }

  .nav-menu a:hover,
  .nav-menu a.is-active {
    color: var(--text);
    background: rgba(148, 163, 184, 0.1);
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  cursor: pointer;
  margin-left: auto;
  position: relative;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(7, 11, 18, 0.9);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-logo-mark {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  display: block;
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted);
  display: block;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.social-row {
  display: flex;
  gap: 0.5rem;
}

.social-row a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border: 1px solid var(--border-glass);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-row a:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
}

/* Marka renkli SVG’ler — üzerine gelince tek renk yerine hafif yükselme */
.social-row--branded a {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
}

.social-row--branded a:hover {
  background: rgba(15, 23, 42, 0.95);
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(56, 189, 248, 0.35);
}

.social-row .social-icon {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.social-link--x {
  background: rgba(0, 0, 0, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                       */
/* -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--danger);
}

.field-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.35rem;
  display: none;
}

.field-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--success);
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Video helpers                                                               */
/* -------------------------------------------------------------------------- */
.video-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-elevated);
}

.video-wrap video {
  width: 100%;
  vertical-align: middle;
}

.video-poster-fallback {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/* Page shell                                                                  */
/* -------------------------------------------------------------------------- */
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
}

main {
  flex: 1;
}

/* Sabit kısayol: Instagram (iletisim) — orijinal gradient kimlik */
.social-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-float--instagram {
  padding: 8px;
  background: radial-gradient(circle at 30% 100%, #fdf497 0%, #fd5949 45%, #d6249f 65%, #285aeb 100%);
}

.social-float--instagram:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(214, 36, 159, 0.35);
}

.social-float-icon {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------------------- */
/* KVKK + Privacy consent banner                                               */
/* -------------------------------------------------------------------------- */
body.has-kvkk-consent {
  padding-bottom: 140px;
}

.kvkk-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2600;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
}

.kvkk-consent__inner {
  width: min(1120px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 1.05rem 1.15rem;
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 900px) {
  .kvkk-consent__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 1.25rem;
  }
}

.kvkk-consent__text strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.kvkk-consent__text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.kvkk-consent__actions {
  display: grid;
  gap: 0.75rem;
}

.kvkk-consent__check {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.kvkk-consent__check input {
  width: 18px;
  height: 18px;
}

.kvkk-consent__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}
