/* ============================================
   HOME PAGE STYLES
   ============================================ */

body.home-page {
  min-height: 100vh;
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #f1f3f9 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Topic Grid --- */
.topics-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 120px;
  position: relative;
  z-index: 1;
}

.topics-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-left: 4px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* --- Topic Card --- */
.topic-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(59, 130, 246, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(59, 130, 246, 0.08);
  text-decoration: none;
}

.topic-card:hover::before {
  opacity: 1;
}

.topic-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  filter: grayscale(0.1);
}

.topic-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.topic-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.topic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topic-card-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.topic-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.topic-card:hover .topic-card-cta {
  gap: 8px;
}

/* --- Footer --- */
.home-footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 500px) {
  .hero {
    padding: 80px 16px 40px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }
}
