/* ============================================================
   서양주 골프클럽 — 관리자 페이지 (Black & Gold)
   ============================================================ */

:root {
  --a-bg: #F5F4F0;
  --a-sidebar: #0A0A0A;
  --a-sidebar-2: #141416;
}

body.admin-body {
  font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif;
  background: var(--a-bg);
  color: var(--text);
}

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 264px; background: var(--a-sidebar); color: var(--on-dark);
  display: flex; flex-direction: column; flex-shrink: 0;
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 50;
  transition: transform var(--t-fast);
}
.admin-sidebar-brand {
  height: 84px; display: flex; align-items: center; gap: 12px; padding: 0 26px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-brand .brand-mark { width: 40px; height: 40px; font-size: 16px; padding: 3px; }
.admin-sidebar-brand .brand-ko { font-size: 15px; }
.admin-sidebar-brand .brand-en { font-size: 9px; }

.admin-nav { flex: 1; padding: 22px 16px; overflow-y: auto; }
.admin-nav-group { margin-bottom: 22px; }
.admin-nav-label { font-size: 11px; letter-spacing: .14em; color: var(--on-dark-light); text-transform: uppercase; padding: 0 12px; margin-bottom: 10px; font-weight: 700; }
.admin-menu-item {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 11px;
  color: var(--on-dark-sub); font-size: 14.5px; font-weight: 500; transition: background var(--t-fast), color var(--t-fast);
  margin-bottom: 3px;
}
.admin-menu-item i { width: 18px; text-align: center; font-size: 15px; }
.admin-menu-item:hover { background: rgba(255,255,255,.06); color: var(--on-dark); }
.admin-menu-item-active { background: var(--gold); color: var(--black) !important; font-weight: 700; }

.admin-sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,.08); }

.admin-main { flex: 1; margin-left: 264px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
  height: 76px; background: var(--white); border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; padding: 0 36px;
  position: sticky; top: 0; z-index: 30;
}
.admin-topbar h1 { font-size: 19px; font-weight: 700; color: var(--text); font-family: 'Playfair Display', serif; }
.admin-content { padding: 36px; flex: 1; }

@media (max-width: 1024px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}

/* 카드/통계 */
.a-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.a-stat-card { background: var(--white); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.a-stat-card i { font-size: 22px; color: var(--gold-dark); margin-bottom: 14px; display: block; }
.a-stat-num { font-family: 'Inter', sans-serif; font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.1; }
.a-stat-label { font-size: 13px; color: var(--text-light); margin-top: 6px; }
@media (max-width: 900px) { .a-stat-grid { grid-template-columns: repeat(2,1fr); } }

.a-panel { background: var(--white); border-radius: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.a-panel-pad { padding: 32px; }
.a-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; border-bottom: 1px solid var(--line-soft); }
.a-panel-head h2 { font-size: 16.5px; font-weight: 700; color: var(--text); }

.btn-admin {
  display: inline-flex; align-items: center; gap: 8px; background: var(--black); color: var(--on-dark);
  font-size: 13.5px; font-weight: 600; padding: 11px 22px; border-radius: 10px; transition: background var(--t-fast);
}
.btn-admin:hover { background: var(--black-3); }
.btn-admin-gold { background: var(--gold); color: var(--black); }
.btn-admin-gold:hover { background: var(--gold-light); }
.btn-admin-outline { background: var(--white); color: var(--text); border: 1.5px solid var(--line); }
.btn-admin-outline:hover { border-color: var(--text); }
.btn-admin-sm { padding: 8px 16px; font-size: 13px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 9px; color: var(--text-sub); background: var(--a-bg); transition: all var(--t-fast); border: none; cursor: pointer;
}
.icon-btn:hover { background: var(--gold-soft); color: var(--gold-dark); }
.icon-btn-danger:hover { background: #fee2e2; color: #dc2626; }

.a-table { width: 100%; border-collapse: collapse; }
.a-table th { text-align: left; padding: 14px 20px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-light); background: var(--a-bg); font-weight: 700; }
.a-table td { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--text-sub); }
.a-table tr:last-child td { border-bottom: none; }
.a-table tr:hover td { background: var(--a-bg); }

.a-media-item {
  display: flex; align-items: center; padding: 14px; border: 1px solid var(--line-soft); border-radius: 14px; gap: 16px;
}
.a-media-thumb { width: 110px; height: 72px; border-radius: 10px; overflow: hidden; background: #111; position: relative; flex-shrink: 0; }
.a-media-thumb img, .a-media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.a-media-badge { position: absolute; bottom: 4px; right: 4px; color: #fff; font-size: 10px; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 4px; }

.a-list-item {
  display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 14px; margin-bottom: 12px;
}
.a-list-item:last-child { margin-bottom: 0; }
.a-drag-handle { color: var(--text-light); cursor: grab; }

.attach-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--a-bg); border-radius: 10px; font-size: 13.5px; }

.badge-live { display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:999px; }
.badge-live.on { background: rgba(201,162,74,.14); color: var(--gold-dark); }
.badge-live.off { background: var(--line-soft); color: var(--text-light); }

.login-page-wrap {
  background: var(--black); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-card { width: 100%; max-width: 420px; background: var(--white); border-radius: 22px; padding: 44px; box-shadow: var(--shadow-lg); }
