@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

/* --- Design Tokens --- */
:root {
  --bg-main: #0b0b0f;
  --bg-card: #12121a;
  --bg-card-hover: #181826;
  --bg-overlay: rgba(11, 11, 15, 0.8);
  --bg-modal: #161622;
  
  --primary-neon: #10b981; /* Emerald Green */
  --primary-gold: #eab308; /* Luxury Gold */
  --accent-purple: #a855f7; /* Event Room Violet */
  --accent-blue: #3b82f6; /* Public Blue */
  --danger: #ef4444;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --glow-green: 0 0 15px rgba(16, 185, 129, 0.3);
  --glow-gold: 0 0 15px rgba(234, 179, 8, 0.3);
  
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-family);
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
header {
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 1px;
}

.header-cta {
  display: flex;
  gap: 10px;
}

.btn-header {
  background: linear-gradient(135deg, var(--primary-gold), #ca8a04);
  color: #0b0b0f;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: var(--glow-gold);
  transition: var(--transition-smooth);
}

.btn-header:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-header-qr {
  background: transparent;
  border: 1.5px solid var(--primary-gold);
  color: var(--primary-gold);
  box-shadow: none;
}

.btn-header-qr:hover {
  background: var(--primary-gold);
  color: #0b0b0f;
  box-shadow: var(--glow-gold);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 80px 0 60px 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  color: var(--primary-gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary-gold);
  border-radius: 50%;
  box-shadow: var(--glow-gold);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

/* --- Category Filter Tab --- */
.filter-wrapper {
  margin-bottom: 40px;
  position: sticky;
  top: 72px;
  background: var(--bg-main);
  padding: 10px 0;
  z-index: 90;
  border-bottom: 1px solid var(--border-color);
}

.filter-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 4px;
}

.filter-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.filter-tab {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 30px;
  transition: var(--transition-smooth);
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* --- Shop Grid & Cards --- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.shop-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.shop-card.filtered-out {
  display: none;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1e1e2d;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.shop-card:hover .card-img {
  transform: scale(1.05);
}

.card-badge-container {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.badge-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-tag.public {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.badge-tag.event {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.badge-tag.roomssalong {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #facc15;
}

.badge-tag.noraetel {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.card-status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-neon);
}

.card-status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-neon);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag-hash {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.card-info-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  flex-shrink: 0;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.btn-detail {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 0;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-detail:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-call {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-neon), #059669);
  color: #0b0b0f;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 0;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--glow-green);
  transition: var(--transition-smooth);
}

.btn-call:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* --- FAQ Section --- */
.faq-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  color: var(--text-primary);
}

.faq-toggle-icon {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  border-top-color: var(--border-color);
}

.faq-answer-inner {
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Footer --- */
footer {
  background: #07070a;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 100px 0; /* Extra bottom padding for mobile floating bar */
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.footer-desc {
  max-width: 600px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-copy {
  margin-top: 20px;
  font-size: 0.75rem;
}

/* --- Modal Popup (Shop Detail) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

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

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  z-index: 20;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* Modal Slider */
.modal-slider {
  position: relative;
  width: 100%;
  height: 350px;
  background: #0b0b0f;
}

.modal-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-slide.active {
  opacity: 1;
}

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

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  font-weight: bold;
}

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

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background: white;
  width: 20px;
  border-radius: 4px;
}

.modal-body {
  padding: 30px;
}

.modal-header-info {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.modal-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 60%, var(--primary-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-desc-full {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.meta-item-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.meta-item-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 700;
}

.modal-cta-row {
  display: flex;
  gap: 12px;
}

.modal-btn-call {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-neon), #059669);
  color: #0b0b0f;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 0;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--glow-green);
  transition: var(--transition-smooth);
}

.modal-btn-call:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.modal-btn-kakao {
  flex: 1;
  background: linear-gradient(135deg, #ffd33d, #facc15);
  color: #3f2f00;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 0;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
  transition: var(--transition-smooth);
}

.modal-btn-kakao:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

.modal-btn-telegram {
  flex: 1;
  background: linear-gradient(135deg, #229ed9, #0088cc);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 0;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.3);
  transition: var(--transition-smooth);
}

.modal-btn-telegram:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
}

/* --- Mobile Floating Bar --- */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
  z-index: 500;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.3);
  display: none; /* Only show on mobile */
}

.floating-container {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.btn-float-call {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-neon), #059669);
  color: #0b0b0f;
  font-weight: 800;
  padding: 12px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-shadow: var(--glow-green);
}

.btn-float-kakao {
  flex: 1;
  background: linear-gradient(135deg, #ffd33d, #facc15);
  color: #3f2f00;
  font-weight: 800;
  padding: 12px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

.btn-float-telegram {
  flex: 1;
  background: linear-gradient(135deg, #229ed9, #0088cc);
  color: #ffffff;
  font-weight: 800;
  padding: 12px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(0, 136, 204, 0.2);
}

/* --- Media Queries --- */
@media (max-width: 768px) {
  .btn-header {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .hero {
    padding: 60px 0 40px 0;
  }
  
  .hero h1 {
    font-size: 1.95rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .filter-wrapper {
    top: 68px;
  }
  
  .floating-bar {
    display: block;
  }
  
  .modal-slider {
    height: 240px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
