/* autodata.css - Styles pour la page Autodata dynamique */

/* ==========================================
   SEARCH
   ========================================== */
.search-container {
  position: relative;
  margin-bottom: 24px;
}

#search-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: white;
  outline: none;
  transition: all 0.2s ease;
}

#search-input:focus {
  border-color: #0B5ED7;
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.2);
}

#search-input::placeholder {
  color: #808080;
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  display: none;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: rgba(11, 94, 215, 0.1);
}

.search-result-item:last-child {
  border-bottom: none;
}

/* ==========================================
   SELECTORS
   ========================================== */
.selectors-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.selector-wrapper {
  position: relative;
}

.selector-wrapper select {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: white;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: all 0.2s ease;
}

.selector-wrapper select:focus {
  border-color: #0B5ED7;
}

.selector-wrapper::after {
  content: '▼';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #808080;
  pointer-events: none;
}

.selector-wrapper select option {
  background: #1a1a2e;
  color: white;
}

/* ==========================================
   BREADCRUMB
   ========================================== */
#breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  color: #808080;
}

.bc-link {
  color: #0B5ED7;
  cursor: pointer;
  transition: color 0.2s ease;
}

.bc-link:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.bc-item {
  color: white;
}

.bc-sep {
  margin: 0 8px;
  color: #404040;
}

/* ==========================================
   RESULT CARD
   ========================================== */
#result-container {
  display: none;
}

.result-card {
  background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 24px;
}

/* ==========================================
   HEADER BAR
   ========================================== */
.result-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.step-label {
  font-size: 11px;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  color: #f97316;
  margin: 0 0 4px 0;
}

.step-subtitle {
  font-size: 13px;
  color: #808080;
  margin: 0;
}

.back-btn {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(59, 130, 246, 0.2);
}

/* ==========================================
   NAV TAGS
   ========================================== */
.nav-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  color: white;
}

.nav-tag-active {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.tag-label {
  font-size: 10px;
  color: #808080;
  text-transform: uppercase;
  margin-right: 8px;
}

/* ==========================================
   ENGINE SHEET
   ========================================== */
.engine-sheet {
  background: linear-gradient(135deg, rgba(20, 30, 48, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  margin: 24px;
  padding: 24px;
}

.sheet-label {
  font-size: 11px;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.sheet-title {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin: 0 0 4px 0;
}

.sheet-slug {
  font-size: 14px;
  color: #22c55e;
  margin-bottom: 20px;
}

.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sheet-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: white;
}

.stag-label {
  color: #808080;
  margin-right: 6px;
}

/* ==========================================
   POWER STATS
   ========================================== */
.power-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 24px 24px;
}

.stat-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-factory .stat-label { color: #22c55e; }
.stat-tuned .stat-label { color: #f97316; }
.stat-torque .stat-label { color: #ec4899; }
.stat-torque-tuned .stat-label { color: #a78bfa; }

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.stat-unit {
  font-size: 16px;
  font-weight: 400;
  margin-left: 2px;
}

.stat-suffix {
  font-size: 14px;
  color: #808080;
  font-weight: 400;
  margin-left: 4px;
}

/* ==========================================
   SPECS GRID
   ========================================== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0 24px 24px;
}

.specs-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
}

.specs-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0 0 4px 0;
}

.specs-subtitle {
  font-size: 13px;
  color: #808080;
  margin: 0 0 16px 0;
}

.specs-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.spec-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px;
}

.spec-label {
  font-size: 10px;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.spec-value {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

/* ==========================================
   OPTIONS SECTION
   ========================================== */
.options-section {
  padding: 0 24px 24px;
}

.options-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.option-tag {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* ==========================================
   CTA
   ========================================== */
.result-cta {
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #0B5ED7 0%, #0947a6 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(11, 94, 215, 0.4);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .power-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .selectors-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .nav-tags {
    gap: 8px;
  }
  
  .nav-tag {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .result-header-bar {
    flex-direction: column;
    gap: 16px;
  }
  
  .back-btn {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .selectors-container {
    grid-template-columns: 1fr;
  }
  
  .power-stats {
    grid-template-columns: 1fr;
  }
  
  .specs-boxes {
    grid-template-columns: 1fr;
  }
  
  .sheet-title {
    font-size: 18px;
  }
  
  .stat-value {
    font-size: 24px;
  }
}
