/* ==============================================================================
   WKCoin Official Download Center - Stylesheet
   Design: Modern Dark Theme, Glassmorphism, Neon Accents, Ultra-Clean
   ============================================================================== */

:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);
  
  --primary: #6366f1;
  --primary-glow: #818cf8;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-purple: #a855f7;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Fundo com Malha Criptográfica Brilhante */
.download-mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navegação */
.download-header {
  position: sticky;
  top: 0;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  padding: 16px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff;
}

.btn-sm-web {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-sm-web:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Seção Hero */
.hero-download {
  text-align: center;
  padding: 64px 0 40px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-glow);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
}

/* Banner de Download Inteligente / Recomendado */
.recommended-banner {
  max-width: 720px;
  margin: 0 auto 56px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.rec-left {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.rec-icon {
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 4px;
}

.rec-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-download-main {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 0 25px rgba(79, 70, 229, 0.45);
  white-space: nowrap;
}

.btn-download-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.6);
}

/* Grid de Plataformas */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.platform-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.platform-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s;
}

.platform-card.card-win:hover::before { background: linear-gradient(90deg, #00a4ef, #0078d7); }
.platform-card.card-linux:hover::before { background: linear-gradient(90deg, #f1502f, #f9a03f); }
.platform-card.card-android:hover::before { background: linear-gradient(90deg, #3ddc84, #10b981); }
.platform-card.card-web:hover::before { background: linear-gradient(90deg, #6366f1, #a855f7); }

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
  transition: transform 0.3s;
}

.platform-card:hover .card-icon {
  transform: scale(1.08);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 40px;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  width: 100%;
  padding: 10px 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
}

.btn-card {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  margin-top: auto;
}

.btn-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-card-web {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
}

.btn-card-web:hover {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.4);
}

/* Seção de Verificação de Integridade (Hashes) */
.integrity-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 64px;
}

.section-title-wrap {
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.hash-table {
  width: 100%;
  border-collapse: collapse;
}

.hash-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.hash-table td {
  padding: 14px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hash-cell {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.06);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-copy-hash {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.btn-copy-hash:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Guia de Segurança */
.security-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.sec-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.sec-card h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.download-footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .recommended-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .rec-left {
    flex-direction: column;
    text-align: center;
  }
  .btn-download-main {
    width: 100%;
    justify-content: center;
  }
  .hash-table th:nth-child(2),
  .hash-table td:nth-child(2) {
    display: none;
  }
}
