@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800&display=swap');

:root {
  --bg: #f3f4f6;
  --sidebar: #ffffff;
  --sidebar-accent: #2563eb;

  --panel: #ffffff;
  --text: #111827;
  --subtext: #6b7280;

  --accent: #2563eb;
  --accent2: #0ea5e9;
  --danger: #dc2626;

  --post-list-bg: #ffffff;
  --post-detail-bg: #ffffff;
  --comment-bg: #f9fafb;

  --post-title: #1d4ed8;
  --post-title-hover: #9333ea;

  --button-bg: linear-gradient(92deg, #2563eb 0%, #1d4ed8 100%);
  --button-bg2: linear-gradient(93deg, #e5e7eb 0%, #2563eb 140%);
  --button-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);

  --card-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --border: rgba(148, 163, 184, 0.7);
  --border-hover: rgba(37, 99, 235, 0.6);
  --muted-border: #e5e7eb;

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --text-muted: #9ca3af;
}

/* 기본 리셋 / 텍스트 설정 */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column; /* 상단바 + 컨텐츠 수직 배치 */
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR",
    "Helvetica Neue", Arial;
}

/* 기존 글로우 제거 */
body::after,
main::before,
.nickname-result-card::before {
  content: none !important;
  display: none !important;
}

/* ------------------ ASIDE / TOP NAVBAR ------------------ */
aside {
  width: 100%;
  min-height: 60px;
  background: #ffffff;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--muted-border);
  z-index: 40;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  transition: padding 160ms ease, box-shadow 160ms ease;
}

aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    140deg,
    rgba(37, 99, 235, 0.04) 10%,
    rgba(14, 165, 233, 0.04) 90%
  );
  pointer-events: none;
  opacity: 0.9;
}

aside h2 {
  color: var(--sidebar-accent);
  margin: 0 12px 0 0;
  font-size: 0.95rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1px;
}

/* 공통 버튼 스타일 */
aside button,
.logo-box {
  width: auto;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 6px 14px;
  transition: background 0.12s, color 0.12s, border-color 0.12s,
    box-shadow 0.12s, transform 0.12s;
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* 로고 박스 – 왼쪽 고정 */
aside button.logo-box,
.logo-box {
  font-size: 1.1rem;
  text-align: center;
  background: linear-gradient(97deg, #2563eb 0%, #0ea5e9 60%, #22c55e 100%);
  color: #f9fafb !important;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  margin-right: 12px;
  margin-bottom: 0;
  border-radius: 999px;
  padding: 10px 18px;
  border: none;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
}

/* 로고 오른쪽 메뉴 묶음 */
.top-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 접혔을 때 숨김 */
.top-nav-links.collapsed {
  display: none;
}

/* 맨 오른쪽 메뉴 토글 버튼 */
.menu-toggle {
  margin-left: auto;          /* 오른쪽 끝으로 밀기 */
  font-weight: 700;
  font-size: 0.84rem;
  color: #2563eb;
}
.menu-toggle:hover {
  color: #1d4ed8;
  background: #e5edff;
}

/* 일반 네비 버튼 호버/활성 (로고/메뉴토글 제외) */
aside button:not(.logo-box):not(.menu-toggle):hover,
aside button:not(.logo-box):not(.menu-toggle).active {
  background: #e5edff;
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--accent);
}
aside button.active:not(.logo-box):not(.menu-toggle) {
  background: linear-gradient(
    93deg,
    #e0ebff 0%,
    #e5f0ff 60%,
    #fef3c7 140%
  );
  color: #1f2933;
  border: 1px solid var(--border-hover);
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.45);
}

/* 메뉴 / 드롭다운 */
.menu {
  position: relative;
  margin-bottom: 0;
}
.menu-button {
  width: auto;
  text-align: center;
}
.dropdown {
  display: none;
  position: static;
  margin-top: 6px;
  background: #f9fafb;
  border-radius: 10px;
  padding: 6px 0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.menu.open .dropdown {
  display: block;
}
.dropdown a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text);
}
.dropdown a:hover {
  background: #e5edff;
  color: var(--accent);
}

/* 탭 */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.top-nav-wrapper {
  margin-left: auto;             /* 로고에서 오른쪽으로 쭉 밀기 */
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;

  /* ▶ 로고와 메뉴 사이 벌리고, 메뉴/토글을 오른쪽으로 몰기 */
  margin-left: auto;

  /* ▶ 접기/펼치기 애니메이션 */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* 접힌 상태: 살짝 위로 올리면서 사라지게 */
.top-nav-links.collapsed {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;   /* 클릭 막기 */
}

/* 오른쪽 끝 메뉴 토글 버튼 */
.menu-toggle {
  margin-left: 8px;       /* 메뉴 묶음 바로 오른쪽에 붙게 */
  font-weight: 700;
  font-size: 0.84rem;
  color: #2563eb;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 6px 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  transition: background 0.12s, color 0.12s,
              box-shadow 0.12s, transform 0.08s;
}

.menu-toggle:hover {
  background: #e5edff;
  color: #1d4ed8;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}

.menu-toggle:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}
/* ------------------ MAIN / CONTENT ------------------ */
main {
  flex: 1;
  min-width: 0;
  padding: 20px 24px 24px;
  overflow-y: auto;
  position: relative;
  z-index: 3;
}

/* 은은한 배경 그라디언트 */
main::before {
  content: "";
  position: fixed;
  z-index: -2;
  right: -6vw;
  top: 12vh;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.12) 6%,
    transparent 65%
  );
  opacity: 0.18;
  filter: blur(20px);
}

/* 헤더 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
header h1 {
  margin: 0;
  font-size: 1.05rem;
  font-family: "Orbitron", sans-serif;
  color: var(--accent);
}

/* header 버튼 */
header a {
  text-decoration: none;
  color: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--button-bg);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--button-shadow);
}
header a:hover {
  background: #1d4ed8;
  color: #ffffff;
}

/* ------------------ PANEL / CARD ------------------ */
.panel {
  background: var(--panel);
  padding: 14px;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  border: 1px solid var(--muted-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.panel h3 {
  margin: 0 0 10px 0;
  color: var(--accent2);
  font-family: "Orbitron", sans-serif;
  font-size: 0.96rem;
}

/* 입력 필드 */
input,
textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

/* 서브 버튼 (제출) */
button.submit {
  background: var(--button-bg);
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-family: "Orbitron", sans-serif;
  cursor: pointer;
  font-size: 0.92rem;
  box-shadow: var(--button-shadow);
}
button.submit:hover {
  background: #1d4ed8;
}

button.submitBtn {
  background: var(--button-bg);
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-family: "Orbitron", sans-serif;
  cursor: pointer;
  font-size: 0.92rem;
  box-shadow: var(--button-shadow);
}
button.submitBtn:hover {
  background: #1d4ed8;
}

/* ------------------ TABS 애니메이션 ------------------ */
/* @keyframes fadein { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }
.tab-content.active { animation: fadein 0.18s ease; } */

/* ------------------ PROFILE / NICKNAME CARD ------------------ */
.nickname-result-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 16px;
  color: #111827;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 14px 0;
  box-shadow: var(--card-shadow);
}
.nickname-result-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-img {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  background: #f3f4f6;
}
.punish {
  color: var(--danger);
  font-size: 1rem;
  font-weight: 700;
  margin-left: 10px;
}
.status {
  font-size: 1rem;
  color: #0ea5e9;
}
.online {
  border-radius: 8px;
  padding: 3px 10px;
  margin-left: 8px;
  font-weight: 800;
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
}
.online.status-online {
  background: #22c55e;
  color: #052e16;
}
.online.status-offline {
  background: #e5e7eb;
  color: #374151;
}
.online.status-maint {
  background: #fbbf24;
  color: #78350f;
}
.visit {
  font-size: 0.9rem;
  margin-left: 12px;
  color: #4b5563;
}

/* rank / clan info */
.rank-info,
.clan-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.45rem 0;
}
.clan-mark-stack {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-block;
  vertical-align: middle;
}
.clan-mark-stack img {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.15);
}
.stat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.6rem 0;
  justify-content: center;
}
.stat-badges span {
  background: #eff6ff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.92rem;
  color: #1f2937;
}
.recent-record {
  font-size: 0.95rem;
  margin-top: 0.6rem;
  text-align: center;
  color: #4b5563;
}

/* 신고 버튼 */
.report-btn {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 7px 14px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  margin-left: 8px;
  transition: background 0.12s, box-shadow 0.12s, transform 0.12s;
  box-shadow: 0 4px 10px rgba(248, 113, 113, 0.35);
}
.report-btn:hover {
  background: #b91c1c;
  box-shadow: 0 6px 16px rgba(248, 113, 113, 0.45);
  transform: translateY(-1px);
}
.report-count {
  margin-left: 14px;
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 700;
}

/* ------------------ RANK / PLAYTIME CARDS ------------------ */
.rank-playtime-cards {
  display: flex;
  gap: 1.1rem;
  margin-top: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rank-playtime-card {
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #111827;
  width: 240px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e5e7eb;
}
.rank-playtime-card img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}
.rank-playtime-card .rank-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
}
.rank-playtime-card .rank-playtime {
  font-size: 0.9rem;
  color: #2563eb;
}
.rank-playtime-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-width: 220px;
}
.clan-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2937;
}

/* ------------------ GRADE CARD ------------------ */
.grade-card {
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 12px 18px;
  color: #111827;
  height: 96px;
  width: 280px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e5e7eb;
}
.grade-card img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}
.grade-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #2563eb;
}
.grade-value {
  font-size: 0.9rem;
  color: #4b5563;
}

/* ------------------ LICENSE CARDS ------------------ */
.license-cards {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.license-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  width: 248px;
  background-color: #ffffff;
  color: #111827;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}
.buy-button {
  margin-top: 14px;
  padding: 12px 0;
  background: linear-gradient(135deg, #2563eb, #0ea5e9 85%);
  border: none;
  color: #f9fafb;
  font-weight: 800;
  border-radius: 999px;
  width: 100%;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: background 0.18s, transform 0.12s, box-shadow 0.12s;
  box-shadow: var(--button-shadow);
}
.buy-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9 85%);
}

/* feature list */
.feature-list {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 18px;
  font-size: 14px;
  color: #6b7280;
}

/* ------------------ MODAL ------------------ */
.modal-bg {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.report-modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  min-width: 320px;
  max-width: 92vw;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  animation: fadein 0.16s ease;
}
.report-modal label {
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #111827;
  font-size: 0.96rem;
}
.report-modal textarea {
  min-height: 80px;
  margin-bottom: 1em;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  resize: vertical;
  font-size: 0.95rem;
  padding: 0.6em 0.9em;
}
.report-modal button {
  margin-top: 0.4em;
  align-self: flex-end;
}
.modal-close-btn {
  position: absolute;
  right: 12px;
  top: 10px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.85;
}
.modal-close-btn:hover {
  color: #111827;
  opacity: 1;
}

/* ------------------ REPORT & GUILLOTINE ------------------ */
.guillotine-card,
.report-card {
  background: #ffffff;
  border-radius: 10px;
  margin: 1.1rem 0;
  padding: 1rem 1.1rem;
  box-shadow: var(--card-shadow);
  color: #111827;
  font-size: 0.96rem;
  border: 1px solid #e5e7eb;
}
.guillotine-card .row,
.report-card .row {
  margin-bottom: 0.5rem;
}
.guillotine-card .badge,
.report-card .badge {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-right: 10px;
  display: inline-block;
}
.guillotine-card .reason,
.report-card .reason {
  color: var(--danger);
  font-weight: 700;
  font-size: 0.95rem;
}
.guillotine-card .date,
.report-card .date {
  color: #6b7280;
  font-size: 0.9rem;
}

/* ------------------ MATCH TABLE ------------------ */
table.match-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
table.match-table th,
table.match-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 0.9rem;
  color: #111827;
}
table.match-table th {
  background: #f9fafb;
  color: #4b5563;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ------------------ DETAIL PANELS ------------------ */
#post-detail,
#notice-detail,
#trade-detail,
#event-detail {
  background: var(--post-detail-bg);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.4rem;
  display: none;
  width: 100%;
  border: 1px solid #e5e7eb;
}
#post-detail h4,
#notice-detail h4,
#trade-detail h4,
#event-detail h4 {
  margin-top: 0;
  color: #2563eb;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
}
#post-detail .author,
#notice-detail .author,
#trade-detail .author,
#event-detail .author {
  color: #6b7280;
  margin-left: 12px;
  font-size: 0.9rem;
}
#post-detail .date,
#notice-detail .date,
#trade-detail .date,
#event-detail .date {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-left: 14px;
}
#post-detail .comment-box,
#notice-detail .comment-box,
#trade-detail .comment-box,
#event-detail .comment-box {
  background: var(--comment-bg);
  border-radius: 8px;
  margin-top: 1rem;
  padding: 1rem;
}
#post-detail .comment-box p,
#notice-detail .comment-box p,
#trade-detail .comment-box p,
#event-detail .comment-box p {
  margin: 0 0 6px 0;
  color: #374151;
}
#post-detail .close-detail,
#notice-detail .close-detail,
#trade-detail .close-detail,
#event-detail .close-detail {
  float: right;
  font-size: 0.9rem;
  color: var(--accent2);
  background: #e5f0ff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  margin-top: -6px;
  transition: background 0.12s, color 0.12s;
}
#post-detail .close-detail:hover,
#notice-detail .close-detail:hover,
#trade-detail .close-detail:hover,
#event-detail .close-detail:hover {
  background: #2563eb;
  color: #ffffff;
}

/* 삭제 버튼 */
.delete-btn,
.delete-comment-btn {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
  margin-left: 8px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
}
.delete-btn:hover,
.delete-comment-btn:hover {
  background: #b91c1c;
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.4);
  transform: translateY(-1px);
}

/* ------------------ DROPDOWN MENU (우측용) ------------------ */
.menu {
  position: relative;
  display: inline-block;
}
.menu-button {
  background: none;
  color: #374151;
  padding: 10px 16px;
  border: none;
  font-size: 0.9rem;
  font-family: "Orbitron", sans-serif;
  cursor: pointer;
  letter-spacing: 1px;
}
.dropdown {
  display: none;
  position: absolute;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-width: 150px;
  z-index: 99;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.16);
  right: 0;
}
.dropdown a {
  color: #374151;
  padding: 8px 14px;
  text-decoration: none;
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 0.86rem;
  transition: background 0.12s, color 0.12s;
}
.dropdown a:hover {
  background-color: #eff6ff;
  color: #2563eb;
}
.menu:hover .dropdown {
  display: block;
}

/* ------------------ LOGO ------------------ */
.logo-title {
  font-size: 24px;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
  letter-spacing: 2px;
  font-family: "Orbitron", sans-serif;
  text-shadow: none;
}

.logo-box {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #2563eb 18%, #0ea5e9 82%);
  color: #f9fafb;
  padding: 10px 20px;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
  margin-bottom: 0;
}
/* .logo-box::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #bfdbfe;
  margin: 8px auto 0;
  border-radius: 3px;
} */

/* ------------------ POSTS / TABLE LIST ------------------ */
/* 게시판 리스트 공통 (posts / notice / trade / event) */
#posts-list-table,
#notice-list-table,
#trade-list-table,
#event-list-table {
  width: 100%;
  border-collapse: collapse;
  /* 기본은 화이트 카드 */
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  box-shadow: var(--card-shadow);
}

/* 헤더 공통 */
#posts-list-table th,
#notice-list-table th,
#trade-list-table th,
#event-list-table th {
  background: #f9fafb;
  color: #4b5563;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Orbitron", sans-serif;
  font-size: 0.86rem;
  border-top: 1px solid #e5e7eb;
}

/* 제목 링크 공통 스타일 */
.notice-title-link,
.post-title-link,
.trade-title-link,
.event-title-link {
  color: #1d4ed8;            /* 선명한 파랑 */
  cursor: pointer;
  font-weight: 700;
  transition: color 0.12s;
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
}
.notice-title-link:hover,
.post-title-link:hover,
.trade-title-link:hover,
.event-title-link:hover {
  color: #9333ea;            /* 호버 시 보라 느낌 */
  text-decoration: underline;
}

/* ───────── 공지 리스트 전용: 화이트계열에서 한 톤 어두운 카드 ───────── */

#notice-list-table {
  background: #f3f4f6;       /* 전체 카드 살짝 회색 */
}

#notice-list-table th {
  background: #e5e7eb;       /* 헤더는 더 진한 회색 */
  color: #111827;
}

/* 공지 본문 셀 – 연한 회색 */
#notice-list-table td {
  background: #f9fafb;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

/* 짝수 줄은 조금 더 어둡게 */
#notice-list-table tbody tr:nth-child(even) td {
  background: #e5e7eb;
}

/* 호버 시 은은한 파란 하이라이트 */
#notice-list-table tbody tr:hover td {
  background: #e0e7ff;
}

/* ───────── posts / trade / event 전용: 완전 화이트 카드 ───────── */

#posts-list-table td,
#trade-list-table td,
#event-list-table td {
  background: #ffffff;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

/* 짝수 줄: 아주 옅은 회색 */
#posts-list-table tbody tr:nth-child(even) td,
#trade-list-table tbody tr:nth-child(even) td,
#event-list-table tbody tr:nth-child(even) td {
  background: #f9fafb;
}

/* 호버 시 파란 하이라이트 */
#posts-list-table tbody tr:hover td,
#trade-list-table tbody tr:hover td,
#event-list-table tbody tr:hover td {
  background: #eff6ff;
}

/* Investigation Tab (scoped) – 라이트 테마 안에서만 다크 카드 스타일 */

#investigation {
  background: #020617;
  border-radius: 14px;
  padding: 18px 16px 20px;
  color: #e5e7eb;
}

/* 내부 패널은 배경/테두리 제거해서 #investigation 배경만 보이게 */
#investigation .panel {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

#investigation .inv-body {
  display: block !important;
}

/* 리스트/상세는 한 줄로 쌓이게 */
#investigation .inv-list,
#investigation .inv-detail {
  width: 100% !important;
}

#investigation .inv-list {
  margin-bottom: 16px;
}

/* 리스트 테이블 – 전체 다크, 선택/호버만 약간 밝게 */
#investigation #inv-list-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  background: #020617;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1f2937;
}
#investigation #inv-list-table thead th,
#investigation #inv-list-table tbody td {
  padding: 10px 12px;
}
#investigation #inv-list-table thead th {
  background: #020617;
  color: #9ca3af;
  border-bottom: 1px solid #1f2937;
  font-weight: 600;
}
#investigation #inv-list-table tbody td {
  background: #020617;
  color: #e5e7eb;
  border-bottom: 1px solid #020617;
}
#investigation #inv-list-table tbody tr:nth-child(even) td {
  background: #020617;
}
#investigation #inv-list-table tbody tr[data-id] {
  cursor: pointer;
}
#investigation #inv-list-table tbody tr:hover td {
  background: #0b1120;
}
#investigation #inv-list-table tbody tr.selected td,
#inv-list-tbody tr.selected td {
  background: #111827;
}

/* 긴 텍스트 말줄임(담당자/메모) */
#investigation #inv-list-table td:nth-child(4),
#investigation #inv-list-table td:nth-child(6) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 상세 카드 – 다크 카드 */
#investigation .inv-detail {
  background: #020617;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #1f2937;
}

/* 큰 화면에서 상세 상단 ‘히어로’ 요소가 좌우로 더 넓게 보이도록 */
#investigation .inv-hero .metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}
@media (max-width: 1100px) {
  #investigation .inv-hero .metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}
/* 스크린샷 */
.inv-screenshots .ss-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inv-screenshots .ss-item {
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
  background: #0b0b0f;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.inv-screenshots .ss-item img {
  display: block;
  height: 80px;
  width: auto;
}

.inv-screenshots .ss-tag {
  position: absolute;
  left: 4px;
  top: 4px;
  padding: 2px 4px;
  font-size: 10px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border-radius: 3px;
}

/* 오버레이 */
.ss-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;      /* JS에서 flex로 바꿈 */
  align-items: center;
  justify-content: center;
}

.ss-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.ss-overlay-inner {
  position: relative;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ★ 여기 크기 고정 */
.ss-overlay-img {
  width: 1100px;       /* 보고 싶어하는 고정 가로 크기 */
  height: 740px;      /* 비율 맞춰서 고정 세로 크기 */
  max-width: 95vw;    /* 모바일에서 너무 튀어나가지 않게 */
  max-height: 95vh;
  object-fit: contain; /* gif / jpg 둘 다 비율 유지 */
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border-radius: 6px;
}

/* 닫기/이동 버튼은 그대로 써도 되고, 필요하면 위치만 조절 */
.ss-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.ss-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.9);
  border: none;
  color: #e5e7eb;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
}

.ss-prev { left: -50px; }
.ss-next { right: -50px; }

/* 제목/서브텍스트 */
.inv-hero .ttl {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin: 10px 0;
  color: #e5e7eb;
}
.inv-hero .sub {
  text-align: center;
  opacity: 0.8;
  margin-bottom: 20px;
  color: #9ca3af;
}
.inv-hero .case-badge {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #1f2937;
  border-radius: 8px;
  background: #020617;
}

.inv-hero .metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  text-align: center;
}
.inv-hero .metrics .k {
  opacity: 0.7;
  font-size: 12px;
  margin-bottom: 6px;
  color: #9ca3af;
}
.inv-hero .metrics .v {
  font-size: 18px;
  font-weight: 700;
  color: #e5e7eb;
}

.inv-section {
  margin-top: 28px;
}
.inv-section h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #e5e7eb;
}

/* 매치 리스트 – 다크 테이블 */
.inv-matches {
  width: 100%;
  border-collapse: collapse;
}
.inv-matches th,
.inv-matches td {
  padding: 8px 10px;
  border-bottom: 1px solid #1f2937;
}
.inv-matches th {
  background: #020617;
  color: #9ca3af;
}
.inv-matches td {
  color: #e5e7eb;
}
.inv-matches .empty {
  text-align: center;
  opacity: 0.7;
}

/* 도넛/레포트 카드 */
.report-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: center;
}
.donut {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
}
.donut-hole {
  position: absolute;
  inset: 28px;
  background: #020617;
  border-radius: 50%;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.donut-center .main {
  font-weight: 800;
  font-size: 24px;
  color: #e5e7eb;
}
.donut-center .sub {
  opacity: 0.8;
  font-size: 12px;
  margin-top: 4px;
  color: #9ca3af;
}

.legend {
  list-style: none;
  padding: 0;
  margin: 0;
}
.legend li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #1f2937;
}
.legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend .label {
  flex: 1;
  opacity: 0.9;
  color: #e5e7eb;
}
.legend .val,
.legend .per {
  width: 80px;
  text-align: right;
  color: #9ca3af;
}

/* 코멘트 리스트 */
.inv-comments {
  list-style: none;
  padding: 0;
  margin: 0;
}
.inv-comments li {
  padding: 12px 8px;
  border-bottom: 1px solid #1f2937;
}
.inv-comments .who {
  font-weight: 700;
  display: inline-block;
  margin-right: 8px;
  color: #e5e7eb;
}
.inv-comments .time {
  display: inline-block;
  opacity: 0.7;
  font-size: 12px;
  color: #9ca3af;
}
.inv-comments .txt {
  margin-top: 6px;
  color: #e5e7eb;
}
.inv-comments .meta {
  margin-top: 4px;
  opacity: 0.7;
  font-size: 12px;
  color: #9ca3af;
}

/* 선택 표시 */
#inv-list-tbody tr {
  cursor: pointer;
}
#inv-list-tbody tr.selected {
  background: #111827;
}

/* 페이지네이션 */
.pager {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  margin: 12px 0 4px;
}
.pager .pg {
  border: 1px solid #1f2937;
  padding: 6px 10px;
  border-radius: 8px;
  background: #020617;
  cursor: pointer;
  color: #e5e7eb;
}
.pager .pg.current {
  font-weight: 700;
  outline: 2px solid #3b82f6;
}
.pager .pg:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pager .ellipsis {
  padding: 0 6px;
  opacity: 0.7;
  color: #9ca3af;
}

.inv-report .report-wrap.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* 오른쪽 신고 리스트 고정 높이 + 스크롤 */
.inv-report .report-right {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

/* 리스트 스타일 */
.report-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.report-item {
  padding: 12px 0;
  border-bottom: 1px solid #1f2937;
}
.report-item .hdr {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #9ca3af;
  font-size: 12px;
}
.report-item .nick {
  font-weight: 700;
  color: #e5e7eb;
}
.report-item .reason {
  margin: 4px 0;
  font-weight: 600;
  color: #f97316;
}
.report-item .body {
  color: #e5e7eb;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 스크롤바 */
.inv-report .report-right::-webkit-scrollbar {
  width: 8px;
}
.inv-report .report-right::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 8px;
}

/* ------------------ FOOTER ------------------ */
footer {
  background: #ffffff;
  color: #4b5563;
  font-size: 0.9rem;
  padding: 0.9rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  margin-top: 1.6rem;
  z-index: 2;
  box-shadow: 0 -6px 12px rgba(15, 23, 42, 0.04);
}
.footer-left,
.footer-right {
  white-space: nowrap;
  font-size: 0.9rem;
  color: #6b7280;
}

.spoiler {
  background: rgba(156, 163, 175, 0.25);
  color: transparent;
  border-radius: 4px;
  padding: 0 4px;
  transition: color 0.12s, background 0.12s;
  cursor: pointer;
  user-select: none;
}
.spoiler::selection {
  color: transparent;
  background: rgba(156, 163, 175, 0.25);
}
.spoiler.revealed {
  color: inherit;
  background: rgba(156, 163, 175, 0.4);
}

/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 1200px) {
  main {
    padding: 1.1rem;
  }
  .nickname-result-card,
  .panel {
    padding: 1rem 0.8rem;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  aside {
    width: 100vw;
    flex-direction: row;
    justify-content: space-between;
    min-height: 54px;
    border-bottom: 1px solid var(--muted-border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    padding: 0.7rem 0.8rem;
  }
  aside h2 {
    display: none;
  }
  main {
    padding: 0.9rem 0.6rem 0.9rem 0.6rem;
  }
  .nickname-result-card,
  .panel {
    padding: 0.8rem 0.6rem;
  }
  .logo-box {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
  .rank-playtime-card {
    width: 96vw;
  }
  .grade-card {
    width: 94vw;
  }
  .license-card {
    width: 94vw;
  }
  .logo-box::after {
    width: 28px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0.9rem;
  }
}

.sc-modal-bg{
  position:fixed; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.55);
  z-index:9999;
}
.sc-modal{
  width:min(1100px, 92vw);
  background:#0b1220;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  box-shadow:0 24px 80px rgba(0,0,0,.55);
  padding:18px 18px 16px;
  position:relative;
}
.sc-close{
  position:absolute; top:10px; right:12px;
  width:36px; height:36px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  font-size:22px;
}
.sc-head{ padding:6px 8px 14px; }
.sc-title{ color:#fff; font-weight:800; font-size:18px; }
.sc-sub{ color:rgba(255,255,255,.65); font-size:12px; margin-top:4px; }

.sc-body{ display:grid; grid-template-columns: 1.2fr .8fr; gap:16px; }
@media (max-width: 900px){ .sc-body{ grid-template-columns:1fr; } }

.sc-preview{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:#0f172a;
}

.sc-right{ padding:6px 2px; }
.sc-label{ display:block; margin:10px 0 6px; color:rgba(255,255,255,.75); font-size:12px; }
.sc-input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:#fff;
  outline:none;
}
.sc-actions{ display:flex; gap:10px; margin-top:14px; align-items:center; }
.sc-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px; border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff; cursor:pointer; text-decoration:none;
}
.sc-btn-primary{
  background:#2563eb;
  border-color:#2563eb;
}
.profile-action-row{
  display:flex; gap:10px; align-items:center;
  margin-top:12px;
}
.sharecard-btn{
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.08);
  background:#111827;
  color:#fff;
  cursor:pointer;
}


/* ------------------ 더 부드러운 스크롤바 ------------------ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.9);
}
::-webkit-scrollbar-track {
  background: transparent;
}
