/* InstaGrab — Home page styles (vanilla port of home.page.scss) */

.feed-container {
  max-width: 470px;
  margin: 0 auto;
  padding: 0 0 32px;
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 28px 16px 8px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 6px;
  background: linear-gradient(135deg, #FA7E1E, #D62976, #962FBF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ─── URL Input Row ─── */
.url-input-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-medium);
  border-radius: var(--radius-input);
  background: var(--surface);
  padding: 0 4px;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}

.url-input-row:focus-within {
  border-color: var(--color-primary);
}

.url-input-row .paste-btn {
  flex-shrink: 0;
  font-size: 1.2rem;
}

.url-input-row .paste-btn .icon {
  width: 22px;
  height: 22px;
}

.url-clear-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.url-clear-btn.visible {
  display: inline-flex;
}

.url-clear-btn .icon {
  width: 22px;
  height: 22px;
}

/* ─── Media Viewport ─── */
.media-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
}

.media-viewport img,
.media-viewport video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ─── Carousel Nav Arrows ─── */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: #262626;
}

.nav-arrow .icon {
  width: 16px;
  height: 16px;
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.nav-prev { left: 10px; }
.nav-next { right: 10px; }

/* ─── Slide Counter ─── */
.slide-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: none;
}

/* ─── Download Actions ─── */
.download-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 4px;
}

.download-actions .btn {
  border-radius: 10px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* ─── Likes ─── */
.likes {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px 0;
}

/* ─── Caption ─── */
.caption {
  padding: 4px 14px 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-line;
  word-break: break-word;
}

.caption strong {
  font-weight: 700;
  margin-right: 5px;
}

.more-btn {
  background: none;
  border: none;
  color: #8E8E8E;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  font-family: inherit;
}

/* ─── Carousel Dots ─── */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 10px 0 2px;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D1D5DB;
  transition: all 0.2s ease;
  cursor: pointer;
}

.carousel-dots span.active {
  background: var(--color-primary);
  transform: scale(1.35);
}

/* ─── Empty state ─── */
.empty-state {
  text-align: center;
  padding: 40px 24px;
}

.empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
}

.empty-state h3 {
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.empty-state p {
  color: #8E8E8E;
  font-weight: 500;
  margin: 0;
  font-size: 0.92rem;
}

/* ─── Loading skeleton card ─── */
.skeleton-media {
  width: 100%;
  height: 300px;
  border-radius: 0;
  margin: 0;
}

.skeleton-row {
  height: 12px;
}
