/* ==========================================================================
   DOCTOR MOBILE LAB - SMARTPHONE HARDWARE SPECIFICATIONS PORTAL
   Master Stylesheet for models-info.html
   Matching EXACT Home Theme & Typography:
   - Canvas: Modern Crisp Light Theme (#FFFFFF / #F8FAFC)
   - Primary Accent: Doctor Mobile Lab Crimson Red (#C8232B / #E53935)
   - Deep Text & Brand: Brand Charcoal Navy (#0F172A / #1E293B)
   - Font Family: Outfit (Headings), Plus Jakarta Sans (Tech/Capsules), Inter (Body)
   ========================================================================== */

/* --- HERO SECTION: CRISP LIGHT AMBIENT CANVAS --- */
.models-hero-section {
  position: relative;
  min-height: 480px;
  background-color: var(--bg-primary, #FFFFFF);
  background-image: 
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(200, 35, 43, 0.08) 0%, transparent 75%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(2, 132, 199, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 70%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 105px 20px 48px;
  overflow: visible;
  border-bottom: 1px solid var(--border-glass, #E2E8F0);
}

.models-hero-container {
  position: relative;
  z-index: 10;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Cute 3D Tagline Badge (Matching Home) */
.models-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200, 35, 43, 0.08);
  border: 1px solid var(--border-glow, rgba(200, 35, 43, 0.25));
  padding: 7px 20px;
  border-radius: var(--radius-full, 9999px);
  color: var(--text-primary, #0E2030);
  font-family: var(--font-tech, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 0 16px rgba(200, 35, 43, 0.1);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.models-hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green, #10b981);
  box-shadow: 0 0 10px var(--accent-green, #10b981);
  animation: pulseGreenDot 1.8s infinite;
}

@keyframes pulseGreenDot {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero Title (Outfit Font & Crimson Highlight matching index.html) */
.models-hero-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2.3rem, 5.2vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary, #0E2030);
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.models-hero-gradient {
  color: var(--accent-red, #C8232B);
  display: inline-block;
  position: relative;
  text-shadow: 0 4px 20px rgba(200, 35, 43, 0.22);
}

/* Hero Subtitle (Inter Font & Slate Slate matching index.html) */
.models-hero-subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--text-secondary, #334454);
  font-weight: 400;
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto 24px;
}

/* Micro Stats Strip (Cute 3D Warm Capsules) */
.models-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.models-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 9999px;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-glass, #E2E8F0);
  color: var(--text-primary, #0F172A);
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.models-stat-chip strong {
  color: var(--accent-red, #C8232B);
  font-weight: 900;
}

/* ==========================================================================
   SMART SEARCH BOX & LIVE SUGGESTIONS DROPDOWN (CLASSIC 3D & WARM THEME)
   ========================================================================== */
.smart-search-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.smart-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 9999px;
  padding: 6px 8px 6px 20px;
  box-shadow: 
    0 10px 30px -6px rgba(15, 23, 42, 0.08),
    0 0 0 1px var(--border-glass, #E2E8F0);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
}

.smart-search-box:focus-within {
  border-color: var(--accent-red, #C8232B);
  box-shadow: 
    0 16px 40px -8px rgba(200, 35, 43, 0.25),
    0 0 0 4px rgba(200, 35, 43, 0.15);
  transform: translateY(-2px);
}

.smart-search-icon {
  color: var(--accent-red, #C8232B);
  flex-shrink: 0;
  margin-right: 14px;
}

.smart-search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.12rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  color: var(--text-primary, #0E2030);
  padding: 10px 0;
  font-weight: 500;
}

.smart-search-input::placeholder {
  color: var(--text-muted, #6B7B8C);
  font-weight: 400;
}

.smart-search-clear {
  background: rgba(14, 32, 48, 0.08);
  border: none;
  color: var(--text-secondary, #334454);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: all 0.15s ease;
}

.smart-search-clear:hover {
  background: var(--accent-red, #C8232B);
  color: #FFFFFF;
}

/* 3D Tactile Search Button (Matching index.html btn-3d-primary) */
.btn-search-open {
  background: linear-gradient(180deg, #ff2a44 0%, #c8232b 60%, #a51b22 100%);
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  border-radius: 9999px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 4px 0 #9f1239,
    0 8px 18px rgba(200, 35, 43, 0.32);
}

.btn-search-open:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 0 #9f1239,
    0 12px 24px rgba(200, 35, 43, 0.45);
}

.btn-search-open:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #9f1239;
}

/* --- LIVE SUGGESTIONS DROPDOWN PANEL --- */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--border-glass, #E2E8F0);
  box-shadow: 
    0 25px 50px -12px rgba(15, 23, 42, 0.12),
    0 0 0 1px var(--border-glass, #E2E8F0);
  max-height: 480px;
  overflow-y: auto;
  z-index: 1000;
  padding: 10px;
  display: none;
  text-align: left;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.suggestions-header {
  padding: 8px 14px;
  font-family: var(--font-tech, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #64748B);
  border-bottom: 1px solid var(--border-glass, #E2E8F0);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  gap: 12px;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: #F8FAFC;
  border-color: rgba(200, 35, 43, 0.3);
}

.suggestion-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.suggestion-thumb-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #F1F5F9;
  border: 1px solid var(--border-glass, #E2E8F0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 4px;
}

.suggestion-thumb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.suggestion-info {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary, #0E2030);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-match {
  background: #FEF08A;
  color: #0E2030;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 3px;
}

.suggestion-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-secondary, #334454);
}

.suggestion-brand-pill {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-red, #C8232B);
  background: rgba(200, 35, 43, 0.08);
  border: 1px solid rgba(200, 35, 43, 0.2);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.suggestion-year-pill {
  font-weight: 600;
  color: var(--text-secondary, #334454);
  background: rgba(14, 32, 48, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.suggestion-action-btn {
  background: linear-gradient(180deg, #ff2a44 0%, #c8232b 100%);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  box-shadow: 0 2px 0 #9f1239;
  transition: all 0.15s ease;
}

.suggestion-item:hover .suggestion-action-btn,
.suggestion-item.active .suggestion-action-btn {
  transform: scale(1.05);
}

.suggestion-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted, #6B7B8C);
  font-size: 0.92rem;
}

/* Popular Searches Cute 3D Capsule Tags */
.hero-popular-searches {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.popular-label {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary, #334454);
  margin-right: 4px;
}

.popular-tag-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-glass, #E2E8F0);
  color: var(--text-primary, #0F172A);
  padding: 7px 16px;
  border-radius: 9999px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.popular-tag-btn:hover {
  background: var(--accent-red, #C8232B);
  border-color: var(--accent-red, #C8232B);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 
    0 4px 0 #9f1239,
    0 8px 16px rgba(200, 35, 43, 0.3);
}

/* Full 12-Point Specs Button on Cards */
.btn-full-specs {
  width: 100%;
  background: linear-gradient(135deg, #C8232B 0%, #E53935 100%);
  color: #FFFFFF;
  border: none;
  padding: 11px 16px;
  border-radius: var(--radius-md, 18px);
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(200, 35, 43, 0.28);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 14px;
}

.btn-full-specs:hover {
  background: linear-gradient(135deg, #A51B22 0%, #C8232B 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 35, 43, 0.4);
}

/* Card Pulse Effect when directly opened */
@keyframes cardFocusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 35, 43, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(200, 35, 43, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 35, 43, 0);
    transform: scale(1);
  }
}

.model-card-highlighted {
  animation: cardFocusPulse 1.6s ease-in-out 2;
  border-color: var(--accent-red, #C8232B) !important;
}

/* Modal Styling with Brand Navy Header */
.specs-modal-header {
  padding: 20px 28px;
  background: var(--brand-navy, #0E2030);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent-red, #C8232B);
}

/* Brand Chips Active Color Alignment (Doctor Mobile Lab Crimson Red) */
.brand-chip-btn.active {
  background: linear-gradient(180deg, #f43f5e 0%, #e11d48 60%, #be123c 100%) !important;
  border-color: #be123c !important;
  color: #ffffff !important;
  box-shadow: 
    0 4px 0 #9f1239,
    0 10px 20px rgba(225, 29, 72, 0.3) !important;
}

/* Responsive Tweaks */
@media (max-width: 640px) {
  .models-hero-section {
    padding: 85px 16px 35px;
  }
  .smart-search-box {
    padding: 4px 6px 4px 14px;
  }
  .smart-search-input {
    font-size: 0.98rem;
  }
  .btn-search-open {
    padding: 9px 15px;
    font-size: 0.82rem;
  }
  .btn-search-open span {
    display: none;
  }
  .suggestion-action-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
}
