/* =============================================
   Kuromoon — Premium Light Mode Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* ─── Design Tokens ─── */
:root {
  --bg-base:        #f8f9fc;
  --bg-card:        rgba(255,255,255,0.85);
  --bg-card-hover:  rgba(255,255,255,0.98);
  --border:         rgba(0,0,0,0.07);
  --border-hover:   rgba(0,0,0,0.14);

  --text-primary:   #0d0f14;
  --text-secondary: #5a6272;
  --text-muted:     #9aa0b0;

  --accent:         #3b6bfa;
  --accent-light:   rgba(59,107,250,0.10);
  --accent-hover:   #2a58e8;

  --green:          #10b981;
  --orange:         #f59e0b;
  --red:            #ef4444;

  --radius-sm:      10px;
  --radius-md:      16px;
  --radius-lg:      24px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);

  --font: 'Pretendard', 'Inter', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,107,250,0.06) 0%, transparent 60%);
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── Layout ─── */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,249,252,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

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

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-moon { font-size: 1.2rem; }

.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.3rem;
  box-shadow: var(--shadow-sm);
}

.lang-btn {
  padding: 0.25rem 0.65rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--accent);
  color: white;
}

/* ─── Hero Section ─── */
.hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  border: 1px solid rgba(59,107,250,0.2);
}

.hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── Category Filter Tabs ─── */
.category-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.25rem 0 1.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 1 0 auto;
  text-align: center;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  background: white;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

/* ─── Place List ─── */
.place-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 3rem;
}

/* ─── Place Card (List) ─── */
.place-card {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.place-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,107,250,0.02) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}

.place-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.place-card:hover::before { opacity: 1; }

.place-thumb {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-base);
}

.place-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.place-category-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.place-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-summary-text {
  font-size: 0.83rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.place-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.confidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(16,185,129,0.1);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
}

.foreign-pill {
  background: rgba(245,158,11,0.1);
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
}

/* ─── Detail Page ─── */
.detail-hero {
  position: relative;
  margin: 0 -1.25rem;
  height: 240px;
  overflow: hidden;
}

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

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.detail-content {
  background: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: -1.5rem;
  position: relative;
  padding: 1.5rem 1.25rem;
  min-height: 60vh;
}

.detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.detail-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.like-btn {
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.like-btn:hover { transform: scale(1.1); box-shadow: var(--shadow-md); }
.like-btn.liked { border-color: #fca5a5; background: #fff1f1; }

.detail-summary {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tag {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(59,107,250,0.15);
}

/* ─── Info Section ─── */
.info-section {
  background: var(--bg-base);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.info-row:last-child { border-bottom: none; }

.info-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
  color: var(--text-muted);
}

.info-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  min-width: 52px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info-value {
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
}

/* ─── Source Badge ─── */
.source-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
}

/* ─── Action Buttons ─── */
.action-buttons {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.btn {
  flex: 1;
  padding: 0.8rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(59,107,250,0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(59,107,250,0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

/* ─── Footer ─── */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ─── Responsive ─── */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .detail-hero { height: 300px; }
}

/* ─── Event Dates ─── */
.event-dates {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ff3366;
  background: #fff0f3;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 4px;
}
