/* ============================================================
   Quirkan – Área de Membros / Downloads
   Réplica estrutural da página de downloads original.
   Para trocar a identidade visual, edite apenas os tokens abaixo.
   ============================================================ */
:root {
  /* Marca Quirkan */
  --brand-accent: #0a7bff;          /* botões / hover dos cards */
  --brand-accent-rgb: 10, 123, 255;
  --brand-btn-secondary: #0040d8;   /* botão "Sair" */
  --hero-from: #0a47d6;
  --hero-to: #062f96;

  /* Superfícies */
  --bg: #0b1220;
  --card-bg: #111a2b;
  --card-border: #1f2c47;
  --text: #e5e9f0;
  --text-soft: rgba(255, 255, 255, .9);

  --font-body: "Manrope", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: -.1px;
  min-height: 100vh;
}

.page { max-width: 1024px; margin: 0 auto; padding: 10px 0; }

/* Logo (pílula de vidro) */
.logo-wrap {
  background: var(--bg);
  padding: 50px 20px 35px;
  display: flex;
  justify-content: center;
}
.logo-pill {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 40px 14px;
  padding: 16px 26px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  min-height: 70px;
}
.logo-pill img { display: block; max-width: 180px; height: auto; width: 180px; }
.logo-text {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .18em;
  color: #fff;
  text-transform: uppercase;
}

/* Hero */
.hero {
  background: linear-gradient(var(--hero-from) 0%, var(--hero-to) 100%);
  padding: 40px 16px;
  border-radius: 0 0 14px 14px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 32px;
  line-height: 36px;
  font-weight: 800;
}
.hero p {
  margin: 15px auto 0;
  max-width: 720px;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
}

/* Botão Sair */
.logout-row { display: flex; justify-content: flex-end; padding: 40px 16px 0; }
.btn-logout {
  display: inline-block;
  background: var(--brand-btn-secondary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 21px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 9999px;
  transition: background .2s ease-in-out, transform .2s ease-in-out;
}
.btn-logout:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* Grid de downloads (equivale a .gddc-*) */
.dl-container {
  padding: clamp(20px, 3vw, 40px) 16px 48px;
  font-family: var(--font-ui);
}
.dl-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1200px) { .dl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .dl-grid { grid-template-columns: 1fr; } }

.dl-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  text-align: center;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  padding-bottom: 14px;
}
.dl-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .dl-card { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

.dl-img { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 20px 20px 0 0; }
.dl-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.dl-title {
  min-height: 42px;
  margin: 12px 14px 6px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dl-btn {
  display: inline-block;
  align-self: center;
  background: var(--brand-accent);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  margin: 8px auto 0;
  box-shadow: 0 6px 14px rgba(var(--brand-accent-rgb), .35);
  transition: transform .18s, opacity .18s, box-shadow .18s;
}
.dl-btn:hover, .dl-btn:focus {
  transform: translateY(-2px);
  opacity: .96;
  box-shadow: 0 10px 18px rgba(var(--brand-accent-rgb), .45);
}

.dl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 8px;
  color: #cbd5e1;
  font-size: clamp(14px, 2.2vw, 17px);
}

@media (max-width: 560px) {
  .hero h1 { font-size: 26px; line-height: 32px; }
  .hero p { font-size: 16px; }
  .btn-logout { font-size: 16px; line-height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Login */
.auth-card {
  max-width: 460px; margin: 10px auto 0; padding: 32px 24px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  font-family: var(--font-ui); text-align: center;
}
.auth-card h1 { margin: 0 0 12px; font-size: 24px; font-weight: 800; color: #fff; }
.auth-note { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.auth-card label { display: block; text-align: left; font-size: 13px; font-weight: 700; color: #aab3c5; margin-bottom: 6px; }
.auth-card input[type=email] {
  width: 100%; padding: 14px 20px; border-radius: 50px; border: 1px solid #293049;
  background: #121728; color: #fff; font-size: 16px; outline: none; margin-bottom: 16px;
}
.auth-card input[type=email]:focus { border-color: var(--brand-btn-secondary); }
.auth-btn { border: 0; cursor: pointer; font-family: inherit; width: 100%; padding: 14px 20px; font-size: 16px; }
.auth-error {
  background: rgba(220, 38, 38, .12); border: 1px solid rgba(248, 113, 113, .4);
  color: #fca5a5; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; text-align: left;
}
