/* ─── Google Font: Noto Sans Thai only ─── */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;600;700&display=swap");

/* ─── CSS Variables ─── */
:root {
  --charcoal:    #0a0a0a;
  --ember:       #e31c1c;
  --flame:       #ff6b00;
  --accent:      #ff4500;
  --cream:       #ffffff;
  --subtext:     rgba(255,255,255,0.55);
  --smoke:       #1a0000;
  --card-bg:     rgba(255,255,255,0.04);
  --border:      rgba(227,28,28,0.2);
  --border-hover:rgba(255,107,0,0.6);
}

/* ─── Base ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--charcoal);
  font-family: 'Noto Sans Thai', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: var(--ember); border-radius: 2px; }

/* ─── Animations ─── */
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-120vh) rotate(720deg); opacity: 0; }
}

@keyframes flicker {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(0.97); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Layout ─── */
.page-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* ─── Background ─── */
.bg-fire {
  background:
    radial-gradient(ellipse at 15% 85%, rgba(227,28,28,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(255,107,0,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(255,69,0,0.1) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

/* ─── Pattern overlay ─── */
.pattern-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e31c1c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Noise texture overlay ─── */
.noise::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
}

/* ─── Ember particles ─── */
.ember-particle {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--flame);
  animation: floatUp linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* ─── Logo ring ─── */
.logo-ring {
  position: relative;
  width: 100px;
  height: 100px;
}
.logo-ring::before,
.logo-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(227,28,28,0.35);
  animation: flicker 3s ease-in-out infinite;
}
.logo-ring::before {
  inset: -8px;
  border-color: rgba(255,107,0,0.25);
}
.logo-ring::after {
  inset: -16px;
  border-color: rgba(227,28,28,0.12);
  animation-delay: 0.5s;
}

/* ─── Logo inner ─── */
.logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(227,28,28,0.5);
  background: radial-gradient(circle, #1a0505, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-kanji {
  font-size: 1.6rem;
  line-height: 1;
  color: #ff4500;
  text-align: center;
}
.logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: rgba(255,107,0,0.65);
  margin-top: 2px;
  text-align: center;
}

/* ─── Restaurant name ─── */
.restaurant-name {
  font-size: 1.9rem;
  color: var(--cream);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(255,107,0,0.35), 0 0 60px rgba(227,28,28,0.2);
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 4px;
}
.restaurant-jp {
  font-size: 0.8rem;
  color: #ff4500;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
  opacity: 0.9;
}
.restaurant-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  line-height: 1.6;
}
.restaurant-location {
  font-size: 0.72rem;
  color: rgba(255,107,0,0.6);
}

/* ─── Status badge ─── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(39,174,96,0.12);
  border: 1px solid rgba(39,174,96,0.3);
  padding: 3px 12px;
  border-radius: 20px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
  animation: flicker 2s infinite;
}
.status-text {
  font-size: 0.7rem;
  color: #2ecc71;
  letter-spacing: 0.05em;
}
.status-hours {
  font-size: 0.7rem;
  color: rgba(253,246,236,0.35);
}

/* ─── Section label ─── */
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--flame);
  opacity: 0.75;
}

/* ─── Dividers ─── */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0.25;
}
.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,160,23,0.3), transparent);
}

/* ─── Decorative kanji ─── */
.char-deco {
  font-size: 5rem;
  opacity: 0.05;
  position: absolute;
  color: var(--ember);
  pointer-events: none;
  line-height: 1;
}
.char-deco-1 { top: 60px; right: 8px; font-size: 4rem; }
.char-deco-2 { top: 140px; left: 4px; font-size: 3rem; }

/* ─── Link cards ─── */
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(227,28,28,0.18);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(227,28,28,0.08), rgba(255,107,0,0.06));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.link-card:hover::before { opacity: 1; }
.link-card:hover {
  border-color: rgba(255,107,0,0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(227,28,28,0.25), 0 0 0 1px rgba(255,107,0,0.15);
}
.link-card:active { transform: translateY(0); }

/* Card variants */
.link-card--red {
  background: linear-gradient(135deg, rgba(227,28,28,0.1), rgba(255,107,0,0.06));
  border-color: rgba(227,28,28,0.3);
}
.link-card--orange { border-color: rgba(255,107,0,0.18); }

/* ─── Card icon ─── */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}
.card-icon--facebook { background: rgba(24,119,242,0.15); border: 1px solid rgba(24,119,242,0.2); }
.card-icon--instagram { background: rgba(131,58,180,0.12); border: 1px solid rgba(131,58,180,0.2); }
.card-icon--tiktok { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.card-icon--line { background: rgba(0,185,0,0.12); border: 1px solid rgba(0,185,0,0.2); }
.card-icon--phone { background: rgba(227,28,28,0.15); border: 1px solid rgba(227,28,28,0.35); }
.card-icon--calendar { background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.2); }
.card-icon--bbq { background: rgba(227,28,28,0.12); border: 1px solid rgba(227,28,28,0.28); }
.card-icon--shabu { background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.2); }
.card-icon--drinks { background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.2); }

/* ─── Card text ─── */
.card-title {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
}
.card-subtitle {
  color: rgba(255,255,255,0.38);
  font-size: 0.75rem;
}
.card-arrow {
  flex-shrink: 0;
}

/* ─── Call badge ─── */
.call-badge {
  background: rgba(227,28,28,0.2);
  border: 1px solid rgba(227,28,28,0.45);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  color: #ff6b00;
  white-space: nowrap;
}

/* ─── Menu badge ─── */
.menu-badge {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid;
  letter-spacing: 0.1em;
}
.menu-badge--red { border-color: rgba(227,28,28,0.45); color: #e31c1c; }
.menu-badge--orange { border-color: rgba(255,107,0,0.35); color: #ff6b00; }
.menu-badge--red-light { border-color: rgba(227,28,28,0.3); color: #e31c1c; }
.menu-badge--orange-light { border-color: rgba(255,107,0,0.3); color: #ff6b00; }

/* ─── Map section ─── */
.map-wrapper {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(227,28,28,0.2);
  position: relative;
  text-decoration: none;
  display: block;
}
.map-visual {
  height: 180px;
  background: linear-gradient(135deg, #1a0a0a, #0a0505);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.map-pin-label {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  text-align: center;
}
.map-pin-sub {
  color: rgba(255,107,0,0.85);
  font-size: 0.65rem;
  margin-top: 2px;
  text-align: center;
}
.map-footer {
  background: rgba(255,255,255,0.03);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(227,28,28,0.12);
}
.map-footer-title {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}
.map-footer-sub {
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
}
.map-nav-btn {
  background: rgba(227,28,28,0.15);
  border: 1px solid rgba(227,28,28,0.35);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  color: #ff6b00;
}

/* ─── Footer ─── */
.footer-jp {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(227,28,28,0.45);
  margin-bottom: 6px;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
}
.footer-hours {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.15);
  margin-top: 4px;
}

/* ─── AI Chat Widget ─── */
.ai-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 340px;
  max-width: 90vw;
}
.ai-chat-box {
  background: #111;
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.ai-chat-header {
  color: #ff6b00;
  font-weight: 700;
  margin-bottom: 10px;
}
.ai-chat-messages {
  height: 180px;
  overflow: auto;
  background: #0a0a0a;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  color: #fff;
  margin-bottom: 10px;
}
.ai-chat-form {
  display: flex;
  gap: 8px;
}
.ai-chat-input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #1c1c1c;
  color: white;
  outline: none;
  font-family: 'Noto Sans Thai', sans-serif;
}
.ai-chat-btn {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #ff6b00;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Noto Sans Thai', sans-serif;
}
.ai-msg-user { margin-top: 8px; color: #ffb366; }
.ai-msg-bot  { margin-top: 8px; color: #fff; }

/* ─── Slide-up animation ─── */
.animate-slide-up { animation: slideUp 0.7s ease forwards; }

.delay-100  { animation-delay: 0.1s; opacity: 0; }
.delay-200  { animation-delay: 0.2s; opacity: 0; }
.delay-300  { animation-delay: 0.3s; opacity: 0; }
.delay-400  { animation-delay: 0.4s; opacity: 0; }
.delay-500  { animation-delay: 0.5s; opacity: 0; }
.delay-600  { animation-delay: 0.6s; opacity: 0; }
.delay-700  { animation-delay: 0.7s; opacity: 0; }
.delay-800  { animation-delay: 0.8s; opacity: 0; }
.delay-900  { animation-delay: 0.9s; opacity: 0; }
.delay-1000 { animation-delay: 1.0s; opacity: 0; }
.delay-1100 { animation-delay: 1.1s; opacity: 0; }