/* Theme overrides and extras (light/dark + polish) */

/* Light theme variables */
:root[data-theme='light'] {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #5b6b7f;
  --border: #e5ecf4;
}

/* Use variable-based text for consistent theming */
.lead { color: var(--muted) !important; }
.card p { color: var(--muted) !important; }
.app-body p { color: var(--muted) !important; }

/* Light theme surfaces */
:root[data-theme='light'] body {
  background: linear-gradient(180deg, var(--bg), #f0f6ff 40%, #edf3fb 100%);
}
:root[data-theme='light'] .navbar { background: rgba(255,255,255,0.85); border-bottom-color: var(--border); }
:root[data-theme='light'] .navbar.scrolled { background: rgba(255,255,255,0.95); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
:root[data-theme='light'] .footer { background: rgba(255,255,255,0.85); }

/* Theme toggle button */
.theme-toggle { margin-left: 10px; height: 36px; min-width: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle:active { transform: translateY(1px); }

/* Mobile tweaks for theme toggle */
@media (max-width: 720px) {
  .theme-toggle { position: relative; z-index: 1001; }
}

/* App cards styled like feature cards */
a.card { display: block; text-decoration: none; color: var(--text); }
.apps-cards .card-app { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; }
.card-app .card-icon { font-size: 28px; opacity: .9; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.card-app .card-icon img { width: 28px; height: 28px; border-radius: 6px; display: block; }
.card-app.disabled { opacity: .7; }
.card-actions { margin-top: 8px; }
.chip { display: inline-block; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--muted); }
.chip-accent { border-color: rgba(10,124,255,.4); color: var(--text); }

/* Hero image (app preview) */
.hero-art { display: grid; place-items: center; }
.hero-art .hero-img {
  width: 100%;
  max-width: clamp(180px, 26vw, 240px);
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,0.02);
  display: block;
}
@media (max-width: 900px) {
  .hero-art .hero-img { max-width: clamp(180px, 55vw, 220px); }
}

/* Footer contact block */
.footer { padding: 40px 0 24px; }
.footer-contact { margin-bottom: 32px; text-align: left; }
.footer-contact h2 { margin: 0 0 8px; font-size: 22px; }
.footer-contact p { margin: 0 0 12px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
