﻿:root {
  --surface-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent: #e11d48;
  --accent-light: #ffe4e6;
  --kpay-bg: #fee500;
  --kpay-text: #191919;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--surface-bg);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.shadow-xs {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.brand-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background-color: #fee2e2;
}

/* Filter Navigation */
.filter-btn {
  color: #475569;
  border: none;
  background: transparent;
  transition: all 0.15s ease;
  font-size: 0.8rem;
}

.filter-btn:hover {
  color: #0f172a;
  background-color: #e2e8f0;
}

.filter-btn.active {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

/* Photo Cards */
.photo-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  background: #ffffff;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  border-color: #cbd5e1 !important;
}

.photo-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f1f5f9;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.photo-card:hover .photo-img {
  transform: scale(1.03);
}

.photo-img.locked-blur {
  filter: blur(12px) brightness(0.92);
}

.photo-img.unlocked-clear {
  filter: none !important;
}

/* Badges */
.photo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.bg-free {
  background-color: #16a34a;
  color: #ffffff;
}

.bg-vip {
  background-color: #0f172a;
  color: #ffffff;
}

.bg-unlocked {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

/* Hover Action for Free */
.hover-action {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 4;
}

.photo-card:hover .hover-action {
  opacity: 1;
}

/* Lock Overlay */
.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.38);
  z-index: 4;
}

.lock-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.photo-card:hover .lock-circle {
  transform: scale(1.1);
  color: var(--accent);
}

/* Upcoming Avatar */
.upcoming-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Plan Card */
.plan-card {
  transition: all 0.18s ease;
  border: 1.5px solid var(--border-color) !important;
  background: #ffffff;
}

.plan-card:hover {
  border-color: #94a3b8 !important;
  background: #f8fafc;
}

.plan-card.active {
  border-color: var(--accent) !important;
  background-color: #fff1f2;
}

.bg-danger-subtle-light {
  background-color: #fff1f2;
}

/* KakaoPay Button */
.btn-kakaopay {
  background-color: var(--kpay-bg);
  color: var(--kpay-text);
  border: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-kakaopay:hover {
  background-color: #fdd800;
  color: var(--kpay-text);
  box-shadow: 0 4px 12px rgba(254, 229, 0, 0.35);
}

.kpay-icon {
  height: 18px;
  width: auto;
}

/* Viewer Modal */
.viewer-img {
  max-height: 75vh;
  object-fit: contain;
  margin: 0 auto;
}

.viewer-locked-curtain {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Utilities */
.cursor-pointer { cursor: pointer; }
.fs-7 { font-size: 0.9rem; }
.fs-8 { font-size: 0.8rem; }
.fs-9 { font-size: 0.72rem; }
.p-2-5 { padding: 0.85rem; }
.p-3-5 { padding: 1.15rem; }
.max-w-750 { max-width: 750px; }
.max-w-850 { max-width: 850px; }
.fw-extrabold { font-weight: 800; }