/* Import font Outfit từ Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Định nghĩa biến màu sắc và cấu hình chung */
:root {
  --primary: #0A3B29;
  --primary-rgb: 10, 59, 41;
  --primary-light: #16533C;
  --primary-dark: #052016;
  --accent: #E5A93C;
  --accent-rgb: 229, 169, 60;
  --accent-hover: #D4982B;
  --bg-dark: #06110D;
  --bg-dark-rgb: 6, 17, 13;
  --card-bg: #10241B;
  --text-light: #F0F6F3;
  --text-muted: #8FA89E;
  --gold-glow: 0 0 15px rgba(229, 169, 60, 0.4);
  --green-glow: 0 0 15px rgba(10, 59, 41, 0.4);
  --glass-bg: rgba(16, 36, 27, 0.65);
  --glass-border: rgba(229, 169, 60, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Outfit', sans-serif;
}

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  font-family: var(--font);
  color: var(--text-light);
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: radial-gradient(circle at 50% 0%, rgba(22, 83, 60, 0.3) 0%, rgba(6, 17, 13, 1) 70%);
  background-attachment: fixed;
  overflow-x: hidden;
  padding-bottom: 90px; /* Chừa khoảng trống cho thanh floating bar bên dưới */
}

/* Container chính - Mobile-first layout */
.app-container {
  width: 100%;
  max-width: 580px;
  min-height: 100vh;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* HIỆU ỨNG CHUNG */
.text-gradient {
  background: linear-gradient(135deg, #FFF 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(229, 169, 60, 0.2);
}

/* SECTION GLASS CONTAINER */
.section-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.section-glass:hover {
  border-color: rgba(229, 169, 60, 0.25);
  box-shadow: 0 12px 40px rgba(10, 59, 41, 0.3);
}

/* 1. HEADER SECTION */
.header-cover {
  width: 100%;
  height: 140px;
  overflow: hidden;
  position: relative;
}

.header-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0;
  overflow: hidden;
}

.logo-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  box-shadow: var(--gold-glow);
  margin-top: -60px;
  z-index: 2;
}

.logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background-color: #FFF;
  padding: 6px;
}

.avatar-verified-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background-color: var(--bg-dark);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #1D9BF0;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 5;
  border: 2px solid var(--bg-dark);
}

.restaurant-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verified-badge {
  color: #1D9BF0; /* Màu xanh tick xác minh TikTok/Facebook */
  font-size: 18px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
}

.slogan {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
}

.header-info {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.bio-description {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 95%;
  margin: 8px auto 0 auto;
}

.highlight-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  padding: 0 20px 24px 20px;
  width: 100%;
  box-sizing: border-box;
}

.badge {
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.3);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}

/* 2. QUICK LINKS SECTION */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(16, 36, 27, 0.8) 0%, rgba(10, 59, 41, 0.5) 100%);
  border: 1px solid rgba(229, 169, 60, 0.15);
  border-radius: 16px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.link-button:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--gold-glow);
  background: linear-gradient(135deg, rgba(22, 83, 60, 0.8) 0%, rgba(16, 36, 27, 0.8) 100%);
}

.link-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.link-icon {
  font-size: 20px;
  color: var(--accent);
  width: 24px;
  text-align: center;
}

.link-right {
  font-size: 14px;
  color: var(--accent);
  transition: var(--transition);
}

.link-button:hover .link-right {
  transform: translateX(3px);
}

/* 3. SLIDER SECTION (Không gian & Dịch vụ) */
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 16/9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 12px 16px;
  color: #FFF;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6, 17, 13, 0.6);
  border: 1px solid rgba(229, 169, 60, 0.3);
  color: var(--text-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(229, 169, 60, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--accent);
}

/* 4. E-MENU SECTION */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.menu-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none; /* Firefox */
}

.menu-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.tab-btn {
  background: rgba(10, 59, 41, 0.4);
  border: 1px solid rgba(229, 169, 60, 0.15);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
  box-shadow: var(--gold-glow);
}

.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(6, 17, 13, 0.4);
  border: 1px solid rgba(229, 169, 60, 0.08);
  transition: var(--transition);
}

.menu-item:hover {
  border-color: rgba(229, 169, 60, 0.25);
  transform: scale(1.01);
}

.menu-item-img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.menu-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.menu-item-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
}

.menu-item-badge {
  background: rgba(229, 169, 60, 0.15);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.menu-item-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 4px 0;
}

.menu-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

/* 5. CHI NHÁNH & BẢN ĐỒ SECTION */
.branch-card {
  background: rgba(6, 17, 13, 0.5);
  border: 1px solid rgba(229, 169, 60, 0.1);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.branch-card:last-child {
  margin-bottom: 0;
}

.branch-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.branch-detail {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.branch-actions {
  display: flex;
  gap: 8px;
}

.btn-secondary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(10, 59, 41, 0.3);
  border: 1px solid rgba(229, 169, 60, 0.2);
  color: var(--text-light);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

.map-container {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(229, 169, 60, 0.15);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 6. FLOATING BAR & BUTTONS */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(to top, rgba(6, 17, 13, 0.95) 70%, transparent 100%);
  z-index: 99;
}

.floating-wrapper {
  width: 100%;
  max-width: 548px;
  display: flex;
  gap: 12px;
}

.floating-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.floating-btn.primary {
  background: var(--accent);
  color: var(--bg-dark);
  border: 1px solid var(--accent);
}

.floating-btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.4);
}

.floating-btn.secondary {
  background: var(--primary);
  color: var(--text-light);
  border: 1px solid rgba(229, 169, 60, 0.2);
}

.floating-btn.secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 59, 41, 0.5);
}

/* 7. BOOKING DIALOG MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 1000;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: 24px;
  width: 100%;
  max-width: 450px;
  padding: 24px;
  position: relative;
  box-shadow: var(--gold-glow);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--accent);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-light);
}

.modal-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.booking-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: #FFF;
  transition: var(--transition);
}

.channel-btn.hotline {
  background: #DC2626;
}

.channel-btn.hotline:hover {
  background: #B91C1C;
  transform: translateX(4px);
}

.channel-btn.messenger {
  background: #0084FF;
}

.channel-btn.messenger:hover {
  background: #006FDB;
  transform: translateX(4px);
}

.channel-btn.zalo {
  background: #0068FF;
}

.channel-btn.zalo:hover {
  background: #0056D6;
  transform: translateX(4px);
}

.channel-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* 8. FOOTER */
.footer {
  text-align: center;
  padding: 10px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 59, 41, 0.4);
  border: 1px solid rgba(229, 169, 60, 0.15);
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
  font-size: 18px;
}

.social-icon-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--gold-glow);
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* RESPONSIVE SCALING */
@media (max-width: 480px) {
  .app-container {
    padding: 16px 12px;
    gap: 24px;
  }
  
  .restaurant-name {
    font-size: 22px;
  }
  
  .logo-wrapper {
    width: 110px;
    height: 110px;
  }
  
  .section-glass {
    padding: 16px;
  }
  
  .menu-item {
    gap: 10px;
    padding: 10px;
  }
  
  .menu-item-img {
    width: 75px;
    height: 75px;
  }
  
  .menu-item-name {
    font-size: 15px;
  }
}
