/* =========================================================
   TOP 부천 - profiles.css
   프로필 페이지 (회원 전용 · 로그인 게이트 + 카드 그리드)
   ========================================================= */

/* ---------- Member Gate (비회원 상태) ---------- */
.member-gate {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.gate-card {
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.12), transparent 60%),
    var(--bg-card);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gate-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: calc(var(--radius-xl) - 4px);
  pointer-events: none;
}

.gate-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0, transparent 12px, rgba(212, 175, 55, 0.04) 12px, rgba(212, 175, 55, 0.04) 13px);
  pointer-events: none;
}

.gate-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold-strong);
  position: relative;
}

.gate-icon svg { width: 32px; height: 32px; }

.gate-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.gate-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.8;
  max-width: 320px;
  margin: 0 auto var(--space-xl);
}

.gate-steps {
  display: grid;
  gap: var(--space-sm);
  text-align: left;
  max-width: 360px;
  margin: 0 auto var(--space-xl);
}

.gate-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(10, 8, 6, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.gate-step .step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
}

.gate-step .step-text {
  font-size: 0.85rem;
  color: var(--text-body);
}

.gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  max-width: 360px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- Profile Grid (회원 상태 - 참고용 레이아웃) ---------- */
.profile-section {
  padding: var(--space-xl) 0;
  /* 데모용 - 기본은 숨김 처리 가능 */
}

.profile-filters {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding: 0 var(--space-md) var(--space-md);
  margin: 0 calc(-1 * var(--space-md));
  scrollbar-width: none;
}

.profile-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 0.5rem var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  border-color: transparent;
  font-weight: 600;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
}

.profile-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.profile-card .photo {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8)),
    linear-gradient(135deg, #3a2f24, #1a1612);
  position: relative;
}

.profile-card .blur-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(10, 8, 6, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.75rem;
  gap: var(--space-xs);
}

.profile-card .blur-overlay svg { width: 20px; height: 20px; }

.profile-card .info {
  padding: var(--space-sm);
  text-align: center;
}

.profile-card .name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.profile-card .tags {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.profile-card .availability {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  z-index: 1;
  backdrop-filter: blur(4px);
}

.profile-card .availability.free {
  background: rgba(244, 212, 124, 0.2);
  color: var(--status-live);
  border: 1px solid rgba(244, 212, 124, 0.4);
}

.profile-card .availability.busy {
  background: rgba(229, 57, 53, 0.2);
  color: var(--status-busy);
  border: 1px solid rgba(229, 57, 53, 0.4);
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .profile-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
  .gate-card { padding: var(--space-3xl) var(--space-xl); }
  .gate-title { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
  .profile-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   [v15] 휴무 상태 표시 — 흐리게 + 라벨
   ========================================================= */

/* 휴무 카드 — 살짝 어둡게 표시 */
.profile-card.is-off {
  opacity: 0.7;
  filter: grayscale(0.3);
  position: relative;
}

.profile-card.is-off:hover {
  opacity: 0.9;
  filter: grayscale(0);
}

.profile-card.is-off .profile-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

/* 휴무 라벨 */
.profile-status.status-off {
  background: rgba(120, 120, 120, 0.85);
  color: #ddd;
  border-color: rgba(255, 255, 255, 0.2);
}

.profile-status.status-off .dot {
  background: #999;
  box-shadow: 0 0 6px rgba(180, 180, 180, 0.5);
}

/* 휴무 카드의 메인 사진에 워터마크 */
.profile-card.is-off::after {
  content: '🌙 휴무';
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(50, 50, 50, 0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  z-index: 3;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* =========================================================
   [v15.1] 프로필 상태 라벨 (대기중/근무중/휴무)
   ========================================================= */

.profile-status {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  font-family: var(--font-body), sans-serif;
}

.profile-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* 대기중 — 그린 (LIVE 컬러) */
.profile-status.status-waiting {
  background: rgba(22, 163, 74, 0.85);
  color: #fff;
  border-color: rgba(187, 247, 208, 0.4);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.profile-status.status-waiting .dot {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
  animation: profile-pulse 1.5s ease-in-out infinite;
}

/* 근무중 — 오렌지 (Working 컬러) */
.profile-status.status-working {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
  border-color: rgba(254, 215, 170, 0.5);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.profile-status.status-working .dot {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.9);
  animation: profile-pulse 1.5s ease-in-out infinite;
}

@keyframes profile-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.85; }
}

/* 휴무 라벨 (이미 있는데 같이 정리) */
.profile-status.status-off {
  background: rgba(80, 80, 80, 0.85);
  color: #ddd;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.profile-status.status-off .dot {
  background: #999;
  box-shadow: 0 0 6px rgba(180, 180, 180, 0.5);
  animation: none;
}

/* 호버 시 살짝 강조 */
.profile-card:hover .profile-status {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* =========================================================
   [v15.1] profile-thumb 컨테이너 (이미지 + 상태 라벨)
   ========================================================= */
.profile-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #3a2f24, #1a1612);
  overflow: hidden;
}

.profile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.4;
}

/* VIP 뱃지도 같이 */
.profile-vip-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 회원 잠금 상태 (is-locked) */
.profile-grid.is-locked .profile-thumb img {
  filter: blur(20px) brightness(0.5);
}

.profile-grid.is-locked .profile-name,
.profile-grid.is-locked .profile-meta span {
  filter: blur(6px);
  pointer-events: none;
}
