/* ===== Meus Apps — whinston.com.br (dark) ===== */
:root {
  --blue: #60a5fa;
  --blue-strong: #3b82f6;
  --bg: #0b1120;
  --bg-alt: #0e1628;
  --card: #131d33;
  --card-hover: #172341;
  --line: #243356;
  --ink: #e2e8f0;
  --ink-soft: #94a3b8;
  --topbar-bg: rgba(11, 17, 32, .88);
  --chip-bg: #1a2745;
  --chip-border: #2c3d68;
  --chip-ink: #cbd5e1;
  --storebtn-bg: #f8fafc;
  --storebtn-ink: #0f172a;
  --storebtn-hover: #ffffff;
  --soon-bg: #26334f;
  --soon-ink: #7d8db0;
  --footer-bg: #070c18;
  --footer-line: #16223d;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, .5), 0 16px 40px rgba(0, 0, 0, .45);
}

/* ---- Tema claro ---- */
html[data-theme="light"] {
  --blue: #2563eb;
  --blue-strong: #2563eb;
  --bg: #f4f6fb;
  --bg-alt: #eef1f8;
  --card: #ffffff;
  --card-hover: #f8faff;
  --line: #dbe2ee;
  --ink: #0f172a;
  --ink-soft: #475569;
  --topbar-bg: rgba(255, 255, 255, .9);
  --chip-bg: #eef2f9;
  --chip-border: #d7deed;
  --chip-ink: #475569;
  --storebtn-bg: #0f172a;
  --storebtn-ink: #ffffff;
  --storebtn-hover: #1e293b;
  --soon-bg: #e2e8f0;
  --soon-ink: #94a3b8;
  --footer-bg: #e9edf5;
  --footer-line: #dbe2ee;
  --shadow: 0 1px 3px rgba(15, 23, 42, .07), 0 8px 24px rgba(15, 23, 42, .07);
  --shadow-hover: 0 4px 12px rgba(15, 23, 42, .12), 0 16px 40px rgba(15, 23, 42, .14);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 8px; padding-top: 8px; padding-bottom: 8px; }

.home-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.home-btn:hover { color: var(--blue); border-color: #33477a; transform: scale(1.08); }

.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.theme-btn:hover { color: var(--blue); border-color: #33477a; transform: scale(1.08); }
.theme-btn .icon-moon { display: none; }
html[data-theme="light"] .theme-btn .icon-sun { display: none; }
html[data-theme="light"] .theme-btn .icon-moon { display: block; }

/* ---- Bandeiras (idiomas) ---- */
.flags { display: flex; gap: 8px; align-items: center; }
.flag {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 1.05rem; line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.flag:hover { transform: scale(1.12); border-color: #33477a; }
.flag.active {
  border-color: var(--blue-strong);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .35);
}

/* ---- Hero (páginas dos apps) ---- */
.hero {
  background:
    radial-gradient(900px 400px at 80% -100px, rgba(99, 102, 241, .25), transparent 70%),
    linear-gradient(135deg, #0d1526 0%, #131c33 60%, #1c1a45 100%);
  border-bottom: 1px solid var(--line);
  color: #fff;
  padding: 72px 0;
}
.hero h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; }
.hero-app { padding: 48px 0 56px; }

.back {
  display: inline-block; margin-bottom: 28px;
  color: var(--blue); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.back:hover { color: #fff; }

.app-header { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.app-header h1 { font-size: 2.1rem; margin: 6px 0 8px; }
.app-header .tagline { color: #cbd5e1; max-width: 620px; margin-bottom: 14px; }

/* ---- Ícones ---- */
.app-icon {
  width: 64px; height: 64px; border-radius: 15px; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.app-icon-lg { width: 88px; height: 88px; border-radius: 20px; }
.app-icon-xl { width: 128px; height: 128px; border-radius: 29px; }

/* ---- Seções ---- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid #16223d; border-bottom: 1px solid #16223d; }
.section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 28px; letter-spacing: -.01em; }

/* ---- Cards ---- */
.grid { display: grid; gap: 22px; }
.grid-featured { grid-template-columns: repeat(3, 1fr); }
.grid-small { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
  display: flex; flex-direction: column; gap: 16px;
}
.card:hover {
  transform: translateY(-6px) scale(1.015);
  background: var(--card-hover);
  border-color: var(--blue-strong);
  box-shadow:
    0 0 0 1px var(--blue-strong),
    0 0 28px rgba(59, 130, 246, .28),
    0 20px 48px rgba(0, 0, 0, .55);
}
.card .app-icon { transition: transform .22s ease, box-shadow .22s ease; }
.card:hover .app-icon {
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, .35);
}
.card h3 { transition: color .22s ease; }
.card:hover h3 { color: var(--blue); }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-small { flex-direction: row; align-items: center; padding: 26px; gap: 22px; }
.card-small .app-icon { width: 104px; height: 104px; border-radius: 24px; }
.card-media {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex-shrink: 0; width: 120px;
}
.card-media .category { text-align: center; line-height: 1.3; }

.card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.card p { color: var(--ink-soft); font-size: .92rem; }
.card-small h3 { font-size: 1rem; }
.card-small p { font-size: .87rem; }

.category {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue);
}
.category-light { color: var(--blue); }
.category-sm { font-size: calc(.72rem * .95); } /* tipos com mais de 11 caracteres */

.more { color: var(--blue); font-weight: 600; font-size: .9rem; margin-top: auto; }
.card:hover .more { color: #93c5fd; }

/* ---- Chips de plataforma ---- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: .74rem; font-weight: 600;
  background: var(--chip-bg); color: var(--chip-ink);
  border: 1px solid var(--chip-border);
  padding: 3px 10px; border-radius: 999px;
}
.hero .chip { background: rgba(255, 255, 255, .08); color: #e2e8f0; border-color: rgba(255, 255, 255, .16); }

/* ---- Página do app ---- */
.app-detail { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.app-about h2 { margin-bottom: 18px; }
.app-about p { color: var(--ink-soft); margin-bottom: 14px; }
.app-about ul { color: var(--ink-soft); margin: 0 0 14px 20px; }
.app-about li { margin-bottom: 6px; }

.side-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.side-box h3 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; color: var(--ink); }

.feature-list { list-style: none; }
.feature-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  color: var(--ink-soft); font-size: .92rem;
}
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 700;
}

/* ---- Botões de loja ---- */
.store-buttons { display: flex; flex-direction: column; gap: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--storebtn-bg); color: var(--storebtn-ink);
  border-radius: 12px; padding: 10px 18px;
  text-decoration: none;
  line-height: 1.15;
  transition: background .15s ease, transform .15s ease;
}
.store-btn:hover { background: var(--storebtn-hover); transform: translateY(-1px); }
.store-btn span { display: flex; flex-direction: column; font-weight: 700; font-size: 1.02rem; }
.store-btn small { font-weight: 500; font-size: .68rem; opacity: .75; }
.store-btn-lg { padding: 12px 20px; }
.store-btn-soon { background: var(--soon-bg); color: var(--soon-ink); cursor: default; }
.store-btn-soon:hover { background: var(--soon-bg); transform: none; }

/* ---- Footer (fixo) ---- */
body { padding-bottom: 86px; } /* espaço para o rodapé fixo */
.footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--footer-bg); color: var(--ink-soft);
  padding: 12px 0;
  border-top: 1px solid var(--footer-line);
  backdrop-filter: blur(10px);
}
.footer-center { text-align: center; font-size: .88rem; line-height: 1.7; }
.footer-line1 { font-weight: 600; color: var(--ink); }
.footer-line2 { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .84rem; }
.footer-sep { opacity: .4; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--blue); }

/* ---- Responsivo ---- */
@media (max-width: 900px) {
  .grid-featured, .grid-small { grid-template-columns: repeat(2, 1fr); }
  .app-detail { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .grid-featured, .grid-small { grid-template-columns: 1fr; }
  .topnav { gap: 14px; }
  .topnav a { font-size: .84rem; }
  .brand { font-size: .9rem; }
  .app-header { gap: 18px; }
  .app-icon-xl { width: 96px; height: 96px; border-radius: 22px; }
  .card-small { gap: 16px; padding: 20px; }
  .card-small .app-icon { width: 72px; height: 72px; border-radius: 17px; }
}
