/* ==========================================================================
   POLITICADE HOMEPAGE STYLES
   Civic Gamification Arcade & Simulator Hub
   ========================================================================== */

:root {
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --glow-cyan: rgba(6, 182, 212, 0.3);
  --glow-purple: rgba(168, 85, 247, 0.3);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 5rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-gradient {
  background: linear-gradient(135deg, #fff 20%, var(--accent-cyan) 60%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px var(--glow-cyan);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
  filter: brightness(1.08);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   Section Layout
   ========================================================================== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* ==========================================================================
   Scalable Catalog Controls (Filters & Instant Search)
   ========================================================================== */
.catalog-controls {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.catalog-search-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.catalog-search-box {
  flex: 1 1 300px;
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 2.5rem 0.75rem 2.6rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.catalog-search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--glow-cyan);
}

.catalog-search-clear {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  display: none;
  line-height: 1;
}

.catalog-search-clear:hover {
  color: #fff;
}

.catalog-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.catalog-filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.filter-pill:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(6, 182, 212, 0.35));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 14px var(--glow-cyan);
}

.filter-pill .pill-count {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 9999px;
  color: #cbd5e1;
}

.catalog-sub-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}

.status-toggles {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-btn:hover {
  color: #fff;
  border-color: var(--border-hover);
}

.status-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.catalog-count-info {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ==========================================================================
   Arcade Games Grid & Cards (Rich Original Design)
   ========================================================================== */
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.card.live {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 16px rgba(6, 182, 212, 0.1);
}

.card.live:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(6, 182, 212, 0.25);
}

.card.live::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 1.25rem;
}

.card-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-badge.upcoming {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
  line-height: 1.3;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex: 1;
}

.card-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-features li {
  font-size: 0.86rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.45;
}

.card-features li::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.card-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
  display: block;
}

.card.live .card-btn {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  border: none;
  box-shadow: 0 4px 14px var(--glow-cyan);
}

.card.live .card-btn:hover {
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

/* Empty Search Results State */
.catalog-empty-state {
  display: none;
  text-align: center;
  padding: 4rem 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  margin: 1.5rem 0;
  width: 100%;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.empty-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.btn-reset-filters {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.6rem 1.35rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.btn-reset-filters:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-hover);
}

/* ==========================================================================
   Pillars Section
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pillar-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
}

.pillar-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .hero {
    padding: 3.5rem 1.25rem 2.5rem;
  }
  .section {
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 360px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .catalog-search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .arcade-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }
  .card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
  }
  .card-title {
    font-size: 1.25rem;
  }
  .card-desc {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  .card-features {
    margin-bottom: 1.5rem;
  }
  .catalog-controls {
    padding: 1rem 0.85rem;
  }
  .filter-pill {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 1rem 2rem;
  }
  .hero-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .section {
    padding: 2.25rem 1rem;
  }
  .pillar-item {
    padding: 1.35rem 1rem;
  }
}
