/* HueCub homepage styles */

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 64px 20px 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(0,51,102,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #003366, #336699, #6699CC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.8;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,51,102,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 30px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Section titles ── */
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1rem;
}

/* ── Featured Series ── */
.featured-section {
  padding: 48px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.series-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.series-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.series-cover {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.series-cover .placeholder-art {
  font-size: 4rem;
  opacity: 0.6;
}
.series-info {
  padding: 16px 18px;
}
.series-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.series-info .artist-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.series-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.series-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Recent Uploads ── */
.recent-section {
  padding: 48px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.artwork-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.artwork-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}
.artwork-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.artwork-thumb .placeholder-art {
  font-size: 3rem;
  opacity: 0.5;
}
.artwork-label {
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.artwork-label .artist-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 36px 20px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── How It Works ── */
.how-section {
  padding: 48px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.how-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.how-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}
.how-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.how-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA banner ── */
.cta-banner {
  text-align: center;
  padding: 56px 20px;
  background: linear-gradient(135deg, rgba(0,51,102,0.08), rgba(139,92,246,0.08));
  border-radius: var(--radius);
  max-width: var(--max-w);
  margin: 32px auto 48px;
}
.cta-banner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 40px 16px 32px; }
  .hero h1 { font-size: 1.8rem; }
  .series-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .artwork-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .stats-bar { gap: 24px; flex-wrap: wrap; }
  .stat-number { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .series-grid { grid-template-columns: 1fr; }
  .artwork-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
}
