/**
 * STROYKA 2026 — Theme Base Stylesheet
 */

/* ==========================================================================
   1. CSS VARIABLES / DESIGN TOKENS (STROYKA ACCENT #D4AF37)
   ========================================================================== */
:root {
  --bg-primary: #0b1114;
  --bg-secondary: #10191e;
  --text-primary: #ffffff;
  --text-secondary: #999999;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);

  --bg-tertiary: #161616;
  --bg-elevated: #1a1a1a;
  --bg-card: var(--card-bg);
  --bg-card-hover: rgba(255, 255, 255, 0.05);

  --border-line: var(--border-color);
  --border-line-subtle: var(--card-border);
  --border-active: #D4AF37;

  --text-muted: #666666;
  --text-dim: #444444;

  --accent-green: #D4AF37;
  --accent-green-hover: #F3E5AB;
  --accent-green-glow: rgba(204, 233, 14, 0.25);
  --accent-green-subtle: rgba(204, 233, 14, 0.12);

  --header-bg: rgba(10, 10, 10, 0.85);
  --header-bg-scrolled: rgba(10, 10, 10, 0.95);
  --ticker-bg: #0d0d0d;
  --footer-bg: #080808;
  --modal-bg: #10191e;
  --modal-overlay-bg: rgba(0, 0, 0, 0.85);
  --input-bg: rgba(255, 255, 255, 0.03);
  --input-bg-focus: rgba(255, 255, 255, 0.06);

  --font-heading: 'Unbounded', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1240px;
  --container-padding: 24px;
  --header-height: 72px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Override Variables */
.light-theme,
[data-bs-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-line: rgba(0, 0, 0, 0.08);
  --border-line-subtle: rgba(0, 0, 0, 0.04);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-dim: #cbd5e1;
  --header-bg: rgba(255, 255, 255, 0.9);
  --header-bg-scrolled: rgba(255, 255, 255, 0.98);
  --ticker-bg: #f8fafc;
  --footer-bg: #f8fafc;
  --modal-bg: #ffffff;
  --modal-overlay-bg: rgba(15, 23, 42, 0.6);
  --input-bg: #f8fafc;
  --input-bg-focus: #ffffff;
  --accent-green: #97ae03;
  --accent-green-hover: #829602;
  --accent-green-glow: rgba(151, 174, 3, 0.2);
  --accent-green-subtle: rgba(151, 174, 3, 0.08);
  --border-active: #97ae03;
}

/* Background Modes for Dark Theme */
.bg-mode-2 {
  --bg-primary: #0d131f;
  --bg-secondary: #131b2e;
  --bg-tertiary: #19233c;
  --header-bg: rgba(13, 19, 31, 0.85);
  --header-bg-scrolled: rgba(13, 19, 31, 0.95);
  --footer-bg: #090e17;
}

.bg-mode-3 {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --header-bg: rgba(10, 14, 23, 0.85);
  --header-bg-scrolled: rgba(10, 14, 23, 0.95);
  --footer-bg: #070a10;
}

@media (min-width: 1441px) {
  :root {
    --container-max: 1440px;
    --container-padding: 32px;
  }
}

@media (min-width: 1621px) {
  :root {
    --container-max: 1620px;
    --container-padding: 40px;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: 100px 0;
  position: relative;
  border-top: 1px solid var(--border-color);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.section--dark {
  background-color: var(--bg-primary);
}

.section--alt {
  background-color: var(--bg-secondary);
}

.section-header {
  margin-bottom: 56px;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.section-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green);
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-primary);
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 600px;
  line-height: 1.5;
}

/* Base Buttons */
.arrow-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.arrow-button:hover {
  background: var(--accent-green);
  color: #0b1114;
  border-color: var(--accent-green);
}

.arrow-button--primary {
  background: var(--accent-green);
  color: #0b1114;
  border-color: var(--accent-green);
}

.arrow-button--primary:hover {
  background: var(--accent-green-hover);
  border-color: var(--accent-green-hover);
}

.btn-primary, .button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background-color: var(--accent-green);
  color: #0b1114;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary:hover, .button--primary:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204, 233, 14, 0.3);
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .section-header {
    margin-bottom: 36px;
  }
}
