/*
 * foildb styles. Plain CSS via Propshaft — no build step.
 */

:root {
  --blue-50: #eef6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;

  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f4f8fc;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  color: var(--blue-700);
}

.site-header {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: white;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.site-header .wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.site-header .logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
}

.site-header .logo span {
  color: var(--blue-100);
}

.site-header .tagline {
  color: var(--blue-100);
  font-size: 14px;
}

.site-header .site-nav a {
  color: var(--blue-100);
  font-size: 14px;
  font-weight: 600;
}

.site-header .site-nav a:hover {
  color: white;
}

.site-header .locale-switcher {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.site-header .locale-link {
  color: var(--blue-100);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

.site-header .locale-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.site-header .locale-link.current {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--blue-900);
}

h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-900);
  margin: 32px 0 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Front wing line grid (index) */

.line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.line-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.line-card .brand {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600);
}

.line-card .line-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 2px 0 14px;
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.size-chip:hover {
  background: var(--blue-100);
  border-color: var(--blue-400);
}

.size-chip .size-name {
  font-size: 14px;
  color: var(--blue-700);
}

.size-chip .size-area {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.stat {
  background: var(--blue-50);
  border-radius: 8px;
  padding: 8px 10px;
}

.stat .label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat .value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.badge.skill {
  background: var(--blue-900);
  color: white;
}

/* Brands */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.06), 0 16px 32px rgba(37, 99, 235, 0.12);
}

.brand-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.brand-card-count {
  font-size: 13px;
  color: var(--muted);
}

/* Show page */

.detail-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 8px;
}

.detail-hero .brand {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600);
  margin-bottom: 4px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.set-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.set-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
}

.set-list .set-name {
  font-weight: 700;
  color: var(--blue-900);
  display: block;
  margin-bottom: 4px;
}
