/*
 * Generated Theme: Industry Focused
 * Applied: 2025-10-31 13:25:42
 * Updated: 2025-12-03 (Builder Index Redesign - Issue #290)
 * Primary Color: #0F172A (Navy)
 * Accent Color: #C2410C (Terracotta)
 * Features: industry_specific, warm, premium_feel
 */

:root {
  /* Design System Colors */
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #1E3A5F;
  --navy-600: #122241;
  --navy-50: #F0F9FF;

  --orange-600: #C75B39;
  --orange-700: #AD4E30;

  --terra-600: #C2410C;
  --terra-700: #9A3412;

  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #5F6B81;
  --gray-700: #475569;

  --white: #FFFFFF;

  /* Legacy aliases for compatibility */
  --primary-color: var(--navy-900);
  --secondary-color: var(--gray-500);
  --accent-color: var(--terra-600);

  /* Typography */
  --heading-font: Inter;
  --body-font: Inter;

  /* Spacing */
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-float: 0 -4px 20px rgba(0,0,0,0.15);
}

/* === BUILDER PROFILES INDEX PAGE STYLES === */
/* Extracted from design reference: public/looks/20251129a/builder-profiles-index.html */

/* --- UTILITY CLASSES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  gap: 8px;
}
.btn-primary { background-color: var(--terra-600); color: var(--white); }
.btn-primary:hover { background-color: var(--terra-700); }

.btn-outline {
  border: 1px solid var(--gray-200);
  background-color: var(--white);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--navy-900); background-color: var(--gray-50); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-verified { background: #DBEAFE; color: #1E40AF; gap: 4px; }
.badge-unverified { background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); gap: 4px; }
.badge-tag { background: var(--gray-100); color: var(--navy-800); }

/* --- PAGE CONTROLS (FILTERS) --- */
.page-header {
  background: var(--navy-900);
  padding: 48px 0 64px;
  margin-bottom: -32px; /* Overlap effect */
}
.page-header h1 { color: var(--white); font-size: 1.75rem; margin-bottom: 8px; }
.page-header p { color: var(--gray-400); font-size: 0.95rem; }

.controls-container {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 10;
}
.filter-form {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.filter-item { flex: 1; min-width: 160px; }
.filter-item label {
  display: block; font-size: 0.7rem; text-transform: uppercase; color: var(--gray-500); font-weight: 700; margin-bottom: 4px;
}
.filter-select {
  width: 100%; padding: 8px 0; font-size: 0.95rem; font-weight: 500;
  border: none; border-bottom: 2px solid var(--gray-200);
  color: var(--navy-900); background: transparent; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 16px;
}

.toggle-wrapper {
  display: flex; align-items: center; gap: 12px; padding-left: 20px;
  border-left: 1px solid var(--gray-200); height: 40px;
}
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--gray-300); transition: .4s; border-radius: 34px;
}
.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--terra-600); }
input:checked + .slider:before { transform: translateX(20px); }

/* --- GRID LAYOUT & SECTIONS --- */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 40px;
  margin-bottom: 80px;
}

.unverified-header {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
  margin-bottom: -10px;
}
.unverified-header h2 { font-size: 1.4rem; color: var(--navy-800); font-weight: 600; }
.unverified-header p { font-size: 0.9rem; color: var(--gray-500); margin-top: 4px; }

/* --- BUILDER CARD STYLING --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card.unverified { border-color: var(--gray-200); }
.card.unverified .card-image { filter: grayscale(100%); opacity: 0.8; }
.card.unverified .card-body { background: #FAFAFA; }

.disclaimer-text {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--gray-200);
  font-size: 0.75rem; color: var(--gray-500); font-style: italic;
  text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px;
}

.card-media { position: relative; height: 240px; background: var(--gray-200); overflow: hidden; }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease; }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.9); border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; z-index: 5; transition: opacity 0.2s;
  font-weight: bold; color: var(--navy-900); box-shadow: var(--shadow-sm);
}
.card-media:hover .carousel-arrow { opacity: 1; }
.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

.compare-label {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  background: var(--white); padding: 6px 10px; border-radius: 6px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity 0.2s;
  border: 1px solid transparent;
}
.card:hover .compare-label, .compare-label.active { opacity: 1; }
.compare-label.active { border-color: var(--terra-600); color: var(--terra-600); background: #FFF7ED; }
.compare-label input { accent-color: var(--terra-600); cursor: pointer; }

.builder-logo {
  position: absolute; bottom: -24px; left: 24px; width: 64px; height: 64px;
  background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.builder-logo-text { font-weight: 800; color: var(--navy-900); font-size: 1.1rem; letter-spacing: -1px; }

.card-body { padding: 32px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.header-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.builder-name { font-size: 1.25rem; font-weight: 700; color: var(--navy-900); }

.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.stars { display: flex; color: #FBBF24; font-size: 0.9rem; align-items: center; }

.price-row {
  font-size: 0.9rem; color: var(--navy-800); padding: 12px 0;
  border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100);
  margin-bottom: 16px; display: flex; justify-content: space-between;
}
.tooltip-trigger { color: var(--gray-400); cursor: help; margin-left: 4px; vertical-align: middle; }

.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }

/* --- INTERSTITIAL (TRUST BANNER) --- */
.trust-banner {
  grid-column: 1 / -1;
  background: var(--navy-50); border: 1px solid #BFDBFE; border-radius: var(--radius-lg);
  padding: 24px 32px; display: flex; align-items: center; gap: 24px; margin: 16px 0;
}
.trust-icon { width: 48px; height: 48px; color: #3B82F6; flex-shrink: 0; }
.trust-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }
.trust-content p { color: var(--gray-500); font-size: 0.95rem; }

/* --- FLOATING COMPARE BAR --- */
.compare-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 90%;
}

.compare-bar.active {
  transform: translateX(-50%) translateY(0);
}

.compare-thumbnails {
  display: flex;
  gap: -8px;
}

.compare-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--navy-900);
  background: var(--white);
  object-fit: cover;
  margin-left: -12px;
}

.compare-thumb:first-child {
  margin-left: 0;
}

/* --- COMPARISON MODAL STYLES --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--white);
  width: 90%;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--navy-900);
}

.close-modal {
  font-size: 2rem;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
}

.close-modal:hover {
  color: var(--navy-900);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}

.compare-table th {
  width: 200px;
  color: var(--gray-500);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--gray-50);
}

.compare-table td {
  color: var(--navy-900);
  font-size: 0.95rem;
}

.comp-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.comp-title {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-layout { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 1.5rem; }
  .controls-container { padding: 12px 16px; }
  .filter-item { min-width: 100%; }
  .toggle-wrapper { border-left: none; padding-left: 0; margin-top: 12px; }

  /* Compare bar responsive */
  .compare-bar {
    width: 90%;
    flex-direction: column;
    gap: 12px;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
  }

  /* Compare table responsive */
  .compare-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .compare-table th,
  .compare-table td {
    min-width: 200px;
    white-space: normal;
  }
}
