/* ========== Shared styles for Kiddy Brain website ==========
   Index landing thêm CSS riêng inline. Các page legal/support
   chỉ dùng file này. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Quicksand", Roboto, sans-serif;
  line-height: 1.65;
  color: #000;
  background: #FFF8EE;
  -webkit-font-smoothing: antialiased;
}
a { color: #5C6BC0; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ───── Header (sticky nav) — nổi bật + có depth ───── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #FFB74D;
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.18);
}
.nav {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-icon {
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.45);
  border: 2px solid white;
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-weight: 900; color: #E65100; font-size: 21px;
  letter-spacing: -0.2px;
}
.brand-tagline {
  font-size: 11px; font-weight: 700;
  color: #000; margin-top: 2px;
  letter-spacing: 0.1px;
}
@media (max-width: 640px) {
  .brand-tagline { display: none; }
  .brand-name { font-size: 20px; }
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: #3E2723; font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
  color: #E65100; text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
}
@media (max-width: 640px) { .nav-links { display: none; } }

/* ───── Page container (cho legal/support pages) ───── */
.page {
  max-width: 760px; margin: 0 auto;
  padding: 48px 20px 64px;
}
.page-title {
  font-size: 36px; font-weight: 900; color: #E65100;
  margin-bottom: 8px; line-height: 1.2;
}
.page-lead {
  font-size: 17px; color: #000; margin-bottom: 32px;
}
.page h2 {
  color: #00695C; font-size: 20px;
  margin-top: 36px; margin-bottom: 8px;
  font-weight: 900;
}
.page h3 {
  color: #00695C; font-size: 16px;
  margin-top: 24px; margin-bottom: 6px;
  font-weight: 800;
}
.page p { margin-bottom: 12px; }
.page ul { padding-left: 22px; margin: 8px 0 14px; }
.page li { margin-bottom: 6px; }
.page strong { color: #000; }
.page code {
  background: #FFE0B2; padding: 2px 6px; border-radius: 4px;
  font-size: 0.9em; color: #BF360C;
}
.meta { color: #9E9E9E; font-size: 13px; font-style: italic; margin-top: 40px; }

/* ───── Callout box (highlight notes) ───── */
.note {
  background: white; border-left: 4px solid #FFB74D;
  padding: 14px 18px; margin: 16px 0;
  border-radius: 8px; font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.note strong { color: #E65100; }

/* ───── Support cards (channels) ───── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}
.support-card {
  background: white; border-radius: 16px;
  padding: 20px;
  border-left: 4px solid #FFB74D;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.support-card .channel {
  font-size: 12px; color: #9E9E9E;
  text-transform: uppercase; font-weight: 800;
  letter-spacing: 0.5px; margin-bottom: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.support-card .channel .brand-svg {
  width: 14px; height: 14px; display: block; flex-shrink: 0;
}
/* Footer Facebook/Zalo inline logos */
.site-footer a.brand-link {
  display: flex; align-items: center; gap: 6px;
}
.site-footer a.brand-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.support-card .value {
  font-size: 20px; font-weight: 800; color: #00695C;
  margin-bottom: 8px; word-break: break-all;
}
.support-card .value a { color: #00695C; }
.support-card p {
  font-size: 13px; color: #000; margin: 0;
}

/* ───── FAQ ───── */
.faq {
  background: white; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.faq strong {
  color: #00695C; font-size: 15px;
  display: block; margin-bottom: 4px;
}
.faq p:last-child { margin-bottom: 0; }

/* ───── Footer ───── */
.site-footer {
  background: #3E2723; color: #BCAAA4;
  padding: 40px 20px 24px;
  margin-top: 64px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 {
  color: white; font-size: 14px; font-weight: 900;
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.site-footer a {
  color: #D7CCC8; display: block; padding: 4px 0; font-size: 14px;
}
.site-footer a:hover { color: white; text-decoration: none; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 320px; }
.copyright {
  max-width: 1100px; margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid #5D4037;
  text-align: center; font-size: 13px; color: #8D6E63;
}

/* Toast for Android "đang phát triển" */
.kb-toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: #3E2723; color: #fff;
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999; max-width: 90vw; text-align: center;
}
.kb-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
@media (max-width: 640px) {
  .kb-toast { bottom: 96px; }
}

