/* 마이테이블 디자인 토큰 + 공통 스타일
   톤: 다크 베이스. 박스/보더 최소. 여백으로 위계. 액센트 1색.
*/

:root {
    --bg: #0E0E0E;
    --surface: #181818;
    --surface-2: #242424;
    --text: #F2F2F0;
    --muted: #B0B0AE;
    --dim: #6E6E6C;
    --accent: #C8A86B;             /* 마이테이블 Dark Gold */
    --accent-hover: #D9B97F;
    --danger: #c95a5a;
    --line: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --radius-lg: 22px;
    --font-sans: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
    --font-serif: 'Noto Serif KR', 'Cormorant Garamond', 'Playfair Display', serif;
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* === Layout === */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 22px 80px;
}
.container--wide { max-width: 1280px; padding: 40px 30px 60px; }

/* === Type === */
h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }
.brand {
    font-family: var(--font-serif);
    font-size: 22px;
    margin: 0 0 4px;
}
.tagline {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

/* === Inputs === */
.input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 16px 18px;
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--dim); }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    transition: opacity 0.15s, transform 0.15s, background 0.15s;
}
.btn:hover { background: var(--surface); }
.btn:active { transform: scale(0.98); }
.btn--primary {
    background: var(--accent);
    color: #001a08;
    border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; }
.btn--danger:hover { color: var(--danger); border-color: var(--danger); }
.btn--block { width: 100%; padding: 16px; }

/* === Cards === */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
}

/* === Toast === */
.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20,22,28,0.95);
    color: var(--text);
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: 0 14px 30px rgba(0,0,0,0.36);
    backdrop-filter: blur(12px);
    font-size: 13.5px;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    z-index: var(--z-toast, 400);
    pointer-events: none;
}
.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* === Section title === */
.section-title {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-transform: uppercase;
    margin: 28px 4px 12px;
}

/* === Empty === */
.empty {
    padding: 40px;
    text-align: center;
    color: var(--dim);
    font-size: 13.5px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}

/* === Spinner === */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Track card (재사용) === */
.track {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius);
    transition: background 0.15s;
}
.track:hover { background: var(--surface); }
.track .art {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
}
.track .meta { flex: 1; min-width: 0; }
.track .title {
    font-size: 14.5px;
    font-weight: 600;
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.track .artist {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === Pulse dot === */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: pulse 1.4s ease-in-out infinite;
    display: inline-block;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.3 } }

/* === Steps progress === */
.steps {
    display: flex;
    gap: 6px;
    margin-bottom: 36px;
}
.step-dot {
    flex: 1;
    height: 3px;
    background: var(--line);
    border-radius: 2px;
}
.step-dot.done { background: var(--accent); }
.step-dot.active { background: var(--accent); opacity: 0.6; }

/* === Footer === */
.footer-muted {
    margin-top: 80px;
    text-align: center;
    font-size: 10.5px;
    color: var(--dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* a11y: screen-reader only labels (added 2026-05-20) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* a11y: account.html 탈퇴 모달 list (added 2026-05-20) */
.warn-list {
    color: rgba(255,255,255,0.62);
    font-size: 13px;
    line-height: 1.7;
    padding-left: 20px;
    margin: 8px 0 12px;
}
.warn-foot {
    color: rgba(255,255,255,0.62);
    font-size: 13px;
    margin-top: 8px;
}
