/* ========================================
   BHUYAS — LIVE ARCHITECTURE NEWS
   Editorial Publication System
   ======================================== */

.live-news-editorial {
  background: #0E141B;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 56px);
  margin: 0;
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.live-news-editorial .section-subheading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f7f5e7;
  margin-bottom: 40px;
  padding: 0 clamp(12px, 3vw, 40px);
}

.live-news-layout {
  max-width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(140px, 0.25fr) minmax(0, 1fr) minmax(200px, 0.3fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Subtle Grid Lines — Editorial Markers */
.live-news-layout::before {
  content: '';
  position: absolute;
  left: 180px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(92, 124, 153, 0.15) 20%, rgba(92, 124, 153, 0.15) 80%, transparent);
  pointer-events: none;
}

/* ========================================
   LEFT: STACKED THUMBNAILS
   ======================================== */

.live-news-stack {
  position: relative;
  height: clamp(360px, 60vw, 620px);
}

.news-stack-items {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-stack-item {
  position: absolute;
  width: 100%;
  height: clamp(180px, 24vw, 260px);
  background: #0E141B;
  border: 3px solid rgba(171, 196, 218, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
  transform: translateY(0) scale(0.95);
  z-index: 1;
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 
              0 0 0 1px rgba(0, 0, 0, 0.8),
              inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  outline: 2px solid rgba(14, 20, 27, 0.9);
  outline-offset: -5px;
}

.news-stack-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.news-stack-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(14, 20, 27, 0.85), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0.02;
  transition: opacity 0.4s ease;
}

.news-stack-item.stack-position-0 {
  z-index: 3;
  opacity: 1;
  transform: translateY(0) scale(1);
  border: 3px solid rgba(171, 196, 218, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 
              0 0 0 2px rgba(0, 0, 0, 1),
              0 0 20px rgba(171, 196, 218, 0.3),
              inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  outline: 2px solid rgba(14, 20, 27, 1);
}

.news-stack-item.stack-position-0::after {
  opacity: 0.02;
}

.news-stack-item:hover {
  transform: translateY(-6px) scale(0.97);
  border-color: rgba(171, 196, 218, 0.9);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7),
              0 0 0 2px rgba(0, 0, 0, 1),
              0 0 24px rgba(171, 196, 218, 0.4),
              inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.news-stack-item:hover::before {
  opacity: 1;
}

.news-stack-item:hover::after {
  opacity: 0.05;
}

.news-stack-item:active {
  transform: translateY(-3px) scale(0.96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5),
              0 0 0 2px rgba(0, 0, 0, 1),
              inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.news-stack-item.stack-position-1 {
  z-index: 2;
  opacity: 0.8;
  transform: translateY(40px) scale(0.96);
}

.news-stack-item.stack-position-2 {
  z-index: 1;
  opacity: 0.6;
  transform: translateY(80px) scale(0.92);
}

.news-stack-item.stack-position-3 {
  z-index: 1;
  opacity: 0.45;
  transform: translateY(120px) scale(0.9);
}

.news-stack-item.stack-position-4 {
  z-index: 1;
  opacity: 0.35;
  transform: translateY(160px) scale(0.88);
}

.news-stack-item.stack-position-5 {
  z-index: 1;
  opacity: 0.25;
  transform: translateY(200px) scale(0.86);
}

.news-stack-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.0) brightness(1.0) contrast(1.05);
  transition: filter 0.7s ease, transform 0.6s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
  display: block;
  opacity: 1 !important;
}

.news-stack-item.stack-position-0 .news-stack-image {
  filter: saturate(1.05) brightness(1.05) contrast(1.08);
  image-rendering: auto;
  opacity: 1 !important;
}

.news-stack-item:hover .news-stack-image {
  filter: saturate(1.1) brightness(1.1) contrast(1.1);
  transform: scale(1.01) translateZ(0);
  opacity: 1 !important;
}

/* ========================================
   CENTER: MAIN IMAGE & CONTENT
   ======================================== */

.live-news-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 0 20px;
}

.news-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0B1117;
  border: 1px solid rgba(247, 245, 231, 0.08);
  overflow: hidden;
  margin: 0;
  z-index: 1;
}

.news-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) saturate(1.08) contrast(1.08);
  transition: filter 0.8s ease, transform 0.8s ease;
  will-change: transform, filter;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  backface-visibility: hidden;
  transform: translateZ(0);
  display: block;
  opacity: 1 !important;
}

.news-main-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 20, 27, 0) 70%, rgba(14, 20, 27, 0.15) 100%);
  pointer-events: none;
}

.news-main-image:hover img {
  transform: scale(1.01) translateZ(0);
  filter: brightness(1.08) saturate(1.1) contrast(1.1);
}

.news-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
}

.news-main-meta {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5C7C99;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  line-height: 1.6;
}

.news-main-headline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: #f7f5e7;
  margin: 0;
  text-transform: uppercase;
}

.news-main-description {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #9AA4AE;
  margin: 0;
  font-weight: 400;
}

.news-main-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f7f5e7;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid rgba(247, 245, 231, 0.14);
  border-radius: 4px;
  width: fit-content;
  transition: all 0.25s ease;
  background: rgba(247, 245, 231, 0.02);
}

.news-main-link:hover {
  transform: translateY(-2px);
  background: rgba(247, 245, 231, 0.08);
  border-color: rgba(247, 245, 231, 0.2);
}

.news-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #9AA4AE;
  margin: 0;
}

/* ========================================
   RIGHT: CONTROLS & INDEX
   ======================================== */

.live-news-controls {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: flex-end;
  padding-top: 40px;
}

.news-index {
  text-align: right;
  line-height: 1;
  position: relative;
}

/* Architectural Grid Marker */
.news-index::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: 40px;
  height: 1px;
  background: rgba(92, 124, 153, 0.3);
  margin-right: 24px;
}

.news-index-current {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 4rem;
  font-weight: 300;
  color: #f7f5e7;
  letter-spacing: 0.05em;
  display: block;
  line-height: 0.9;
  transition: opacity 0.6s ease;
}

.news-index-separator {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  color: rgba(92, 124, 153, 0.6);
  display: block;
  margin: 12px 0;
  letter-spacing: 0.1em;
}

.news-index-total {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.25rem;
  color: #9AA4AE;
  letter-spacing: 0.08em;
  display: block;
  font-weight: 300;
}

.news-navigation {
  display: none;
}

.news-prev,
.news-next {
  display: none;
}

/* ========================================
   CONNECTING LINES (ARCHITECTURAL GUIDES)
   ======================================== */

.news-guide-lines {
  position: absolute;
  width: 1px;
  height: 160px;
  background: linear-gradient(to bottom, rgba(92, 124, 153, 0.5), rgba(92, 124, 153, 0.2), transparent);
  right: 50%;
  top: -60px;
  opacity: 0.4;
  transition: opacity 0.6s ease;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .live-news-editorial {
    padding: 64px 32px;
  }

  .live-news-layout {
    grid-template-columns: 140px 1fr 200px;
    gap: 56px;
  }

  .live-news-stack {
    height: 500px;
  }

  .news-stack-item {
    height: 180px;
  }

  .news-index-current {
    font-size: 3rem;
  }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 767px) {
  .live-news-editorial {
    padding: 48px 20px;
    cursor: default;
  }

  .live-news-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .live-news-stack {
    height: 320px;
  }

  .news-stack-item {
    height: 140px;
  }

  .news-main-content {
    max-width: 100%;
  }

  .news-index-current {
    font-size: 2.5rem;
  }

  .live-news-controls {
    align-items: center;
  }

  .news-index {
    text-align: center;
  }

  .news-index::before {
    display: none;
  }

  .live-news-layout::before {
    display: none;
  }
}

/* ========================================
   UTILITIES
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .news-stack-item,
  .news-main-image img,
  .news-index-current,
  .live-news-editorial::before {
    transition: none !important;
  }
}

button:focus-visible {
  outline: 2px solid #5C7C99;
  outline-offset: 2px;
}
