/* ShoeShift - Mobile Sneaker Sizer Styling */
:root {
  --bg-primary: #0b0f19;
  --bg-card: #141b2d;
  --bg-input: #0e1424;
  --border-color: #24304d;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-orange: #f97316;
  --accent-cyan: #38bdf8;
  --badge-bg: #1e293b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 40px;
}

/* Header */
header {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-switcher {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn.active {
  background: #ea580c;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 20px;
  background: linear-gradient(135deg, #ea580c, #f97316);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.35);
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Container */
.container {
  max-width: 580px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card Module */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Reference Size Selector Hero */
.hero-size-box {
  background: linear-gradient(135deg, #1c273e, #131b2e);
  border: 1px solid #334368;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.size-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-step {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-step:hover {
  background: #334155;
}

.current-size-display {
  text-align: center;
}

.size-num {
  font-size: 32px;
  font-weight: 900;
  color: #f97316;
  font-family: monospace;
  line-height: 1;
}

.size-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Toggles & Segmented Controls */
.toggles-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8px;
}

.segmented-control {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
}

.seg-btn {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.seg-btn.active {
  background: #f97316;
  color: #fff;
}

/* Model Search */
.search-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
}

/* Shoe Model Matrix Cards */
.models-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.model-name {
  font-size: 14.5px;
  font-weight: 750;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shift-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.shift-badge.up { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.shift-badge.down { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.shift-badge.tts { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.sizes-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.size-chip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.size-chip-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.size-chip-val {
  font-size: 15px;
  font-weight: 850;
  color: #fff;
  font-family: monospace;
}

.model-fit-tip {
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 10px;
  border-radius: 6px;
  border-left: 3px solid #f97316;
}

/* Mobile Ad Slots */
.ad-mobile-slot {
  margin: 12px 0;
  text-align: center;
}

.ad-mobile-box {
  min-height: 90px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-subtext {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 4px;
}
