/* ═══════════════════════════════════════════════════════
   FCFVA Homepage Dashboard v1.0
   Sections: Hero, Currents, News, Games, Apps, Posts, Crypto
   ═══════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --hp-bg: #060612;
  --hp-surface: rgba(255, 255, 255, 0.03);
  --hp-surface-hover: rgba(255, 255, 255, 0.07);
  --hp-border: rgba(0, 212, 255, 0.08);
  --hp-text: #c8c8d8;
  --hp-text-dim: #6b6b7b;
  --hp-text-bright: #f0f0f8;
  --hp-accent: #00d4ff;
  --hp-magenta: #e94560;
  --hp-purple: #9b59f0;
  --hp-green: #2ecc71;
  --hp-gradient: linear-gradient(135deg, #00d4ff 0%, #9b59f0 100%);
  --hp-card-radius: 14px;
  --hp-section-gap: 40px;
}

[data-theme="light"] {
  --hp-bg: #f5f5f8;
  --hp-surface: rgba(0, 0, 0, 0.03);
  --hp-surface-hover: rgba(0, 0, 0, 0.06);
  --hp-border: rgba(0, 0, 0, 0.08);
  --hp-text: #444;
  --hp-text-dim: #888;
  --hp-text-bright: #111;
  --hp-accent: #0066cc;
}

/* ── Layout ── */
.hp-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px var(--hp-section-gap);
  display: flex;
  flex-direction: column;
  gap: var(--hp-section-gap);
}

@media (min-width: 768px) {
  .hp-dashboard { padding: 32px 24px 48px; gap: 48px; }
}

/* ── Section Header ── */
.hp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hp-section-title {
  font-family: 'Orbitron', monospace, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hp-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-section-title .ico { font-size: 1.1rem; }

.hp-see-all {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hp-text-dim);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--hp-border);
  transition: all 0.2s;
}

.hp-see-all:hover {
  color: var(--hp-accent);
  border-color: var(--hp-accent);
  background: rgba(0, 212, 255, 0.06);
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hp-hero {
  position: relative;
  padding: 40px 24px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #0a0a2e 0%, #1a0a2e 40%, #0a1a3e 100%);
  border: 1px solid var(--hp-border);
}

.hp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(155, 89, 240, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hp-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hp-hero h1 {
  font-family: 'Orbitron', monospace, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.hp-hero h1 span {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-hero-sub {
  font-size: 0.9rem;
  color: var(--hp-text);
  margin: 0 0 24px;
  line-height: 1.5;
}

.hp-hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hp-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.hp-hero-btn.primary {
  background: var(--hp-gradient);
  color: #fff;
  border-color: rgba(0, 212, 255, 0.3);
}

.hp-hero-btn.primary:hover {
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
}

.hp-hero-btn.secondary {
  background: var(--hp-surface);
  color: var(--hp-text-bright);
  border-color: var(--hp-border);
}

.hp-hero-btn.secondary:hover {
  background: var(--hp-surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
  .hp-hero { padding: 56px 40px; }
  .hp-hero h1 { font-size: 2.2rem; }
  .hp-hero-sub { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════
   HORIZONTAL SCROLL CARDS
   Used by: Currents, Games, Apps
   ═══════════════════════════════════════════════════════ */
.hp-scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.hp-scroll-row::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .hp-scroll-row { margin: 0; padding-left: 0; padding-right: 0; }
}

/* ── Card Base ── */
.hp-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hp-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: rgba(0, 212, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.hp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-card-body {
  padding: 10px 12px 12px;
}

.hp-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hp-text-bright);
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-card-meta {
  font-size: 0.68rem;
  color: var(--hp-text-dim);
}

/* ── Track Card (Currents) ── */
.hp-track-card { flex: 0 0 170px; }

.hp-track-art {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, rgba(155, 89, 240, 0.2), rgba(0, 212, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.hp-track-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-track-play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hp-accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s;
}

.hp-track-card:hover .hp-track-play {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   NEWS SECTION
   ═══════════════════════════════════════════════════════ */
.hp-news-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hp-border);
  border-radius: var(--hp-card-radius);
  overflow: hidden;
  border: 1px solid var(--hp-border);
}

.hp-news-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--hp-surface);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.hp-news-item:hover {
  background: var(--hp-surface-hover);
}

.hp-news-city {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--hp-accent);
  background: rgba(0, 212, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 70px;
  text-align: center;
}

.hp-news-text {
  font-size: 0.82rem;
  color: var(--hp-text-bright);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   POSTS SECTION
   ═══════════════════════════════════════════════════════ */
.hp-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .hp-posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hp-posts-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.hp-post-card {
  display: flex;
  flex-direction: column;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}

.hp-post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.2);
}

.hp-post-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--hp-surface), rgba(0, 212, 255, 0.05));
  overflow: hidden;
}

.hp-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-post-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hp-post-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hp-text-bright);
  margin: 0 0 6px;
  line-height: 1.35;
}

.hp-post-excerpt {
  font-size: 0.78rem;
  color: var(--hp-text);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
}

.hp-post-date {
  font-size: 0.68rem;
  color: var(--hp-text-dim);
}

/* ═══════════════════════════════════════════════════════
   QUICK STATS ROW
   ═══════════════════════════════════════════════════════ */
.hp-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .hp-stats-row { grid-template-columns: repeat(4, 1fr); }
}

.hp-stat-card {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-card-radius);
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}

.hp-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.2);
}

.hp-stat-num {
  font-family: 'Orbitron', monospace, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.hp-stat-num.cyan { color: var(--hp-accent); }
.hp-stat-num.magenta { color: var(--hp-magenta); }
.hp-stat-num.purple { color: var(--hp-purple); }
.hp-stat-num.green { color: var(--hp-green); }

.hp-stat-label {
  font-size: 0.72rem;
  color: var(--hp-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════
   CRYPTO BANNER
   ═══════════════════════════════════════════════════════ */
.hp-crypto-banner {
  background: linear-gradient(135deg, rgba(155, 89, 240, 0.08), rgba(0, 212, 255, 0.05));
  border: 1px solid rgba(155, 89, 240, 0.15);
  border-radius: var(--hp-card-radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hp-crypto-info h3 {
  font-family: 'Orbitron', monospace, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hp-purple);
  margin: 0 0 4px;
}

.hp-crypto-info p {
  font-size: 0.78rem;
  color: var(--hp-text);
  margin: 0;
}

.hp-crypto-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hp-crypto-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.hp-crypto-btn.earn {
  background: linear-gradient(135deg, var(--hp-purple), var(--hp-accent));
  color: #fff;
}

.hp-crypto-btn.earn:hover { box-shadow: 0 4px 16px rgba(155, 89, 240, 0.3); }

.hp-crypto-btn.wallet {
  background: var(--hp-surface);
  color: var(--hp-text-bright);
  border: 1px solid var(--hp-border);
}

.hp-crypto-btn.wallet:hover { border-color: var(--hp-purple); }
