/* ============================================
   overrides.css
   Loaded after all design CSS — main.css and friends
   stay untouched. Only adds:
     1) Typography system (Inter body + Manrope display, full Kazakh Cyrillic)
     2) Logo sizing
     3) Navbar typography harmony
     4) Slows every infinite animation
     5) Softens jumpy hover translateY effects
   Fonts are loaded via <link> in layouts/app.blade.php (preconnect + swap).
   ============================================ */

/* ---- 1. Typography system ----
   Inter — body/UI/forms: best-in-class Kazakh Cyrillic, screen-tuned (ә ң ғ қ ө ұ ү һ і).
   Manrope — display/headings: keeps editorial brand voice on hero & section titles.
   Fallback chain ships Kazakh glyphs on every modern OS. */
:root {
  --font-display: 'Manrope', 'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-body:    'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --ease-soft: cubic-bezier(0.45, 0, 0.55, 1);
}

body,
.brand, .brand-text,
.section-eyebrow,
.dash-user-name,
.row-avatar-name,
.nav-links a,
.lang-btn,
input, select, textarea, button {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.btn,
.hero-title,
.section-title,
.success-title,
.success-id-num,
.success-step-num,
.stat-num,
.kpi-num,
.scanner-stat-num,
.form-section-title {
  font-family: var(--font-display);
}

/* Body: 500 keeps Inter dense enough next to Manrope display */
body {
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03'; /* Inter: cleaner Cyrillic alternates */
}

/* Display headings: tighter tracking, heavier weight */
h1, h2, h3, .hero-title, .section-title {
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero-title {
  letter-spacing: -0.04em;
}

/* ---- 2. Logo ---- */
.brand { gap: 10px; }
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .brand-logo { height: 32px; }
}
.footer-brand .brand-logo { height: 36px; }

/* ============================================
   3. Navbar typography harmony
   Make .nav-links a, .btn (Тіркелу), .lang-btn
   feel like one family — same case, weight rhythm,
   spacing rhythm.
   ============================================ */

/* All nav text shares the same baseline */
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
}
.nav-links a:hover {
  color: var(--green-primary);
}

/* The Register button in nav: drop UPPERCASE + tight letter-spacing
   so it doesn't visually fight with the rest of the nav */
.nav-links .btn,
.nav .btn-sm {
  text-transform: none;
  letter-spacing: -0.005em;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
}

/* Language switcher: align with nav rhythm */
.lang-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Dashboard nav consistency too */
.dash-nav a {
  font-weight: 500;
  letter-spacing: -0.005em;
}
.dash-role-tag {
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Auth tabs */
.auth-tab {
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
}

/* Buttons globally: Manrope works better with less aggressive tracking */
.btn {
  letter-spacing: -0.005em;
  font-weight: 700;
}

/* ============================================
   4. Animation slowdown (gentle, not disabled)
   ============================================ */

@keyframes pulse-soft {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%      { transform: scale(1.18); opacity: 0.7; }
}
.hero-eyebrow .dot {
  animation: pulse-soft 2.2s var(--ease-soft) infinite !important;
}

.hero-shape {
  animation-duration: 16s !important;
  animation-timing-function: var(--ease-soft) !important;
}

.hero-circle-text {
  animation-duration: 30s !important;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0);    }
  50%      { transform: translateY(-8px); }
}
.float-tag-1 {
  animation: float-soft 8s var(--ease-soft) infinite !important;
}
.float-tag-2 {
  animation: float-soft 8s var(--ease-soft) infinite 2s !important;
}
.float-tag-3 {
  animation: float-soft 8s var(--ease-soft) infinite 4s !important;
}

.marquee-track {
  animation-duration: 30s !important;
}

.scanner-line {
  animation-duration: 3.5s !important;
  animation-timing-function: var(--ease-soft) !important;
}

.success-icon::after {
  animation-duration: 2s !important;
}

/* ============================================
   5. Soften jumpy hover effects
   ============================================ */

.btn-primary:hover,
.btn-dark:hover {
  transform: translateY(-1px) !important;
}

.feature-card {
  transition-duration: 350ms !important;
  transition-timing-function: var(--ease-soft) !important;
}

.program-item:hover {
  padding-left: 0 !important;
}
.program-item .program-num,
.program-item .program-content {
  transition: transform 250ms var(--ease-soft);
}
.program-item:hover .program-num,
.program-item:hover .program-content {
  transform: translateX(8px);
}
.program-item:hover .program-arrow {
  transform: translateX(4px) !important;
}

/* ============================================
   HERO VISUAL — refined depth, gradient, glass
   ============================================ */

/* Stacking context + ambient atmosphere behind the visual */
.hero-visual {
  position: relative;
  isolation: isolate;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 30% 30%, rgba(113, 182, 44, 0.22), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(0, 61, 18, 0.10), transparent 55%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

/* Dashed inner ring removed — was showing the rotation path */

/* Blob — 3-stop gradient, deeper shadow with green hue, inner highlight */
.hero-shape {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(135deg, var(--green-bright) 0%, var(--green-primary) 55%, var(--green-dark) 100%) !important;
  box-shadow:
    0 40px 100px -20px rgba(0, 61, 18, 0.45),
    0 16px 40px -10px rgba(78, 172, 1, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

/* Circle text — bigger, crisper, more readable */
.hero-circle-text text {
  font-family: 'Manrope', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.32em !important;
  fill: var(--green-dark) !important;
}

/* Center emblem — paper-cream gradient, layered shadow, inner ring */
.hero-center-emblem {
  background:
    radial-gradient(circle at 50% 30%, #FFFFFF 0%, var(--cream) 70%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0, 61, 18, 0.10),
    inset 0 0 0 10px rgba(250, 252, 246, 1),
    inset 0 0 0 11px rgba(0, 61, 18, 0.06),
    0 30px 60px -20px rgba(0, 61, 18, 0.15),
    0 8px 20px -8px rgba(0, 61, 18, 0.10) !important;
}

/* "26" — gradient text fill */
.hero-center-emblem .year {
  background: linear-gradient(180deg, var(--green-dark) 0%, var(--green-dark) 50%, var(--green-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800 !important;
  letter-spacing: -0.05em !important;
}

.hero-center-emblem .label {
  font-weight: 700 !important;
  letter-spacing: 0.28em !important;
  font-size: 10px !important;
  color: var(--green-primary);
  margin-top: 10px !important;
}

/* Add a tiny dot row under "FORUM" label for editorial feel */
.hero-center-emblem .label::after {
  content: ' · 2026';
  color: var(--text-muted);
  font-weight: 500;
}

/* Float tags — frosted glass, refined typography */
.float-tag {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 13px 20px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  color: var(--green-dark) !important;
  box-shadow:
    0 12px 32px -8px rgba(0, 61, 18, 0.18),
    0 2px 6px rgba(0, 61, 18, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
  display: inline-flex;
  align-items: center;
  gap: 10px !important;
  /* Above .hero-shape, .hero-center-emblem (z:2), .hero-visual::after ring */
  z-index: 5 !important;
}

/* Slightly enlarge the leading emoji so it's a proper visual anchor */
.float-tag {
  font-size: 13px;
}
.float-tag::first-letter {
  font-size: 1.3em;
  margin-right: 2px;
}

/* Tag positions — pull them in slightly so they read better.
   float-tag-3 sits at right edge mid-height — keep clear of the rotating
   circle text by nudging it inward and bumping z-index higher than other tags. */
.float-tag-1 { top: 6% !important; left: -4% !important; }
.float-tag-2 { bottom: 14% !important; right: -4% !important; }
.float-tag-3 {
  top: 44% !important;
  right: -2% !important;
  z-index: 6 !important;
}

@media (max-width: 768px) {
  .float-tag-1 { left: 0% !important; }
  .float-tag-2 { right: 0% !important; }
  .float-tag-3 { right: 4% !important; }
}

/* ============================================
   LOGIN: header on top + split below
   Existing auth.css makes body.auth-page a 2-col grid; we
   override to flex-column so a normal site-header sits
   above, and a wrapper .auth-split holds the visual+form
   grid.
   ============================================ */

body.auth-page {
  display: flex !important;
  flex-direction: column;
  min-height: 100vh;
}
body.auth-page .auth-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
@media (max-width: 968px) {
  body.auth-page .auth-split {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HEADER alignment harmony
   ============================================ */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
  line-height: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lang-btn {
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1;
}

/* Make all clickable nav items the same height visually */
.nav-links a:not(.btn) {
  padding: 10px 0;
  line-height: 1;
}

/* ============================================
   TAG ICONS (SVG inside float-tags)
   ============================================ */

.tag-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--green-primary);
  stroke-width: 2;
}
.float-tag .tag-icon {
  margin-right: 2px;
}

/* Disable the older first-letter sizing that was for emoji */
.float-tag::first-letter {
  font-size: 1em !important;
  margin-right: 0 !important;
}

/* ============================================
   HERO CENTER EMBLEM — better center, sized fix
   ============================================ */

.hero-center-emblem {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.hero-center-emblem .year {
  font-size: clamp(72px, 11vw, 128px) !important;
  line-height: 0.85 !important;
  letter-spacing: -0.06em !important;
  font-weight: 900 !important;
}

.hero-center-emblem .label {
  margin-top: 0 !important;
}

/* ============================================
   MOBILE RESPONSIVE — landing
   ============================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Hero typography */
  .hero-title {
    font-size: clamp(40px, 11vw, 70px) !important;
  }
  .hero-desc {
    font-size: 15px;
  }

  /* Hero meta — wrap into 2 cols */
  .hero-meta {
    gap: 16px !important;
    padding-top: 24px !important;
  }
  .hero-meta-item {
    flex: 1 1 calc(50% - 16px);
  }

  /* Visual */
  .hero-visual {
    max-width: 380px;
    aspect-ratio: 1 / 1;
  }
  .hero-center-emblem {
    width: 60% !important;
    height: 60% !important;
    padding: 14px !important;
  }
  .hero-center-emblem .year {
    font-size: clamp(56px, 16vw, 88px) !important;
  }

  /* Float tags smaller */
  .float-tag {
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
  .tag-icon {
    width: 14px;
    height: 14px;
  }

  /* Header — stack tighter */
  .header-inner { gap: 12px; }
  .nav { gap: 16px; }
  .nav-links { gap: 16px; }

  /* CTA stacking */
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* About / stats / program — smaller padding */
  .about, .stats, .section, .cta-section {
    padding: 60px 0 !important;
  }

  /* About 4-col → 1 col on mobile */
  .about-features {
    grid-template-columns: 1fr !important;
  }

  /* Stats: 2x2 on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .stat-num {
    font-size: clamp(48px, 12vw, 72px) !important;
  }

  /* Program — tighter */
  .program-item {
    grid-template-columns: 60px 1fr 24px !important;
    gap: 16px !important;
    padding: 20px 0 !important;
  }
  .program-num {
    font-size: 28px !important;
  }
  .program-content h3 {
    font-size: 18px !important;
  }

  /* CTA card */
  .cta-card-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
  .footer-grid .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(36px, 12vw, 56px) !important;
  }
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-grid .footer-brand {
    grid-column: auto;
  }
  /* Float tags positions */
  .float-tag-1 { left: -2% !important; }
  .float-tag-2 { right: -2% !important; }
  .float-tag-3 { right: 2% !important; top: 50% !important; }
}

