﻿/* ============================================
   JAMES FLOW — Home Page Dynamic Styles
   Complementa style.css — blocos dinamicos da home
   ============================================ */

/* --- Home Hero --- */
.home-hero {
  padding-top: 140px;
  padding-bottom: var(--section-y);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.home-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.home-hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* --- Banner / Announcement --- */
.home-banner {
  background: var(--accent-soft);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 100px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-hover);
  margin-bottom: 32px;
}
.home-banner-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Stats Row --- */
.home-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin: 48px 0;
}
.home-stat {
  text-align: center;
  min-width: 140px;
}
.home-stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}
.home-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- Feature Highlight --- */
.home-feature {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  transition: all var(--transition-medium);
}
.home-feature:hover {
  border-color: var(--border-medium);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.home-feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.home-feature-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Dynamic Blocks Container --- */
.home-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Loading State --- */
.home-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.home-loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 768px) {
  .home-hero { padding-top: 110px; }
  .home-stats { gap: 24px; }
  .home-stat { min-width: 100px; }
  .home-feature { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .home-stats { flex-direction: column; gap: 16px; }
}
