/* ==========================================================
   SPOT TENDENCIAS MOTOR - Minimalist Pastel Social Feed
   Autoplay in view, Creator Tagging, Pure Text UI
   ========================================================== */

:root {
  --bg-primary: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F6F3EC;
  
  /* Tonos Pastel Cálidos */
  --pastel-sage: #DDE7E1;
  --pastel-sage-border: #BDD1C6;
  --pastel-lavender: #E8E5F2;
  --pastel-lavender-border: #CBC5E3;
  --pastel-sand: #F7EFE3;
  --pastel-sand-border: #E8DAC6;
  --pastel-peach: #FDECE6;
  --pastel-peach-border: #F7D1C3;
  --pastel-sky: #E2ECF5;
  --pastel-sky-border: #BDD5EA;

  --text-main: #1F1F1E;
  --text-muted: #6B6B67;
  --text-subtle: #969692;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow: hidden;
  height: 100vh;
}

/* Header Minimalista */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--pastel-peach-border);
}

.live-pill {
  background: var(--pastel-peach);
  border: 1px solid var(--pastel-peach-border);
  color: #5A2A1E;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: -0.01em;
}

.filters-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.03);
}

.filter-btn.active {
  color: var(--text-main);
  background-color: var(--pastel-sand);
  border-color: var(--pastel-sand-border);
  font-weight: 600;
}

/* Feed Container Vertical Snap */
.feed-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  padding-top: 60px;
  scrollbar-width: none;
}
.feed-container::-webkit-scrollbar {
  display: none;
}

/* Individual Slide Card */
.trend-card {
  height: calc(100vh - 60px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

.card-wrapper {
  background: var(--bg-card);
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 86vh;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Media Box */
.media-box {
  width: 100%;
  flex: 1;
  min-height: 0;
  background-color: #000000;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay Etiqueta del Creador (Estilo Redes Sociales) */
.creator-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.creator-handle {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.creator-source {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.video-status-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  color: #FFFFFF;
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  font-weight: 500;
}

/* Audio Player Minimalista */
.audio-card-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--pastel-lavender), var(--pastel-sky));
  padding: 32px;
  text-align: center;
}

.audio-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.audio-title-lead {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

.audio-btn {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-btn:hover {
  background: var(--text-main);
  color: var(--bg-card);
}

/* Card Content inferior */
.card-content {
  padding: 16px 20px 18px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--pastel-sage);
  border: 1px solid var(--pastel-sage-border);
  color: #2B3D33;
}

.category-pill.pill-motos {
  background: var(--pastel-peach);
  border-color: var(--pastel-peach-border);
  color: #4A2E24;
}

.category-pill.pill-rutas {
  background: var(--pastel-sand);
  border-color: var(--pastel-sand-border);
  color: #483A27;
}

.meta-location {
  font-size: 11.5px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.card-summary {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Barra de acciones puramente tipográficas */
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.action-links-group {
  display: flex;
  gap: 10px;
}

.text-action {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.text-action:hover {
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.04);
}

.text-action.primary {
  color: var(--text-main);
  font-weight: 600;
}

.nav-hint {
  position: fixed;
  bottom: 18px;
  right: 22px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  pointer-events: none;
  backdrop-filter: blur(8px);
}

@media (max-width: 600px) {
  .trend-card {
    padding: 8px;
  }
  .card-wrapper {
    max-height: 90vh;
    border-radius: 18px;
  }
  .top-nav {
    padding: 0 14px;
  }
  .nav-hint {
    display: none;
  }
}
