/** * 내 프로필 페이지 (profile.html) */ .profile-page { /* 배경·폰트는 .app-page */ } .profile-content { width: 100%; max-width: 42rem; } .profile-header { margin-bottom: 1.5rem; } .profile-header h1 { margin: 0 0 0.5rem; font-size: 1.75rem; font-weight: 900; letter-spacing: -0.02em; } .profile-header p { margin: 0; font-size: 0.875rem; color: #64748b; } .profile-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem; box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06); overflow: hidden; } .profile-hero { padding: 1.75rem 1.5rem 1.25rem; background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%); border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 1.25rem; } .profile-avatar-wrap { position: relative; flex-shrink: 0; } .profile-avatar { width: 5.5rem; height: 5.5rem; border-radius: 9999px; object-fit: cover; background: #fff; border: 3px solid #fff; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12); } .profile-avatar-btn { position: absolute; right: -0.125rem; bottom: -0.125rem; width: 2rem; height: 2rem; border-radius: 9999px; border: 2px solid #fff; background: #2563eb; color: #fff; font-size: 0.875rem; cursor: pointer; } .profile-hero-text h2 { margin: 0; font-size: 1.25rem; font-weight: 800; } .profile-hero-text p { margin: 0.25rem 0 0; font-size: 0.8125rem; color: #64748b; } .profile-avatar-remove { margin-top: 0.75rem; font-size: 0.75rem; color: #94a3b8; background: none; border: none; cursor: pointer; padding: 0; text-decoration: underline; } .profile-body { padding: 1.5rem; } .profile-field { margin-bottom: 1.125rem; } .profile-label { display: block; font-size: 0.6875rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.375rem; } .profile-input { display: block; width: 100%; box-sizing: border-box; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.875rem; outline: none; } .profile-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); } .profile-divider { height: 1px; background: #e2e8f0; margin: 1.25rem 0; } .profile-btn { display: block; width: 100%; padding: 0.875rem 1rem; border: none; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 700; cursor: pointer; } .profile-btn-primary { background: #2563eb; color: #fff; } .profile-btn-primary:hover { background: #1d4ed8; } .profile-btn-primary:disabled { background: #cbd5e1; cursor: not-allowed; } .profile-section-title { margin: 0 0 0.375rem; font-size: 0.9375rem; font-weight: 800; color: #0f172a; } .profile-section-desc { margin: 0 0 1rem; font-size: 0.8125rem; color: #64748b; } .profile-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; } .profile-toggle-row + .profile-toggle-row { border-top: 1px solid #f1f5f9; } .profile-toggle-label { font-size: 0.875rem; font-weight: 600; color: #334155; } .profile-toggle-hint { font-size: 0.6875rem; color: #94a3b8; margin-top: 0.125rem; } .profile-toggle { position: relative; flex-shrink: 0; display: inline-flex; width: 2.75rem; height: 1.5rem; align-items: center; border: none; border-radius: 9999px; background: #e2e8f0; cursor: pointer; transition: background 0.2s; padding: 0; } .profile-toggle.is-on { background: #2563eb; } .profile-toggle-circle { display: inline-block; width: 1rem; height: 1rem; border-radius: 9999px; background: #fff; transform: translateX(0.25rem); transition: transform 0.2s; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15); } .profile-toggle-circle.is-on { transform: translateX(1.5rem); } .profile-btn-outline { background: #fff; color: #475569; border: 1px solid #e2e8f0; } .profile-btn-outline:hover { background: #f8fafc; } .profile-error { margin-top: 0.75rem; font-size: 0.8125rem; color: #ef4444; } .profile-error.hidden, .profile-success.hidden { display: none; } .profile-success { margin-top: 0.75rem; font-size: 0.8125rem; color: #059669; } .profile-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 23, 42, 0.5); } .profile-modal.open { display: flex; } .profile-modal-box { width: 100%; max-width: 24rem; background: #fff; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15); } .profile-modal-box h3 { margin: 0 0 1rem; font-size: 1.0625rem; font-weight: 800; } .profile-modal-actions { display: flex; gap: 0.5rem; margin-top: 1rem; } .profile-modal-actions .profile-btn { flex: 1; } .hidden { display: none !important; }