/* @import 는 다른 규칙보다 먼저 와야 한다 (일정표용 귀여운 웹폰트) */
@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

/* ============================================================
   ringtool — 디자인 시스템 (muted dark · pink accent)
   포인트 컬러: #db6c97 (rose) / soft #f2a9c7
   톤다운: 글로우·그림자·순백 텍스트의 눈부심을 낮춘다.
   ============================================================ */

:root {
  color-scheme: dark;
}

html,
body {
  background-color: #0b0a0f;
}

body {
  /* 은은한 로즈·모브 글로우 (낮은 채도/알파로 눈부심 억제) */
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(219, 108, 151, 0.10), transparent 62%),
    radial-gradient(820px 460px at 100% 4%, rgba(150, 90, 150, 0.06), transparent 58%),
    radial-gradient(760px 520px at 0% 2%, rgba(95, 85, 135, 0.05), transparent 60%),
    #0b0a0f;
  background-attachment: fixed;
}

/* 가장자리 비네팅으로 화면 전체 밝기를 살짝 눌러준다 */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(125% 95% at 50% 0%, transparent 58%, rgba(0, 0, 0, 0.5) 100%);
}

/* 순백 텍스트의 눈부심 완화 (살짝 오프화이트로) */
.text-white { color: #e8e6ec !important; }

/* ── 로고 ── */
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, #f2a9c7 0%, #db6c97 45%, #b06a9a 100%);
  box-shadow: 0 6px 16px -8px rgba(219, 108, 151, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  position: relative;
  flex: none;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-right-color: transparent;
  transform: rotate(-45deg);
}
.logo-accent {
  background: linear-gradient(90deg, #f2a9c7, #e9b8d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── nav 탭 ── */
#nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #969aa6;
  border: 1px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
#nav a:hover {
  color: #e8e6ec;
  background: rgba(255, 255, 255, 0.04);
}
#nav a.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(219, 108, 151, 0.18), rgba(219, 108, 151, 0.06));
  border-color: rgba(219, 108, 151, 0.30);
  box-shadow: 0 8px 20px -12px rgba(219, 108, 151, 0.45);
}
#nav a svg { width: 1rem; height: 1rem; }

/* ── 카드 ── */
.card {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card-hover:hover {
  border-color: rgba(219, 108, 151, 0.30);
  background: rgba(255, 255, 255, 0.038);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(219, 108, 151, 0.06);
}

/* ── 브랜드 아이콘 타일 ── */
.brand-tile {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  flex: none;
  /* 타일·글리프의 채도/밝기를 한 단계 더 낮춰 쨍함을 줄임 */
  filter: saturate(0.85) brightness(0.9);
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.brand-tile svg { width: 1.5rem; height: 1.5rem; }

/* ── 버튼 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-soft {
  color: #d9dbe1;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-soft:hover { background: rgba(255, 255, 255, 0.09); }
.btn-accent {
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #cd6489, #be5b80);
  border: 1px solid rgba(242, 169, 199, 0.3);
  box-shadow: 0 6px 16px -10px rgba(219, 108, 151, 0.55);
}
.btn-accent:hover { filter: brightness(1.06); }
.btn-ghost {
  color: #969aa6;
  background: transparent;
  border: 1px solid transparent;
}
.btn-ghost:hover { color: #e8e6ec; background: rgba(255, 255, 255, 0.045); }

/* ── 입력 필드 ── */
.input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #ecebf0;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.input::placeholder { color: #6b7280; }
.input:focus {
  border-color: rgba(219, 108, 151, 0.5);
  box-shadow: 0 0 0 3px rgba(219, 108, 151, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* ── 섹션 라벨 ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #82838f;
}

/* ── 스크롤바 ── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); background-clip: content-box; }

::selection { background: rgba(219, 108, 151, 0.30); color: #fff; }

/* ============================================================
   일정표(scheduler) — 보류 중이지만 스타일 보존
   ============================================================ */
#schedule-canvas {
  font-family: 'Jua', system-ui, sans-serif;
  position: relative;
  width: 100%;
  aspect-ratio: 1040 / 575;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fde7ef;
  overflow: hidden;
  --scale: 1;
  --sch-color: #d36a92;
  --cw: 1040px;
}
.sch-overlay { position: absolute; box-sizing: border-box; user-select: none; touch-action: none; }
.sch-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #c98aa3; font-family: 'Jua', sans-serif; font-size: calc(var(--cw) * 0.025);
}
.sch-selected { outline: 2px dashed #db6c97; outline-offset: 1px; }
.sch-handle {
  position: absolute; right: -7px; bottom: -7px;
  width: 13px; height: 13px; background: #db6c97; border: 2px solid #fff;
  border-radius: 3px; cursor: nwse-resize;
}
