/* ==============================
   전국모바일 전용 스타일시트
   Theme: Bright Orange & White
   ============================== */

:root {
  --brand: #ff7a00;
  --brand-light: #ffb566;
  --brand-bg: #fff8f2;
  --text-dark: #222;
  --text-muted: #666;
  --border-color: #eee;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text-dark);
  background-color: #fff;
  margin: 0;
  line-height: 1.6;
}

/* 공통 */
section { padding: 60px 0; }
h1, h2, h3, h4, h5 { font-weight: 700; }
a { text-decoration: none; }

/* Navbar */
.navbar { background-color: #fff !important; border-bottom: 1px solid var(--border-color); }
.navbar-brand { color: var(--brand) !important; }
.nav-link { color: var(--text-dark) !important; font-weight: 500; }
.nav-link:hover { color: var(--brand) !important; }

/* Hero Section */
.hero { background: linear-gradient(180deg, var(--brand-bg), #ffffff); position: relative; overflow: hidden; }
.hero h1 { color: var(--brand); }
.hero p.lead { color: var(--text-muted); }
.hero .btn-primary { background-color: var(--brand); border-color: var(--brand); }
.hero .btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.hero .btn-outline-primary:hover { background-color: var(--brand); color: #fff; }

/* 버튼 기본 스타일 */
.btn-primary { background-color: var(--brand); border: none; }
.btn-primary:hover { background-color: #ff9a33; }
.btn-outline-primary { color: var(--brand); border: 2px solid var(--brand); }
.btn-outline-primary:hover { background-color: var(--brand); color: #fff; }

/* Table (예약 현황) */
.table th { color: var(--text-dark); }
.table td { color: var(--text-muted); }

/* 카드 스타일 */
.card { border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); transition: 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }

/* CTA 배너 */
.bg-primary { background-color: var(--brand) !important; }
.btn-light { background-color: #fff; color: var(--brand); border: none; }
.btn-outline-light { border: 2px solid #fff; color: #fff; }
.btn-outline-light:hover { background-color: #fff; color: var(--brand); }

/* Floating Chat 버튼 */
.floating-chat { position: fixed; right: 20px; bottom: 25px; background-color: var(--brand); color: #fff; border-radius: 40px; padding: 10px 18px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 1000; animation: floatUp 1.5s ease-in-out; }
.floating-chat i { font-size: 1.3rem; }
.floating-chat:hover { background-color: #ff9a33; }
@keyframes floatUp { 0% { transform: translateY(40px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* 맨 위로 링크 */
#backToTop { transition: 0.3s; cursor: pointer; }
#backToTop:hover { color: var(--brand); }

/* Hero wave 데코 */
.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23fff8f2" fill-opacity="1" d="M0,96L48,122.7C96,149,192,203,288,197.3C384,192,480,128,576,133.3C672,139,768,213,864,218.7C960,224,1056,160,1152,144C1248,128,1344,160,1392,176L1440,192L1440,320L0,320Z"></path></svg>') no-repeat center bottom; background-size: cover; }

/* 터치 영역 확대 */
.btn, .nav-link, a[href^="tel"], a[href^="mailto"] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 반응형 */
@media (max-width: 575.98px) {
  section { padding: 2rem 0; }
  .hero .display-5 { font-size: 1.75rem; line-height: 1.3; }
  .hero .lead { font-size: 0.95rem; }
  .btn-lg { padding: 0.75rem 1.25rem; font-size: 1rem; min-height: 48px; }
  .hero .btn-lg { width: 100%; margin-bottom: 0.75rem; }
  .floating-chat { bottom: 80px; right: 16px; }
  .floating-chat { padding: 12px 18px; font-size: 1.05rem; }
  
  /* 테이블 모바일 최적화 */
  table.table { font-size: 0.8rem; }
  .table th, .table td { padding: 0.5rem 0.25rem; }
  .table th i, .table td i { display: none; } /* 아이콘 숨기기 */
  .badge { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
  
  .topbar { font-size: 0.8rem; padding: 0.5rem 0 !important; }
  .topbar .d-flex { flex-wrap: wrap; gap: 0.5rem !important; }
  .card { margin-bottom: 1rem; }
  
  /* 모바일 네비게이션 개선 */
  .navbar-nav { padding: 1rem 0; }
  .nav-item { margin: 0.25rem 0; }
  .nav-link { padding: 0.75rem 1rem !important; font-size: 1.05rem; }
  
  /* 예약 현황 섹션 */
  #booking .p-4 { padding: 1rem !important; }
  #booking h2 { font-size: 1.1rem; }
  #booking .d-flex { flex-direction: column; align-items: flex-start !important; gap: 0.75rem; }
  #booking .btn-sm { font-size: 0.85rem; width: 100%; }
  
  /* 서비스 키워드 카드 */
  #services-keywords .col-6 { padding: 0.25rem; }
  #services-keywords .p-3 { padding: 0.75rem !important; }
  #services-keywords .h6 { font-size: 0.85rem; }
  #services-keywords i { font-size: 1.5rem !important; }
}
@media (max-width: 360px) { 
  .floating-chat span { display: none; }
  .topbar .badge { display: none; }
  .hero .display-5 { font-size: 1.5rem; }
  .btn-lg { font-size: 0.9rem; padding: 0.7rem 1rem; }
  table.table { font-size: 0.75rem; }
}

/* 실시간 예약 현황 애니메이션 */
.pulse-animation {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 예약 테이블 호버 효과 */
#reservationsBody tr {
  transition: all 0.3s ease;
}
#reservationsBody tr:hover {
  background-color: var(--brand-bg) !important;
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.1);
}

/* 테이블 헤더 그라데이션 */
.table-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%) !important;
  color: white !important;
}
.table-primary th {
  color: white !important;
  font-weight: 600;
  border: none !important;
}

/* 당일지급 프로모션 배너 */
.promo-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(255,122,0,0.03)" x="0" y="0" width="50" height="50"/></svg>');
  animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
  0% { transform: translateX(0); }
  100% { transform: translateX(100px); }
}

.banner-card {
  background: linear-gradient(135deg, rgba(255,122,0,0.9) 0%, rgba(255,154,51,0.9) 100%);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  box-shadow: 0 10px 40px rgba(255,122,0,0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.banner-content {
  color: white;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  letter-spacing: -1px;
}

.banner-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.banner-label {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.banner-cta .btn-warning {
  background: white;
  color: var(--brand);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  animation: pulse-button 2s infinite;
}

.banner-cta .btn-warning:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: #fff;
}

@keyframes pulse-button {
  0%, 100% { box-shadow: 0 5px 20px rgba(255,122,0,0.4); }
  50% { box-shadow: 0 5px 30px rgba(255,122,0,0.6); }
}

/* 모바일 반응형 - 프로모션 배너 */
@media (max-width: 991.98px) {
  .banner-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .banner-subtitle {
    font-size: 1rem;
  }
  .banner-card {
    padding: 1.5rem 1.25rem;
    text-align: center;
  }
  .banner-label {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }
  .banner-cta {
    margin-top: 1rem;
  }
  .banner-cta .btn-warning {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .banner-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .banner-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .banner-label {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
  }
  .banner-card {
    padding: 1.25rem 1rem;
  }
  .banner-cta .btn-warning {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
  .banner-cta p {
    font-size: 0.85rem;
    margin-top: 0.5rem !important;
  }
}
