﻿/* ============================================================
   globals.css — Design tokens, resets, typography
   Replaces globals.css + ThemeProvider wrapper div styles
   ============================================================ */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties (Light theme defaults) ── */
:root {
  --bg:            #ced8ff;
  --bg-alt:        #ffffff;
  --text:          #1a1a2e;
  --text-muted:    #555;
  --accent:        #0d6efd;
  --accent-hover:  #0056cc;
  --orange:        #ff6b00;
  --border:        #e0e0e0;
  --radius:        8px;
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --transition:    0.3s ease;
  --font:          'Inter', 'Roboto', sans-serif;
}

/* ── Dark theme overrides ── */
html.dark {
  --bg:            #1a1a2e;
  --bg-alt:        #222;
  --text:          #f0f0f0;
  --text-muted:    #aaa;
  --accent:        #ffb703;
  --accent-hover:  #e0a502;
  --border:        #333;
  --shadow:        0 4px 20px rgba(0,0,0,0.3);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  transition: background-color var(--transition), color var(--transition);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { line-height: 1.3; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; line-height: 1.7; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ── Links ── */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}
a.active { font-weight: 700; }

/* ── Shared Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition), transform 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-primary-lg {
  display: inline-block;
  background: #ff6b00;
  color: #fff !important;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform 0.15s;
}
.btn-primary-lg:hover { background: #e05a00; transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent) !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--accent); color: #fff !important; }

/* ── Images ── */
img { max-width: 100%; height: auto; display: block; }

/* ── Section utility ── */
.section { padding: 3rem 0; }
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* ── Spec Table ── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
}
html.dark .spec-table th { background: #333; }
.spec-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:nth-child(even) td { background: rgba(0,0,0,0.03); }
html.dark .spec-table tr:nth-child(even) td { background: rgba(255,255,255,0.04); }

/* ── Page header ── */
.page-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 1rem; }
.lead {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}
.caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.4rem;
  font-style: italic;
}

/* ── Grid helpers ── */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
