/* ==========================================================================
   Tainha Valley — Vitrine do Cardume & Diretório de Negócios
   Design System: Ocean Tech • Dark High-Contrast Glassmorphism
   ========================================================================== */

.vitrine-hero {
  padding: 8rem 0 3.5rem;
  background: radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.12) 0%, rgba(7, 12, 25, 0) 70%);
  position: relative;
  text-align: center;
}

.vitrine-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--brand-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px -5px rgba(6, 182, 212, 0.3);
}

.vitrine-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #fff;
  letter-spacing: -0.03em;
}

.vitrine-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Stats Counter Row */
.vitrine-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto 2.5rem;
}

.vitrine-stat-card {
  background: rgba(14, 23, 46, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.vitrine-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.4);
}

.vitrine-stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-cyan);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.vitrine-stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Search & Action Bar */
.vitrine-controls {
  max-width: 960px;
  margin: 0 auto 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 1.1rem 1.25rem 1.1rem 3.25rem;
  background: rgba(14, 23, 46, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1.05rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.3), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  display: none;
  border-radius: 50%;
  transition: color var(--transition-fast);
}

.search-clear:hover {
  color: #fff;
}

/* Category Filter Pills */
.categories-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  padding: 0.5rem 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 182, 212, 0.3) transparent;
}

.categories-wrapper::-webkit-scrollbar {
  height: 4px;
}

.categories-wrapper::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 4px;
}

.categories-list {
  display: flex;
  gap: 0.65rem;
  list-style: none;
  min-width: max-content;
  padding-bottom: 0.5rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: rgba(14, 23, 46, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  user-select: none;
}

.category-pill:hover {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(20, 32, 64, 0.85);
  transform: translateY(-1px);
}

.category-pill.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(14, 165, 233, 0.2));
  border-color: var(--brand-cyan);
  color: #fff;
  box-shadow: 0 0 20px -3px rgba(6, 182, 212, 0.4);
}

.pill-count {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-weight: 700;
}

.category-pill.active .pill-count {
  background: var(--brand-cyan);
  color: #070c19;
}

/* Results Header Bar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.results-count {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.results-count strong {
  color: #fff;
}

.results-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--brand-cyan);
  background: rgba(6, 182, 212, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Cards Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
}

/* Member Card */
.member-card {
  background: rgba(14, 23, 46, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.5), 0 0 25px -5px rgba(6, 182, 212, 0.15);
}

.member-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card-avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  background: rgba(14, 23, 46, 0.9);
}

.card-avatar.has-image {
  background: #ffffff;
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.25);
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
}

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

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  word-break: break-word;
}

.verified-icon {
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  color: var(--brand-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.card-description {
  font-size: 0.925rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.spec-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

/* Card Action Buttons */
.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-whatsapp-direct {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: #10b981;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-whatsapp-direct:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  color: #ffffff;
}

.btn-icon-secondary {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-icon-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-icon-secondary.instagram:hover {
  color: #ff5e62;
  border-color: rgba(255, 94, 98, 0.4);
  background: rgba(255, 94, 98, 0.1);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: rgba(14, 23, 46, 0.5);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.35rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 450px;
  margin: 0 auto 1.5rem;
}

/* Join Community Banner CTA */
.join-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(14, 23, 46, 0.9) 60%, rgba(255, 94, 98, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin-bottom: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.join-banner-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.join-banner-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.join-steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.join-step-box {
  background: rgba(7, 12, 25, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--brand-cyan);
  color: #070c19;
  margin-bottom: 0.75rem;
}

.join-step-box h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.join-step-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Modal Cadastre-se */
dialog.native-modal {
  background: #0e172e;
  color: var(--text-main);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 90%;
  max-width: 620px;
  margin: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(6, 182, 212, 0.2);
}

dialog.native-modal::backdrop {
  background: rgba(7, 12, 25, 0.85);
  backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .vitrine-hero {
    padding: 6.5rem 0 2.5rem;
  }
  .directory-grid {
    grid-template-columns: 1fr;
  }
  .vitrine-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .join-steps-row {
    grid-template-columns: 1fr;
  }
}
