/* ============================================================================
   News Page — Dragon Skin v4
   DE-inspired hero + featured card + 2-column grid layout
   ============================================================================ */

/* ─────────────── HERO ─────────────── */
.news-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 48vh, 520px);
  background: linear-gradient(135deg, #0f1a14 0%, #1C1912 40%, #12100A 100%);
  display: flex;
  flex-direction: column;
}

/* gold glint sweep on load */
.news-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 32%,
    rgba(255,242,205,0.12) 47%,
    rgba(226,199,106,0.22) 50%,
    rgba(255,242,205,0.12) 53%,
    transparent 68%
  );
  transform: translateX(-120%);
  animation: newsHeroSweep 2.4s cubic-bezier(.4,0,.1,1) 0.35s 1 both;
}
@keyframes newsHeroSweep { to { transform: translateX(120%); } }

.news-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
}

.news-hero .hero-overlay-title {
  font: var(--cm-w-bold) clamp(32px, 6vw, 72px)/1.05 var(--cm-font-display);
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6), 0 0 80px rgba(26,122,82,0.3);
  margin: 0;
}

/* ─────────────── NEWS SECTION ─────────────── */
.news-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 56px) clamp(60px, 8vw, 100px);
}

/* ─────────────── FEATURED CARD ─────────────── */
.featured-card {
  display: block;
  background: var(--cm-bg-surface);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius-xl);
  overflow: hidden;
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.featured-card:hover {
  border-color: color-mix(in srgb, var(--cm-primary) 55%, var(--cm-border));
  transform: translateY(-4px);
  box-shadow: var(--cm-shadow-xl), 0 20px 48px -16px rgba(26,122,82,0.3);
}

.featured-card .news-image {
  height: 300px;
  background-color: var(--cm-bg-elevated);
  background-size: cover;
  background-position: center;
  position: relative;
}

.featured-card .news-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18,16,10,0.5) 100%);
  pointer-events: none;
}

.featured-card .news-content {
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.featured-card .news-title {
  font: var(--cm-w-bold) clamp(22px, 3vw, 28px)/1.2 var(--cm-font-display);
  color: var(--cm-text-primary);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ─────────────── NEWS GRID ─────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ─────────────── NEWS CARD (grid) ─────────────── */
.news-card {
  display: block;
  background: var(--cm-bg-surface);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
  border-color: color-mix(in srgb, var(--cm-primary) 55%, var(--cm-border));
  transform: translateY(-5px);
  box-shadow: var(--cm-shadow-lg), 0 16px 38px -14px rgba(26,122,82,0.35);
}

.news-card .news-image {
  height: 200px;
  background-color: var(--cm-bg-elevated);
  background-size: cover;
  background-position: center;
  position: relative;
  flex: none;
}

.news-card .news-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(18,16,10,0.35) 100%);
  pointer-events: none;
}

.news-card .news-content {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card .news-title {
  font: var(--cm-w-bold) 18px/1.25 var(--cm-font-ui);
  color: var(--cm-text-primary);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ─────────────── SHARED CARD INTERNALS ─────────────── */
.news-category {
  display: inline-block;
  background: var(--cm-primary-subtle);
  color: var(--cm-primary);
  padding: 4px 10px;
  border-radius: var(--cm-radius-full);
  font: var(--cm-w-bold) 10px/1 var(--cm-font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: flex-start;
}

.news-date {
  display: block;
  font: var(--cm-w-medium) 12px/1 var(--cm-font-ui);
  color: var(--cm-text-tertiary);
  letter-spacing: 0.04em;
}

.news-excerpt {
  font: var(--cm-w-regular) 14px/1.6 var(--cm-font-ui);
  color: var(--cm-text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────── VIEW ALL LINK ─────────────── */
.view-all-wrapper {
  text-align: center;
  margin-top: clamp(32px, 5vw, 52px);
}

.view-all-link {
  display: inline-block;
  font: var(--cm-w-bold) 13px/1 var(--cm-font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cm-text-secondary);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--cm-border);
  transition: color 0.2s, border-color 0.2s;
}

.view-all-link:hover {
  color: var(--cm-text-primary);
  border-bottom-color: var(--cm-secondary);
}

/* ─────────────── SKELETON LOADING ─────────────── */
@keyframes skeletonShimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.featured-card.skeleton,
.news-card.skeleton {
  pointer-events: none;
  border-color: var(--cm-border-subtle);
  position: relative;
  overflow: hidden;
}

.featured-card.skeleton::before,
.news-card.skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--cm-bg-elevated) 60%, transparent) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
}

/* ─────────────── EMPTY STATE ─────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  font: italic var(--cm-w-regular) 15px/1.5 var(--cm-font-ui);
  color: var(--cm-text-tertiary);
  padding: clamp(24px, 4vw, 48px) 0;
}

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 760px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .featured-card .news-image {
    height: 220px;
  }
}

@media (max-width: 560px) {
  .news-section {
    padding-left: clamp(16px, 5vw, 24px);
    padding-right: clamp(16px, 5vw, 24px);
  }

  .news-hero .hero-overlay {
    padding: 80px 16px 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-hero::after { animation: none !important; }
  .featured-card.skeleton::before,
  .news-card.skeleton::before { animation: none !important; }
  .featured-card,
  .news-card { transition: border-color 0.2s; }
  .featured-card:hover,
  .news-card:hover { transform: none; }
}
