/* ============================================================
   LUNA ENGLISH — LAYOUT SHELL
   Header, nav mobile, footer, nút liên hệ nổi, chatbot
   (các phần này được inject bởi luna-shared-layout.js)
   ============================================================ */

/* ---------- Header ---------- */
header.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--title); font-weight: 700; font-size: 1.3rem; color: var(--purple); }
.logo-img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 2px; margin-left: 8px; flex: 1; flex-wrap: wrap; }
.nav-links a { padding: 8px 11px; border-radius: 10px; font-weight: 500; font-size: .93rem; color: var(--ink); white-space: nowrap; }
.nav-links a:hover { background: var(--purple-soft); color: var(--purple); }
.nav-links a.active { background: var(--purple-soft); color: var(--purple); font-weight: 700; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
/* Nút CTA trong nav-links chỉ dành cho menu mobile — desktop đã có nav-cta */
.nav-links .btn { display: none; }
.hamburger { display: none; background: none; border: none; font-size: 1.7rem; color: var(--purple); cursor: pointer; padding: 4px 8px; }

@media (max-width: 1080px) {
  .hamburger { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; padding: 10px 4vw 16px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-links .btn { display: inline-flex; margin-top: 8px; }
}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--purple); color: rgba(255,255,255,.85); padding: 56px 0 90px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1.05rem; }
.site-footer a:hover { color: var(--mango); text-decoration: underline; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 8px; font-size: .93rem; }
.footer-logo-chip { background: #fff; border-radius: 14px; padding: 8px 14px; display: inline-block; margin-bottom: 12px; }
.footer-logo-chip img { height: 40px; }
.footer-note { font-size: .88rem; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 34px; padding-top: 18px; font-size: .84rem; color: rgba(255,255,255,.6); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.newsletter-row { display: flex; gap: 8px; margin-top: 10px; }
.newsletter-row input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: none; font-family: var(--body); font-size: .92rem; }
.newsletter-msg { font-size: .85rem; color: var(--mango); margin-top: 8px; min-height: 1.2em; }

/* ---------- Nút liên hệ nổi (mobile-first: gọi/Zalo) ---------- */
.floating-contact { position: fixed; left: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff; box-shadow: var(--shadow); transition: transform .15s ease; }
.float-btn:hover { transform: scale(1.08); }
.float-call { background: var(--green); }
.float-zalo { background: var(--blue); font-family: var(--title); font-weight: 700; font-size: .82rem; }

/* ---------- Chatbot Trợ lý ảo Luna ---------- */
.chatbot-fab { position: fixed; right: 16px; bottom: 16px; z-index: 210; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; background: var(--mango); color: var(--purple); font-size: 1.6rem; box-shadow: 0 10px 26px rgba(255,192,33,.5); transition: transform .15s ease; }
.chatbot-fab:hover { transform: scale(1.08); }
.chatbot-panel { position: fixed; right: 16px; bottom: 88px; z-index: 210; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(62,26,81,.3); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chatbot-panel.open { display: flex; }
.chatbot-head { background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.chatbot-head .bot-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--mango); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chatbot-head h4 { color: #fff; font-size: 1rem; margin: 0; }
.chatbot-head small { color: rgba(255,255,255,.75); font-size: .76rem; display: block; }
.chatbot-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; }
.chatbot-body { flex: 1; overflow-y: auto; padding: 14px; background: #faf8fc; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.55; white-space: pre-line; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--purple); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.chat-chips button { background: var(--purple-soft); color: var(--purple); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-family: var(--body); font-weight: 600; cursor: pointer; }
.chat-chips button:hover { background: var(--blue-soft); }
.chatbot-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chatbot-input input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-family: var(--body); font-size: .92rem; outline: none; }
.chatbot-input input:focus { border-color: var(--blue); }
.chatbot-input button { background: var(--purple); color: #fff; border: none; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; font-size: 1rem; }

@media (max-width: 560px) {
  .chatbot-panel { right: 8px; bottom: 84px; }
  footer.site-footer { padding-bottom: 110px; }
}
