/* ============================================================
   NEWS तक — visual-stories.css
   Visual Stories Page — AajTak style
   ============================================================ */

/* Page Banner */
.vs-page-banner {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 22px 0;
  border-bottom: 2px solid var(--red);
}
.vs-page-title {
  font-family: var(--font-hindi);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--white);
  display: flex; align-items: center; gap: 10px;
  margin: 0;
}
.vs-page-title i { color: var(--red); }
.vs-page-sub {
  font-family: var(--font-hindi);
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin: 4px 0 0;
}

/* Category Nav */
.vs-cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.vs-cat-scroll {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
}
.vs-cat-scroll::-webkit-scrollbar { display: none; }
.vs-cat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-hindi); font-size: .78rem; font-weight: 700;
  padding: 7px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  color: var(--dark-3); background: var(--white);
  white-space: nowrap; transition: var(--t-fast);
  text-decoration: none; cursor: pointer;
}
.vs-cat-pill:hover { border-color: var(--red); color: var(--red); }
.vs-cat-pill.active { background: var(--red); border-color: var(--red); color: var(--white); }
.vs-cat-pill i { font-size: .8rem; }

/* ============================================================
   STORIES HORIZONTAL SCROLL ROW
   ============================================================ */
.vs-stories-row { overflow: hidden; }
.vs-stories-track {
  display: flex; gap: 16px;
  overflow-x: auto; scrollbar-width: none;
  padding: 10px 4px 14px;
  -webkit-overflow-scrolling: touch;
}
.vs-stories-track::-webkit-scrollbar { display: none; }

/* Story Circle Card */
.vs-card {
  flex-shrink: 0;
  width: 100px;
  cursor: pointer;
  text-align: center;
}
.vs-card-inner { position: relative; display: inline-block; }
.vs-card-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D0021B, #FF6B6B, #FFB800);
  padding: 2px;
  z-index: 0;
  animation: ringPulse 2s ease-in-out infinite alternate;
}
.vs-card-ring-seen {
  background: var(--gray-200) !important;
  animation: none !important;
}
@keyframes ringPulse {
  from { opacity: .85; }
  to   { opacity: 1; box-shadow: 0 0 12px rgba(208,2,27,.4); }
}
.vs-card-thumb {
  width: 80px; height: 110px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--white);
  position: relative; z-index: 1;
  box-shadow: var(--shadow-sm);
}
.vs-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vs-card-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%);
  border-radius: 12px;
}
.vs-card-meta {
  position: absolute; bottom: 6px; left: 4px; right: 4px;
  z-index: 3; text-align: center;
}
.vs-card-cat-badge {
  display: inline-block;
  font-size: .55rem; font-weight: 800;
  padding: 2px 6px; border-radius: 3px;
  background: var(--red); color: var(--white);
  letter-spacing: .3px; text-transform: uppercase;
  margin-bottom: 3px;
}
.vs-card-title {
  font-family: var(--font-hindi);
  font-size: .6rem; font-weight: 700;
  color: var(--white); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0;
}
.vs-slide-count-badge {
  position: absolute; top: 6px; right: 0; z-index: 4;
  background: rgba(0,0,0,.7); color: var(--white);
  font-size: .55rem; font-weight: 700;
  padding: 2px 5px; border-radius: 4px;
  display: flex; align-items: center; gap: 3px;
}
.vs-slide-count-badge.vs-seen { background: rgba(0,128,0,.7); }

/* Label below card */
.vs-card-label {
  font-family: var(--font-hindi);
  font-size: .68rem; font-weight: 700;
  color: var(--dark-3); text-align: center;
  margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.35;
}
.vs-card-seen .vs-card-label { color: var(--gray-400); }

/* ============================================================
   STORIES GRID
   ============================================================ */
.vs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.vs-grid-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  border: 1px solid transparent;
  transition: var(--t-base);
  cursor: pointer;
}
.vs-grid-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
  transform: translateY(-4px);
}
.vs-grid-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.vs-grid-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.vs-grid-card:hover .vs-grid-thumb img { transform: scale(1.05); }
.vs-grid-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.65) 100%);
}
.vs-grid-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--t-base);
}
.vs-grid-play i {
  width: 52px; height: 52px;
  background: rgba(208,2,27,.88);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem;
  padding-left: 4px;
  box-shadow: 0 0 0 8px rgba(208,2,27,.2);
  transform: scale(.8); transition: var(--t-base);
}
.vs-grid-card:hover .vs-grid-play { opacity: 1; }
.vs-grid-card:hover .vs-grid-play i { transform: scale(1); }
.vs-grid-count {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.72); color: var(--white);
  font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 4px;
}
.vs-grid-cat-badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-hindi); font-size: .65rem; font-weight: 800;
  padding: 3px 9px; border-radius: var(--r-sm);
  background: var(--red); color: var(--white);
}
.vs-grid-body { padding: 12px 14px 14px; }
.vs-grid-title {
  font-family: var(--font-hindi); font-size: .86rem; font-weight: 700;
  color: var(--dark); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px; transition: var(--t-fast);
}
.vs-grid-card:hover .vs-grid-title { color: var(--red); }
.vs-grid-meta {
  font-family: var(--font-hindi); font-size: .7rem; color: var(--gray-400);
  display: flex; align-items: center; gap: 8px;
}
.vs-grid-meta i { color: var(--red); }

/* Other category stories horizontal */
.vs-other-track {
  display: flex; gap: 14px;
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 8px; -webkit-overflow-scrolling: touch;
}
.vs-other-track::-webkit-scrollbar { display: none; }
.vs-other-card {
  flex-shrink: 0; width: 130px; cursor: pointer;
}
.vs-other-thumb {
  position: relative; width: 130px; height: 170px;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.vs-other-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vs-other-card:hover .vs-other-thumb img { transform: scale(1.07); }
.vs-other-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7) 100%);
}
.vs-other-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.vs-other-play i {
  width: 36px; height: 36px;
  background: rgba(208,2,27,.82);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: .9rem; padding-left: 2px;
  transition: var(--t-base);
}
.vs-other-card:hover .vs-other-play i { transform: scale(1.1); }
.vs-other-count {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.7); color: var(--white);
  font-size: .6rem; font-weight: 700; padding: 2px 6px;
  border-radius: var(--r-sm);
}
.vs-other-title {
  font-family: var(--font-hindi); font-size: .75rem; font-weight: 700;
  color: var(--dark); line-height: 1.4; margin: 8px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: var(--t-fast);
}
.vs-other-card:hover .vs-other-title { color: var(--red); }
.vs-other-cat {
  font-family: var(--font-hindi); font-size: .65rem; font-weight: 700;
  color: var(--red); display: block;
}

/* ============================================================
   STORY VIEWER (FULL SCREEN)
   ============================================================ */
.vs-viewer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.96);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.vs-viewer-overlay.active { display: flex; }
.vs-viewer-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  max-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--dark);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
@media (min-width: 576px) {
  .vs-viewer-container { border-radius: var(--r-xl); max-height: 92vh; height: 92vh; }
}

/* Progress Bars */
.vs-progress-bars {
  display: flex; gap: 4px;
  padding: 12px 16px 8px;
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
}
.vs-progress-bar {
  flex: 1; height: 3px;
  background: rgba(255,255,255,.3);
  border-radius: 2px; overflow: hidden;
}
.vs-progress-bar-fill {
  height: 100%; width: 0%;
  background: var(--white);
  border-radius: 2px;
  transition: width linear;
}
.vs-progress-bar-fill.complete { width: 100%; }

/* Viewer Header */
.vs-viewer-header {
  position: absolute; top: 28px; left: 0; right: 0;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, transparent 100%);
}
.vs-viewer-brand { display: flex; align-items: center; gap: 8px; }
.vs-viewer-logo { height: 28px; filter: brightness(10); }
.vs-viewer-meta { display: flex; flex-direction: column; flex: 1; }
.vs-viewer-cat {
  font-family: var(--font-hindi); font-size: .68rem; font-weight: 700;
  color: var(--yellow); letter-spacing: .3px;
}
.vs-viewer-time {
  font-family: var(--font-hindi); font-size: .62rem; color: rgba(255,255,255,.65);
}
.vs-viewer-actions { display: flex; gap: 6px; }
.vs-viewer-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white); font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--t-fast);
}
.vs-viewer-btn:hover { background: rgba(255,255,255,.25); }

/* Slide */
.vs-viewer-slide {
  position: relative; flex: 1; overflow: hidden;
}
.vs-viewer-slide img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.vs-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.92) 100%);
}
.vs-slide-content {
  position: absolute; bottom: 80px; left: 0; right: 0;
  padding: 0 20px;
}
.vs-slide-badge {
  display: inline-block;
  font-family: var(--font-hindi); font-size: .68rem; font-weight: 800;
  padding: 3px 10px; border-radius: var(--r-sm);
  background: var(--red); color: var(--white);
  margin-bottom: 10px; letter-spacing: .3px;
}
.vs-slide-title {
  font-family: var(--font-hindi);
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: 800; color: var(--white);
  line-height: 1.4; margin: 0 0 8px;
}
.vs-slide-desc {
  font-family: var(--font-hindi);
  font-size: .8rem; color: rgba(255,255,255,.8);
  line-height: 1.6; margin: 0;
}
.vs-slide-counter {
  position: absolute; bottom: 14px; right: 16px;
  font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.45);
  padding: 3px 10px; border-radius: var(--r-pill);
}

/* Nav Buttons */
.vs-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15);
  color: var(--white); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 11; transition: var(--t-fast);
}
.vs-nav-btn:hover { background: rgba(255,255,255,.28); }
.vs-nav-prev { left: 10px; }
.vs-nav-next { right: 10px; }

/* Viewer Footer */
.vs-viewer-footer {
  padding: 14px 16px;
  background: rgba(0,0,0,.6);
  display: flex; justify-content: center;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.vs-read-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: var(--white);
  font-family: var(--font-hindi); font-size: .82rem; font-weight: 700;
  padding: 10px 24px; border-radius: var(--r-pill);
  text-decoration: none; transition: var(--t-fast);
}
.vs-read-more-btn:hover { background: var(--red-dark); color: var(--white); gap: 10px; }

/* Responsive */
@media (max-width: 576px) {
  .vs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .vs-viewer-container { max-height: 100vh; border-radius: 0; }
  .vs-card { width: 88px; }
  .vs-card-thumb { width: 70px; height: 96px; }
}
@media (max-width: 400px) {
  .vs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .vs-slide-title { font-size: .95rem; }
}
