/* ============================================================
   CLOUDPANG homepage — asymmetric editorial-broadcast hybrid
   ============================================================ */

/* ===== HERO ===== */
.hero {
  background: var(--bg-canvas);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 620px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-text {
  padding: 80px 48px 60px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-meta .live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-meta .live-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 500;
}

.hero-meta .timestamp {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-left: auto;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
}

.hero-deck {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-byline {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-byline strong {
  color: var(--text-primary);
  font-weight: 500;
}

.hero-byline .sep {
  width: 24px;
  height: 1px;
  background: var(--text-muted);
  display: inline-block;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* offset corner accent — breaks the rectangle */
.hero-corner {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: 16px 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-right: 2px solid var(--accent);
}

/* ===== BREAKING TICKER ===== */
.ticker {
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid var(--border-pearl);
  border-bottom: 1px solid var(--border-pearl);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: ticker-slide 50s linear infinite;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-label {
  background: var(--accent);
  color: #FFFFFF;
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-item {
  font-size: 13px;
  color: #FFFFFF;
}

.ticker-item span {
  color: var(--text-muted);
  margin-right: 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.ticker-sep {
  color: var(--accent);
  font-size: 14px;
}

/* ===== CATEGORY GRID ===== */
.category-section {
  padding: 100px 0 60px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-head h2 em {
  font-style: italic;
  color: var(--accent);
}

.section-head .meta {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

/* asymmetric category grid — three rows of intentional irregularity */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.cat-card:hover { transform: translateY(-3px); }

.cat-card .img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 20px;
  background: var(--hover-mist);
}

.cat-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cat-card:hover .img-wrap img { transform: scale(1.03); }

.cat-card .cat-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg-canvas);
  color: var(--text-primary);
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
}

.cat-card .cat-label::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.cat-card[data-accent="volt"] .cat-label::before {
  background: var(--accent-ent);
}

.cat-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.cat-card:hover h3 { color: var(--accent); }
.cat-card[data-accent="volt"]:hover h3 { color: #B3CC00; }

.cat-card .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cat-card .tagline-th {
  font-family: var(--font-thai-body);
  font-size: 13px;
  color: var(--text-muted);
}

/* asymmetric column spans */
.cat-card.span-7 { grid-column: span 7; }
.cat-card.span-5 { grid-column: span 5; }
.cat-card.span-6 { grid-column: span 6; }
.cat-card.span-4 { grid-column: span 4; }
.cat-card.span-8 { grid-column: span 8; }
.cat-card.span-12 { grid-column: span 12; }

/* large hero card variant */
.cat-card.featured .img-wrap { aspect-ratio: 21/9; margin-bottom: 24px; }
.cat-card.featured h3 { font-size: 32px; }
.cat-card.featured .tagline { font-size: 16px; }

/* ===== SCOREBOARD MODULE — broadcast zone ===== */
.scoreboard {
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: 60px 0;
  margin: 80px 0 0;
}

.scoreboard-head {
  max-width: 1440px;
  margin: 0 auto 32px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scoreboard-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: #FFFFFF;
  letter-spacing: -0.015em;
}

.scoreboard-head h3 .pang { color: var(--accent); }

.scoreboard-head .label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}

.scoreboard-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.score-card {
  background: var(--bg-steel);
  border: 1px solid var(--border-pearl);
  padding: 20px;
  position: relative;
}

.score-card .meta {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.score-card .teams {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.3;
}

.score-card .result {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.score-card.live .result { color: var(--accent); }
.score-card.upcoming .result { color: var(--text-muted); font-size: 22px; }

.score-card .result .status-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(255, 45, 45, 0.1);
  padding: 3px 8px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== EDITORIAL FEATURE STRIP ===== */
.editorial-strip {
  padding: 80px 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 64px;
  align-items: center;
}

.editorial-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-text .quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.8;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 400;
}

.editorial-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.editorial-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 24px;
}

.editorial-text .read-more {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  display: inline-block;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.editorial-text .read-more:hover { color: var(--accent); }

/* ===== TRENDING ROW ===== */
.trending-section {
  padding: 60px 0 80px;
  background: var(--hover-mist);
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trending-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.trending-item .num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.trending-item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.trending-item:hover h4 { color: var(--accent); }

.trending-item .meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding: 60px 32px 40px; }
  .hero-image-wrap { min-height: 400px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 40px; }
  .scoreboard-grid { grid-template-columns: repeat(2, 1fr); }
  .trending-grid { grid-template-columns: repeat(2, 1fr); }

  /* simplify category grid on tablet */
  .cat-card.span-7, .cat-card.span-5,
  .cat-card.span-6, .cat-card.span-4,
  .cat-card.span-8 { grid-column: span 6; }
  .cat-card.span-12 { grid-column: span 12; }
}

@media (max-width: 700px) {
  .category-section { padding: 60px 0 40px; }
  .section-head { margin-bottom: 36px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .cat-grid { gap: 28px; margin-bottom: 48px; }
  .cat-card.span-7, .cat-card.span-5,
  .cat-card.span-6, .cat-card.span-4,
  .cat-card.span-8, .cat-card.span-12 { grid-column: span 12; }
  .cat-card.featured h3 { font-size: 24px; }
  .scoreboard-grid { grid-template-columns: 1fr; }
  .scoreboard-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .trending-grid { grid-template-columns: 1fr; gap: 20px; }
  .editorial-text h3 { font-size: 28px; }
  .hero-text { padding: 48px 20px 32px; }
  .hero-meta .timestamp { display: none; }
}
