/**
 * News Category Page Styles
 *
 * @package MobLand_Pro
 * @since 1.0.0
 */

/* ============================================
   NEWS HERO SECTION
   ============================================ */

:root {
  --news-hero-svg: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='10' y='10' width='40' height='40' rx='2' stroke='%23C9A227' stroke-width='0.5' fill='none' opacity='0.06'/%3E%3Cline x1='15' y1='20' x2='45' y2='20' stroke='%23C9A227' stroke-width='0.5' opacity='0.08'/%3E%3Cline x1='15' y1='30' x2='35' y2='30' stroke='%23C9A227' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E");
  --news-hero-accent: rgba(201, 162, 39, 0.03);
}

[data-theme="light"] {
  --news-hero-svg: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='10' y='10' width='40' height='40' rx='2' stroke='%230D0D0D' stroke-width='0.5' fill='none' opacity='0.04'/%3E%3Cline x1='15' y1='20' x2='45' y2='20' stroke='%230D0D0D' stroke-width='0.5' opacity='0.06'/%3E%3Cline x1='15' y1='30' x2='35' y2='30' stroke='%230D0D0D' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
  --news-hero-accent: rgba(13, 13, 13, 0.02);
}

.news-hero {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  background: 
    var(--news-hero-svg),
    linear-gradient(180deg, var(--news-hero-accent) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-color);
}

.news-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.news-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--harrigan-gold);
}

.news-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.news-hero-description {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ============================================
   FILTER TABS
   ============================================ */

.news-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.news-filter-btn {
  padding: 0.625rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.news-filter-btn:hover {
  border-color: var(--harrigan-gold);
  color: var(--harrigan-gold);
}

.news-filter-btn.active {
  background: var(--harrigan-gold);
  border-color: var(--harrigan-gold);
  color: var(--midnight-black);
}

/* ============================================
   NEWS LISTING
   ============================================ */

.news-listing {
  padding: 4rem 1.5rem;
  background: var(--bg-primary);
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   BREAKING NEWS BANNER
   ============================================ */

.news-breaking {
  background: linear-gradient(90deg, rgba(220, 20, 60, 0.1) 0%, rgba(220, 20, 60, 0.05) 100%);
  border: 1px solid rgba(220, 20, 60, 0.3);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-breaking-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: #dc143c;
  color: white;
  border-radius: 0.25rem;
  font-family: var(--font-headline);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.news-breaking-badge svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.news-breaking-content {
  flex: 1;
}

.news-breaking-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.news-breaking-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.news-breaking-title a:hover {
  color: #dc143c;
}

.news-breaking-time {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ============================================
   FEATURED NEWS
   ============================================ */

.news-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
}

.news-featured-main {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-featured-main:hover {
  border-color: var(--harrigan-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-featured-image {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--border-color);
  overflow: hidden;
}

.news-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border-color) 100%);
}

.news-featured-image .placeholder svg {
  width: 64px;
  height: 64px;
  stroke: var(--text-secondary);
  opacity: 0.3;
}

.news-featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  background: var(--harrigan-gold);
  color: var(--midnight-black);
  border-radius: 0.25rem;
  font-family: var(--font-headline);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-featured-content {
  padding: 1.5rem;
}

.news-featured-category {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: rgba(201, 162, 39, 0.15);
  color: var(--harrigan-gold);
  border-radius: 0.25rem;
  font-family: var(--font-headline);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.news-featured-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.news-featured-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-featured-title a:hover {
  color: var(--harrigan-gold);
}

.news-featured-excerpt {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.news-featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.news-featured-meta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  opacity: 0.7;
}

.news-featured-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ============================================
   FEATURED SIDEBAR
   ============================================ */

.news-featured-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.news-sidebar-card:hover {
  border-color: var(--harrigan-gold);
}

.news-sidebar-category {
  display: inline-block;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  font-family: var(--font-headline);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}

/* Tag color variants */
.news-sidebar-category.season2,
.news-featured-category.season2,
.news-card-category.season2 {
  background: rgba(100, 149, 237, 0.15);
  color: #6495ed;
}

.news-sidebar-category.casting,
.news-featured-category.casting,
.news-card-category.casting {
  background: rgba(147, 112, 219, 0.15);
  color: #9370db;
}

.news-sidebar-category.production,
.news-featured-category.production,
.news-card-category.production {
  background: rgba(34, 139, 34, 0.15);
  color: #228b22;
}

.news-sidebar-category.breaking,
.news-featured-category.breaking,
.news-card-category.breaking {
  background: rgba(220, 20, 60, 0.15);
  color: #dc143c;
}

.news-sidebar-category.news,
.news-featured-category.news,
.news-card-category.news {
  background: rgba(201, 162, 39, 0.15);
  color: var(--harrigan-gold);
}

.news-sidebar-category.interview,
.news-featured-category.interview,
.news-card-category.interview {
  background: rgba(255, 140, 0, 0.15);
  color: #ff8c00;
}

.news-sidebar-category.theory,
.news-featured-category.theory,
.news-card-category.theory {
  background: rgba(138, 43, 226, 0.15);
  color: #8a2be2;
}

.news-sidebar-category.episode,
.news-featured-category.episode,
.news-card-category.episode {
  background: rgba(201, 162, 39, 0.15);
  color: var(--harrigan-gold);
}

.news-sidebar-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.news-sidebar-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-sidebar-title a:hover {
  color: var(--harrigan-gold);
}

.news-sidebar-date {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================
   NEWS SECTION HEADER
   ============================================ */

.news-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.news-section-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--harrigan-gold);
  border-radius: 2px;
}

.news-view-all {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--harrigan-gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: opacity 0.2s ease;
}

.news-view-all:hover {
  opacity: 0.8;
}

.news-view-all svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ============================================
   NEWS GRID
   ============================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ============================================
   NEWS CARD
   ============================================ */

.news-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  border-color: var(--harrigan-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-card-image {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--border-color);
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border-color) 100%);
}

.news-card-image .placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-secondary);
  opacity: 0.3;
}

.news-card-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  font-family: var(--font-headline);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(201, 162, 39, 0.9);
  color: var(--midnight-black);
}

.news-card-content {
  padding: 1.25rem;
}

.news-card-title {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.625rem;
}

.news-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card-title a:hover {
  color: var(--harrigan-gold);
}

.news-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.news-card-date,
.news-card-read-time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.news-card-date svg,
.news-card-read-time svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  opacity: 0.7;
}

/* ============================================
   PAGINATION
   ============================================ */

.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.news-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-pagination .page-numbers:hover {
  border-color: var(--harrigan-gold);
  color: var(--harrigan-gold);
}

.news-pagination .page-numbers.current {
  background: var(--harrigan-gold);
  border-color: var(--harrigan-gold);
  color: var(--midnight-black);
}

.news-pagination .page-numbers svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.news-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
}

.news-empty svg {
  width: 64px;
  height: 64px;
  stroke: var(--text-secondary);
  opacity: 0.3;
  margin-bottom: 1.5rem;
}

.news-empty h3 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.news-empty p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .news-featured {
    grid-template-columns: 1fr;
  }
  
  .news-featured-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .news-sidebar-card {
    flex: 1;
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .news-hero {
    padding: 6rem 1rem 3rem;
  }
  
  .news-hero h1 {
    font-size: 2.5rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-filters {
    gap: 0.375rem;
  }
  
  .news-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  
  .news-breaking {
    flex-direction: column;
    text-align: center;
  }
  
  .news-section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
