/* ══════════════════════════════════════════════════
   WeLinker 회원 시스템 CSS
   Auth: Network Animation + Glassmorphism Layout
   ══════════════════════════════════════════════════ */

/* ── Astra 헤더/푸터 숨김 (auth 페이지) ────────── */
.page-template-page-login .ast-header-break-point,
.page-template-page-register .ast-header-break-point,
.page-template-page-lostpassword .ast-header-break-point,
.page-template-page-login #ast-desktop-header,
.page-template-page-register #ast-desktop-header,
.page-template-page-lostpassword #ast-desktop-header,
.page-template-page-login .site-header,
.page-template-page-register .site-header,
.page-template-page-lostpassword .site-header,
.page-template-page-login .site-footer,
.page-template-page-register .site-footer,
.page-template-page-lostpassword .site-footer,
.page-template-page-login .ast-footer,
.page-template-page-register .ast-footer,
.page-template-page-lostpassword .ast-footer {
  display: none !important;
}

/* ── Canvas 배경 ──────────────────────────────── */
#networkBg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Floating 노드 장식 ──────────────────────── */
.wl-float-node {
  position: fixed;
  border-radius: 50%;
  background: #FD7014;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  animation: wlFloat 6s ease-in-out infinite;
}
.wl-float-node:nth-child(2) { animation-delay: -2s; animation-duration: 8s; }
.wl-float-node:nth-child(3) { animation-delay: -4s; animation-duration: 7s; }
.wl-float-node:nth-child(4) { animation-delay: -1s; animation-duration: 9s; }
.wl-float-node:nth-child(5) { animation-delay: -3s; animation-duration: 5s; }

@keyframes wlFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}

/* ── Auth 페이지 레이아웃 ─────────────────────── */
.wl-auth-page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 100vh;
  padding: 2rem;
  background: #fff;
}

/* ── 캐릭터 영역 ─────────────────────────────── */
.wl-auth-char {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  flex-shrink: 0;
}
.wl-auth-char-inner {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(253, 112, 20, 0.15);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(253, 112, 20, 0.08);
}
.wl-auth-char-img {
  width: 200px;
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}
.wl-auth-char-subtitle {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.5;
  margin: 0;
}

/* ── 커넥터 (점선) ───────────────────────────── */
.wl-auth-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  flex-shrink: 0;
}
.wl-auth-connector svg {
  width: 80px;
  height: 4px;
}

/* ── 폼 카드 (글라스모피즘) ───────────────────── */
.wl-auth-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

/* ── 브랜드 텍스트 ───────────────────────────── */
.wl-auth-brand {
  margin-bottom: 1.75rem;
}
.wl-auth-brand a {
  text-decoration: none;
  font-family: 'Nunito', 'Pretendard', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.3px;
}
.wl-auth-brand a span {
  color: #FD7014;
}

/* ── 카드 헤더 ───────────────────────────────── */
.wl-auth-card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 0.35rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.wl-auth-card > p {
  color: #888;
  font-size: 0.88rem;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

/* ── 소셜 로그인 ─────────────────────────────── */
.wl-social-login { margin-bottom: 1.25rem; }
.wl-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.wl-social-btn:hover {
  border-color: #bbb;
  background: #fafafa;
}
.wl-social-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── 구분선 ─────────────────────────────────── */
.wl-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  color: #ccc;
  font-size: 0.8rem;
}
.wl-divider::before,
.wl-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

/* ── 폼 공통 ─────────────────────────────────── */
.wl-member-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.wl-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wl-form-group label {
  font-weight: 600;
  font-size: 0.82rem;
  color: #333;
  letter-spacing: 0.01em;
}
.wl-form-group .required { color: #FD7014; }
.wl-label-hint {
  font-weight: 400;
  font-size: 0.76rem;
  color: #aaa;
}
.wl-form-group input[type="text"],
.wl-form-group input[type="email"],
.wl-form-group input[type="password"],
.wl-form-group input[type="tel"] {
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: rgba(255,255,255,0.9);
  color: #111;
}
.wl-form-group input:focus {
  border-color: #FD7014;
  box-shadow: 0 0 0 3px rgba(253, 112, 20, 0.1);
  background: #fff;
}
.wl-input-disabled {
  background: #f5f5f5 !important;
  color: #aaa !important;
  cursor: not-allowed;
}
.wl-form-hint {
  font-size: 0.76rem;
  color: #aaa;
  margin: 0;
}

/* ── 비밀번호 토글 ───────────────────────────── */
.wl-password-wrap { position: relative; }
.wl-password-wrap input {
  width: 100%;
  padding-right: 44px;
  box-sizing: border-box;
}
.wl-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  padding: 4px;
  display: flex;
  align-items: center;
}
.wl-pw-toggle:hover { color: #555; }

/* ── 비밀번호 강도 ───────────────────────────── */
.wl-pw-strength {
  height: 3px;
  border-radius: 2px;
  background: #eee;
  overflow: hidden;
}
.wl-pw-strength::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.3s, background 0.3s;
  border-radius: 2px;
}
.wl-pw-strength.weak::after   { width: 33%; background: #ef4444; }
.wl-pw-strength.medium::after { width: 66%; background: #f59e0b; }
.wl-pw-strength.strong::after { width: 100%; background: #22c55e; }

/* ── 관심분야 칩 ─────────────────────────────── */
.wl-interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wl-interest-chip { cursor: pointer; }
.wl-interest-chip input[type="checkbox"] { display: none; }
.wl-interest-chip span {
  display: inline-block;
  padding: 6px 13px;
  border: 1.5px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #555;
  transition: all 0.15s;
  user-select: none;
  background: rgba(255,255,255,0.8);
}
.wl-interest-chip span:hover {
  border-color: #FD7014;
  color: #FD7014;
}
.wl-interest-chip input:checked + span {
  background: #111;
  border-color: #111;
  color: #fff;
  font-weight: 600;
}

/* ── 동의 체크박스 ───────────────────────────── */
.wl-agree-group { gap: 8px; }
.wl-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  color: #666;
  cursor: pointer;
  line-height: 1.5;
}
.wl-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #FD7014;
}
.wl-checkbox-label a { color: #FD7014; text-decoration: underline; }

/* ── 로그인 옵션 행 ──────────────────────────── */
.wl-login-options {
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
  margin-top: -0.25rem;
}
.wl-forgot-link {
  font-size: 0.82rem;
  color: #888;
  font-weight: 400;
  text-decoration: underline;
}
.wl-forgot-link:hover { color: #FD7014; }

/* ── 에러 메시지 ─────────────────────────────── */
.wl-form-error {
  color: #e53e3e;
  font-size: 0.85rem;
  font-weight: 500;
}
.wl-form-error:empty { display: none; }

/* ── 알림 배너 ───────────────────────────────── */
.wl-form-notice {
  background: #fff7ed;
  border-left: 3px solid #FD7014;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #c2410c;
  margin-bottom: 1.25rem;
  border-radius: 0 6px 6px 0;
  font-weight: 500;
}

/* ── 성공 메시지 ─────────────────────────────── */
.wl-form-success {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #166534;
  margin-bottom: 1.25rem;
  border-radius: 0 6px 6px 0;
  font-weight: 500;
}

/* ── 제출 버튼 — 블랙 기본, 오렌지 호버 ─────── */
.wl-member-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
}
.wl-member-submit::after { display: none; }
.wl-member-submit:hover { background: #FD7014; }
.wl-member-submit:active { opacity: 0.9; }
.wl-member-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── 하단 링크 ───────────────────────────────── */
.wl-member-footer {
  text-align: center;
  margin-top: 1.5rem;
}
.wl-member-footer p {
  font-size: 0.87rem;
  color: #888;
}
.wl-member-footer a {
  color: #FD7014;
  font-weight: 600;
  text-decoration: underline;
}

/* ── 폼 구분선 ───────────────────────────────── */
.wl-form-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0.5rem 0;
}

/* ── 배지 숨김 ───────────────────────────────── */
.wl-member-badge { display: none; }


/* ══════════════════════════════════════════════════
   마이페이지 레이아웃
   ══════════════════════════════════════════════════ */
.wl-member-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: #f5f5f5;
}
.wl-member-canvas { display: none; }
.wl-member-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
}
.wl-member-card--narrow { max-width: 440px; }

.wl-mypage-wrap {
  align-items: flex-start;
  padding: 2.5rem 1.5rem 4rem;
}
.wl-mypage-container {
  display: flex;
  gap: 1.75rem;
  max-width: 1100px;
  width: 100%;
}

/* 사이드바 */
.wl-mypage-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  height: fit-content;
}
.wl-mypage-avatar {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}
.wl-mypage-avatar img {
  border-radius: 50%;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.wl-mypage-avatar h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 3px;
}
.wl-mypage-email { font-size: 0.78rem; color: #aaa; margin: 0; }
.wl-mypage-nav { display: flex; flex-direction: column; gap: 2px; }
.wl-mypage-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.wl-mypage-tab:hover { background: #f5f5f5; color: #111; }
.wl-mypage-tab.active {
  background: #1B2D4F;
  color: #fff;
  font-weight: 600;
}
.wl-mypage-tab svg { opacity: 0.6; }
.wl-mypage-tab.active svg { opacity: 1; }
.wl-mypage-tab--logout {
  margin-top: 0.75rem;
  border-top: 1px solid #eee;
  padding-top: calc(0.75rem + 9px);
  color: #aaa;
}
.wl-mypage-tab--logout:hover { background: none; color: #e53e3e; }

/* 콘텐츠 영역 */
.wl-mypage-content { flex: 1; min-width: 0; }
.wl-mypage-panel {
  display: none;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 2rem;
}
.wl-mypage-panel.active { display: block; }
.wl-mypage-panel h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 0.25rem;
  letter-spacing: -0.03em;
}
.wl-mypage-panel h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wl-mypage-welcome { color: #aaa; font-size: 0.85rem; margin-bottom: 2rem; }

/* 통계 */
.wl-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 2.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}
.wl-dash-stat {
  background: #fff;
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid #e8e8e8;
}
.wl-dash-stat:last-child { border-right: none; }
.wl-dash-stat-num { display: block; font-size: 2rem; font-weight: 800; color: #111; letter-spacing: -0.04em; }
.wl-dash-stat-label { font-size: 0.78rem; color: #aaa; margin-top: 2px; display: block; }

/* 관심 분야 */
.wl-dash-interests { margin-bottom: 2rem; }
.wl-interest-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-interest-tag {
  display: inline-block;
  padding: 5px 12px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #555;
  font-weight: 500;
}

/* 최근 수강 */
.wl-dash-recent { }
.wl-dash-recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
}
.wl-dash-recent-item:last-child { border-bottom: none; }
.wl-dash-recent-name { font-size: 0.9rem; color: #222; }
.wl-dash-recent-date { font-size: 0.8rem; color: #bbb; }

/* 빈 상태 */
.wl-dash-empty { text-align: center; padding: 3rem 1rem; }
.wl-dash-empty p { color: #aaa; font-size: 0.95rem; margin-bottom: 1.25rem; }

/* 버튼 */
.wl-btn-primary {
  display: inline-block;
  background: #FD7014;
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
}
.wl-btn-primary:hover { background: #e5600f; }

/* 주문 목록 */
.wl-orders-list { display: flex; flex-direction: column; gap: 1rem; }
.wl-order-card { border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; }
.wl-order-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: #fafafa;
  font-size: 0.83rem;
  border-bottom: 1px solid #e8e8e8;
}
.wl-order-id { font-weight: 700; color: #111; }
.wl-order-date { color: #aaa; }
.wl-order-status { margin-left: auto; padding: 3px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.wl-order-status--completed { background: #e6f9ee; color: #1a7a40; }
.wl-order-status--processing { background: #e8f1ff; color: #1a4ea8; }
.wl-order-status--on-hold { background: #fff8e1; color: #a06000; }
.wl-order-items { padding: 12px 16px; }
.wl-order-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f5f5f5; }
.wl-order-item:last-child { border-bottom: none; }
.wl-order-item-name { color: #333; font-size: 0.9rem; }
.wl-order-item-price { color: #888; font-size: 0.87rem; }
.wl-order-total { padding: 10px 16px; background: #fafafa; border-top: 1px solid #e8e8e8; text-align: right; font-weight: 700; font-size: 0.92rem; color: #111; }

/* 다운로드 목록 */
.wl-downloads-list { display: flex; flex-direction: column; gap: 0; }
.wl-download-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.wl-download-card:last-child { border-bottom: none; }
.wl-download-info h4 { font-size: 0.95rem; font-weight: 600; color: #111; margin: 0 0 3px; }
.wl-download-file { font-size: 0.8rem; color: #aaa; margin: 0; }
.wl-download-remain { font-size: 0.79rem; color: #e5600f; margin: 3px 0 0; }
.wl-btn-download {
  background: #1B2D4F;
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.wl-btn-download:hover { background: #243a63; }


/* ══════════════════════════════════════════════════
   모바일 반응형
   ══════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .wl-auth-page {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
  }
  .wl-auth-char {
    padding: 1rem;
  }
  .wl-auth-char-inner {
    padding: 1.5rem;
  }
  .wl-auth-char-img {
    width: 140px;
  }
  .wl-auth-connector {
    display: none;
  }
  .wl-auth-card {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }
}
@media (max-width: 768px) {
  .wl-member-wrap { padding: 2rem 1rem; }
  .wl-member-card { padding: 1.75rem 1.25rem; border-radius: 20px; }
  .wl-mypage-container { flex-direction: column; }
  .wl-mypage-sidebar { width: 100%; position: static; }
  .wl-mypage-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .wl-mypage-tab { white-space: nowrap; font-size: 0.85rem; padding: 8px 12px; }
  .wl-mypage-tab svg { display: none; }
  .wl-mypage-tab--logout { border-top: none; margin-top: 0; padding-top: 8px; }
  .wl-dash-stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .wl-dash-stat { padding: 1rem 0.5rem; }
  .wl-dash-stat-num { font-size: 1.4rem; }
  .wl-order-header { flex-wrap: wrap; }
  .wl-download-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .wl-btn-download { width: 100%; text-align: center; }
  .wl-login-options { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
}
