/* ===== PANTALLA EXPLORAR ===== */

.explore-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  display: none;
  flex-direction: column;
  z-index: 50;
}

.explore-screen.active {
  display: flex;
}

/* Tabs fijos */
.explore-tabs {
  position: sticky;
  top: 0;
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--borde);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  z-index: 10;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.explore-tabs::-webkit-scrollbar {
  display: none;
}

.explore-tab {
  flex: 1;
  min-width: max-content;
  padding: 14px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--gris);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.explore-tab.active {
  color: var(--azul);
  font-weight: 600;
}

.explore-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--azul);
  border-radius: 3px 3px 0 0;
}

/* Contenido scrolleable */
.explore-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom) + 8px);
}

.explore-loading {
  display: flex;
  justify-content: center;
  padding: 40px;
}

/* ===== TAB: Quizás conozcas ===== */
.suggestion-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--borde);
}

.suggestion-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

.suggestion-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.suggestion-name {
  font-weight: 600;
  font-size: 15px;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-meta {
  font-size: 13px;
  color: var(--gris);
  margin-top: 2px;
}

.suggestion-bio {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-action {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--azul);
  color: #fff;
  transition: all 0.2s;
  flex-shrink: 0;
}

.suggestion-action:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.suggestion-action.sent {
  background: #e5e7eb;
  color: var(--gris);
}

/* ===== TAB: Buscar persona ===== */
.explore-search-box {
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--borde);
  position: sticky;
  top: 0;
  z-index: 5;
}

.explore-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--borde);
  border-radius: 12px;
  font-size: 15px;
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

.explore-search-input:focus {
  border-color: var(--azul);
}

.explore-search-results {
  padding: 0;
}

/* ===== TAB: Popular ===== */
.popular-posts {
  padding: 8px 0;
}

/* ===== TAB: Contenido ===== */
.content-categories {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.content-category:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.content-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.content-category-info {
  flex: 1;
}

.content-category-name {
  font-weight: 600;
  font-size: 15px;
  color: #111;
}

.content-category-count {
  font-size: 12px;
  color: var(--gris);
  margin-top: 2px;
}

/* ===== Estados vacíos ===== */
.explore-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gris);
}

.explore-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.explore-empty p {
  font-size: 14px;
  line-height: 1.5;
}
