/* ===================================================================
   style.css — global styles for the static site
   Tailwind utility classes are loaded via the Play CDN (see <head>).
   This file holds custom theme variables, base styles, animations,
   and components that aren't easily expressed with Tailwind alone.
=================================================================== */

:root {
  --background: #fffbf5;
  --foreground: #1c1c1c;
  --color-primary: #e07b39;
  --color-primary-dark: #c4612a;
  --color-secondary: #1a5276;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ---------------------------------------------------------------
   Scroll progress bar
--------------------------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-primary);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ---------------------------------------------------------------
   Promo banner
--------------------------------------------------------------- */
#promo-banner {
  background: var(--color-secondary);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  padding: 0.4rem 2.5rem 0.4rem 1rem;
  position: relative;
  line-height: 1.4;
}

#promo-banner .close-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

/* ---------------------------------------------------------------
   Navbar
--------------------------------------------------------------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

#navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

#navbar .logo-img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 9999px;
}

#navbar .nav-link {
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.15s ease;
}

#navbar .nav-link:hover {
  color: var(--color-primary);
}

#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: block;
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-highlight {
  color: var(--color-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  transition: background 0.15s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--color-secondary);
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  border: 1px solid var(--color-secondary);
  transition: background 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(26, 82, 118, 0.06);
}

/* ---------------------------------------------------------------
   Section heading helpers
--------------------------------------------------------------- */
.section-eyebrow {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* ---------------------------------------------------------------
   Menu / Gallery cards
--------------------------------------------------------------- */
.menu-card,
.gallery-item {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-card:hover,
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.menu-card .emoji-display,
.gallery-item .emoji-display {
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8rem;
  background: #fdf1e6;
}

.menu-card img.cover-img,
.gallery-item img.cover-img {
  height: 8rem;
  width: 100%;
  object-fit: cover;
}

.menu-card .tag-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
}

/* ---------------------------------------------------------------
   Reviews carousel
--------------------------------------------------------------- */
.review-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.review-card .stars {
  color: #facc15;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

#reviews-track {
  display: flex;
  transition: transform 0.4s ease;
}

.review-slide {
  flex: 0 0 100%;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .review-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .review-slide {
    flex: 0 0 33.3333%;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.active {
  background: var(--color-primary);
  width: 1.5rem;
}

/* ---------------------------------------------------------------
   Blog cards
--------------------------------------------------------------- */
.post-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.post-card .post-cover {
  height: 10rem;
  width: 100%;
  object-fit: cover;
  background: #fdf1e6;
}

.post-card .post-emoji {
  height: 10rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: #fdf1e6;
}

/* ---------------------------------------------------------------
   FAQ accordion
--------------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 0;
  font-weight: 600;
  color: var(--color-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  color: #555;
  font-size: 0.925rem;
  line-height: 1.6;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 1px solid transparent;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-top: 0.25rem;
  padding-bottom: 0.75rem;
  border-top-color: #f9fafb;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  transition: transform 0.2s ease;
  font-size: 1.25rem;
  color: var(--color-primary);
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
#footer {
  background: var(--color-secondary);
  color: #f0f4f8;
}

#footer a:hover {
  color: var(--color-primary);
}

/* ---------------------------------------------------------------
   Floating buttons & mobile CTA
--------------------------------------------------------------- */
#floating-buttons {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 90;
}

#floating-buttons a {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

#floating-buttons a:hover {
  transform: scale(1.08);
}

#floating-buttons .fb-phone {
  background: #25d366;
}

#floating-buttons .fb-zalo {
  background: #0068ff;
}

#floating-buttons .fb-top {
  background: var(--color-primary);
}

#mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 95;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

#mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 0.85rem 0;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

#mobile-cta .cta-call {
  background: var(--color-secondary);
  color: #fff;
}

#mobile-cta .cta-book {
  background: var(--color-primary);
  color: #fff;
}

@media (min-width: 768px) {
  #mobile-cta {
    display: none !important;
  }
}

/* ---------------------------------------------------------------
   Cookie consent
--------------------------------------------------------------- */
#cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 32rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 1.25rem;
  z-index: 200;
  font-size: 0.875rem;
}

#cookie-consent.hidden {
  display: none;
}

#cookie-consent .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (max-width: 767px) {
  #cookie-consent {
    bottom: calc(1rem + 56px);
  }
}

/* ---------------------------------------------------------------
   Forms (reservation, admin)
--------------------------------------------------------------- */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.925rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(224, 123, 57, 0.15);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #374151;
}

/* ---------------------------------------------------------------
   Toast / alert
--------------------------------------------------------------- */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #1c1c1c;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  z-index: 300;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: toast-in 0.2s ease;
}

.toast.success {
  background: #16a34a;
}

.toast.error {
  background: #dc2626;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------
   Open status badge
--------------------------------------------------------------- */
.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  margin-right: 0.35rem;
}

.status-dot.open {
  background: #22c55e;
}

.status-dot.closed {
  background: #ef4444;
}

/* ---------------------------------------------------------------
   Post content (bai-viet detail rendering)
--------------------------------------------------------------- */
.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 1.75rem 0 0.75rem;
}

.post-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 1.5rem 0 0.5rem;
}

.post-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #333;
}

.post-content img {
  border-radius: 0.75rem;
  margin: 1.25rem 0;
  width: 100%;
  object-fit: cover;
}

.post-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1rem 1.5rem;
  line-height: 1.8;
  color: #333;
}

.post-content li {
  margin-bottom: 0.35rem;
}

/* ---------------------------------------------------------------
   Admin layout
--------------------------------------------------------------- */
.admin-body {
  display: flex;
  min-height: 100vh;
  background: #f3f4f6;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
}

.admin-sidebar {
  width: 16rem;
  flex-shrink: 0;
  background: var(--color-secondary);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.admin-sidebar .brand {
  padding: 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar nav {
  flex: 1;
  padding: 0.75rem;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.5rem;
  color: #d8e4ee;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
  transition: background 0.15s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-sidebar .user-box {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.admin-main {
  flex: 1;
  min-width: 0;
}

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-content {
  padding: 1.5rem;
}

#admin-menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    left: -16rem;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: left 0.2s ease;
  }
  .admin-sidebar.open {
    left: 0;
  }
  #admin-menu-toggle {
    display: inline-flex;
  }
}

/* Admin cards / tables */
.admin-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  text-align: left;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.admin-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #fafafa;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-green {
  background: #dcfce7;
  color: #15803d;
}

.badge-yellow {
  background: #fef9c3;
  color: #854d0e;
}

.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-gray {
  background: #f3f4f6;
  color: #4b5563;
}

.badge-red {
  background: #fee2e2;
  color: #b91c1c;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  color: #4b5563;
  transition: background 0.15s ease;
}

.icon-btn:hover {
  background: #f3f4f6;
}

.pagination {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}

.pagination button {
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.4rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 0.875rem;
}

.pagination button.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Admin buttons */
.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-admin:hover {
  background: var(--color-primary-dark);
}

.btn-admin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-admin-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  color: #d8e4ee;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s ease;
}

.btn-admin-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-admin-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #fff;
  color: #4b5563;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid #d1d5db;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-admin-secondary:hover {
  background: #f9fafb;
}

/* Login page */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  padding: 1rem;
}

.login-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 24rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ---------------------------------------------------------------
   Animations
--------------------------------------------------------------- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.5s ease both;
}

/* ---------------------------------------------------------------
   Modal
--------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 250;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: #fff;
  border-radius: 0.75rem;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
}
