/* ============================================
   KOREA DECODE — Home Page CSS
   ============================================ */

/* --- Hero --- */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

/* Background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

/* Dark gradient overlay for text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.7) 40%,
      rgba(0, 0, 0, 0.35) 100%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9) 0%,
      transparent 40%
    );
  pointer-events: none;
}

/* Subtle accent glow */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.08) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Content above overlay */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-description {
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: var(--space-xl);
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .btn-outline {
  backdrop-filter: blur(4px);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Featured Section --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section-header h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.section-header .view-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Category Filter --- */
.category-filter {
  margin-bottom: var(--space-xl);
}

/* --- Decode Preview Section --- */
.decode-preview {
  background: var(--bg-sec);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.decode-preview-content h2 {
  margin-bottom: var(--space-md);
}

.decode-preview-content p {
  margin-bottom: var(--space-lg);
}

.decode-preview-demo {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.decode-preview-demo .demo-q {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
  border-left: 2px solid var(--accent);
}

.decode-preview-demo .demo-a {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Stats Strip --- */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* --- Editorial Section --- */
.editorial-intro {
  margin-bottom: var(--space-2xl);
  max-width: var(--max-width-narrow);
}

.editorial-intro h2 {
  margin-bottom: var(--space-lg);
}

.editorial-intro p {
  margin-bottom: var(--space-md);
  font-size: 1rem;
  line-height: 1.8;
}

.category-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition);
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
  color: var(--accent);
}

.category-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: none;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Editorial About Section --- */
.editorial-about {
  border-top: 1px solid var(--border);
}

.editorial-about h2 {
  margin-bottom: var(--space-lg);
}

.editorial-about p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* --- Skeleton Card --- */
.skeleton-card .card-image {
  aspect-ratio: 16/9;
}

@media (max-width: 1024px) {
  .category-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: var(--space-2xl) 0;
  }

  .hero-bg img {
    object-position: center center;
  }

  .decode-preview {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .category-highlights {
    grid-template-columns: 1fr;
  }
}
