/* ==========================================================================
   THE CITY EXPRESS - UI COMPONENTS STYLES (CATEGORY & SUB-CATEGORY VIEWS)
   ========================================================================== */

/* ==========================================================================
   LEFT SIDEBAR MENU
   ========================================================================== */

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: rgba(255, 59, 48, 0.12);
  color: var(--brand-red);
  font-weight: 700;
}

.nav-item .nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.nav-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 10px 0;
}

.state-selector-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-left: 14px;
}

.state-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 10px;
}

.state-chip {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.state-chip:hover, .state-chip.active {
  background-color: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
}

/* ==========================================================================
   CATEGORY & SUB-CATEGORY PAGE HEADERS
   ========================================================================== */

.category-page-header, .subcat-page-header {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

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

.category-page-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-hindi);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.breadcrumb-nav span {
  color: var(--brand-red);
}

.back-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.back-btn-pill:hover {
  background-color: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
}

.subcategory-filter-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.subcategory-filter-strip::-webkit-scrollbar {
  display: none;
}

.subcat-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.subcat-pill:hover, .subcat-pill.active {
  background-color: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
}

.view-all-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-red);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Infinite Scroll Loading Indicator */
.infinite-scroll-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.infinite-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--brand-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   STORY CARDS & MOBILE LAYOUT ADJUSTMENTS
   ========================================================================== */

.story-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

/* Desktop-Only iOS 18 Glassmorphism & Continuous Curvature */
@media (min-width: 769px) {
  .story-card {
    border-radius: 22px; /* iOS 18 Corner Curvature */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
  }

  [data-theme="dark"] .story-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  }

  .story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.09);
  }
}

/* Top Card Layout: Headline Text Left + Thumbnail Right */
.card-content-top {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 18px;
  width: 100%;
}

.card-text-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-thumb {
  position: relative;
  width: 100%;
  height: 125px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lead / Hero Explainer Story Card */
.story-card.hero-card {
  padding: 0;
  overflow: hidden;
}

.hero-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  overflow: hidden;
}

.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card.hero-card:hover .hero-card-media img {
  transform: scale(1.03);
}

.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.95);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}

.hero-card-media:hover .play-overlay-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--brand-red);
}

.duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.hero-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-red);
  background-color: rgba(255, 59, 48, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.story-time-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.story-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  font-family: var(--font-hindi);
}

.story-summary-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.story-summary-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.story-summary-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-red);
  font-weight: bold;
}

/* Action Bar (Positioned 100% Full Width at Bottom Under Image & Text) */
.story-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 4px;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.story-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-tertiary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.action-btn.audio-read {
  color: var(--brand-blue);
  background-color: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.2);
}
.action-btn.audio-read:hover {
  background-color: var(--brand-blue);
  color: #FFFFFF;
}

.action-btn.epaper-read {
  color: var(--brand-red);
  background-color: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.2);
}
.action-btn.epaper-read:hover {
  background-color: var(--brand-red);
  color: #FFFFFF;
}

.action-btn.whatsapp-share {
  color: #25D366;
  padding: 6px 10px;
}
.action-btn.whatsapp-share:hover {
  background-color: #25D366;
  color: #FFFFFF;
}

.action-btn.fb-share {
  color: #1877F2;
  padding: 6px 10px;
}
.action-btn.fb-share:hover {
  background-color: #1877F2;
  color: #FFFFFF;
}

.action-btn.x-share {
  color: var(--text-primary);
  padding: 6px 10px;
}
.action-btn.x-share:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.action-btn.copy-link {
  color: var(--brand-amber);
  padding: 6px 10px;
}
.action-btn.copy-link:hover {
  background-color: var(--brand-amber);
  color: #FFFFFF;
}

/* ==========================================================================
   MOBILE VIEW CARD LAYOUT (@media max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .story-card {
    border-radius: var(--radius-md);
    box-shadow: none;
    padding: 14px;
    border: 1px solid var(--border-color);
  }

  .card-content-top {
    grid-template-columns: 1fr 115px;
    gap: 12px;
  }

  .card-thumb {
    height: 90px;
    border-radius: 10px;
  }

  /* Full-width single-line action bar sitting under image & text */
  .story-footer-actions {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 4px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .story-actions-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
  }

  .action-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
    gap: 4px;
  }

  .action-btn span {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   EXPRESS SHORTS VIDEO STORY REELS CAROUSEL
   ========================================================================== */

.shorts-carousel-section {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shorts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shorts-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.shorts-title i {
  color: var(--brand-red);
}

.shorts-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.shorts-track::-webkit-scrollbar {
  display: none;
}

.reel-card {
  flex: 0 0 135px;
  height: 230px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.reel-card:hover {
  transform: translateY(-4px);
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.88) 100%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reel-play-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.reel-caption {
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-hindi);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   CATEGORY SECTION BLOCKS
   ========================================================================== */

.category-block-section {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.category-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--brand-red);
  padding-bottom: 10px;
}

.category-block-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-block-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   STATE-WISE NEWS BLOCK (STATEWAR KHABREIN)
   ========================================================================== */

.state-news-block {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.state-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.state-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.state-pin-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 59, 48, 0.12);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.state-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.state-header-btn {
  border: 1px solid var(--brand-red);
  color: var(--brand-red);
  background-color: transparent;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.state-header-btn:hover {
  background-color: var(--brand-red);
  color: #FFFFFF;
}

.state-tab-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  scrollbar-width: none;
}
.state-tab-strip::-webkit-scrollbar {
  display: none;
}

.state-tab-item {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.state-tab-item:hover {
  color: var(--brand-red);
}

.state-tab-item.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.state-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.state-news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.state-news-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.state-news-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--brand-red);
  font-family: var(--font-hindi);
  cursor: pointer;
}

.state-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.state-pill-btn {
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.state-thumb-box {
  position: relative;
  width: 100%;
  height: 115px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.state-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   RIGHT SIDEBAR WIDGETS
   ========================================================================== */

.widget-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Desktop-Only Widget Card Elevation */
@media (min-width: 769px) {
  .widget-card {
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.widget-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-widget-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-match-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
}

.score-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.score-value {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.match-status-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.zodiac-selector {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.zodiac-selector::-webkit-scrollbar {
  display: none;
}

.zodiac-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  white-space: nowrap;
}

.zodiac-pill.active {
  background-color: var(--brand-amber);
  color: #FFFFFF;
  border-color: var(--brand-amber);
}

.horoscope-box {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-secondary);
  font-family: var(--font-hindi);
}

.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.trending-rank {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--brand-amber);
  min-width: 24px;
  line-height: 1;
}

.trending-text {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  font-family: var(--font-hindi);
}

.poll-question {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-hindi);
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-hindi);
  text-align: left;
  transition: all var(--transition-fast);
}

.poll-btn:hover {
  border-color: var(--brand-red);
  background-color: rgba(255, 59, 48, 0.08);
}

/* ==========================================================================
   AI VOICE AUDIO PLAYER OVERLAY
   ========================================================================== */

.audio-player-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 998;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.audio-title-text {
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-control-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--brand-red);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
