﻿: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-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--accent-light);
}

.text-primary-accent {
  color: var(--accent) !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(-4px);
  box-shadow: 0 10px 25px 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: 10px;
  left: 10px;
  z-index: 5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.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.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  gap: 6px;
  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.35);
  z-index: 4;
}

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

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

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

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

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

.bg-primary-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.4);
}

.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; }
.max-w-750 { max-width: 750px; }
.max-w-850 { max-width: 850px; }
.fw-extrabold { font-weight: 800; }