/* ===== 리셋 & 기본 ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  background: #eef0f3;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
.hidden { display: none !important; }

/* ===== 변수 ===== */
:root {
  --sidebar-w: 210px;
  --topnav-h: 50px;
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --sidebar-bg: #1e2130;
  --sidebar-hover: rgba(255,255,255,0.07);
  --sidebar-text: rgba(255,255,255,0.78);
  --card-shadow: 0 1px 4px rgba(0,0,0,0.08);
  --radius: 6px;
  --border: #e0e0e0;
}

/* ===== 레이아웃 ===== */
#sidebar {
  position: fixed; top:0; left:0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  overflow-y: auto; overflow-x: hidden;
  z-index: 1100;
  transition: transform .28s ease;
  display: flex; flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
#sidebar::-webkit-scrollbar { width: 3px; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); }

#topNav {
  position: fixed; top:0; left: var(--sidebar-w); right:0;
  height: var(--topnav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 12px; gap: 0;
  z-index: 1000;
  transition: left .28s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

#mainContent {
  margin-left: var(--sidebar-w);
  margin-top: var(--topnav-h);
  padding: 14px 16px;
  min-height: calc(100vh - var(--topnav-h));
  transition: margin-left .28s ease;
}

#overlay {
  display: none; position: fixed; inset:0;
  background: rgba(0,0,0,.45); z-index: 1050;
}

/* ===== 사이드바 ===== */
.sidebar-logo {
  padding: 14px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  min-height: 60px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-logo a { display:flex; align-items:center; justify-content:center; }

/* ===== 유저 패널 ===== */
.user-panel {
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, transparent 100%);
  gap: 9px;
}
.up-avatar-wrap { position: relative; }
.up-avatar-wrap img {
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid rgba(255,215,0,.38); object-fit: cover; display: block;
}
.up-nick {
  font-size: 14px; font-weight: 700; color: #fff;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; text-align: center;
}
.rank-display { display: flex; justify-content: center; }
.up-guest-row { display: flex; gap: 7px; width: 100%; }
.up-guest-row a {
  flex: 1; text-align: center; padding: 8px 0;
  border-radius: 8px; font-size: 12px; font-weight: 600;
  text-decoration: none; transition: background .15s;
}
.up-guest-row a:first-child {
  background: rgba(255,215,0,.12); color: #ffd700;
  border: 1px solid rgba(255,215,0,.28);
}
.up-guest-row a:first-child:hover { background: rgba(255,215,0,.22); }
.up-guest-row a:last-child {
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.13);
}
.up-guest-row a:last-child:hover { background: rgba(255,255,255,.15); color: #fff; }
/* JS가 display:flex 설정 */
.up-action-row { flex-wrap: wrap; gap: 6px; width: 100%; }
.up-btn {
  flex: 1 1 0; display: flex; flex-direction: column;
  align-items: center; gap: 5px; padding: 10px 4px;
  background: rgba(255,255,255,.07); border-radius: 9px;
  color: rgba(255,255,255,.65); font-size: 10px;
  text-decoration: none; transition: background .15s, color .15s; min-width: 0;
}
.up-btn i { font-size: 15px; }
.up-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.up-icon-wrap { position: relative; display: inline-flex; }
.up-icon-wrap em {
  position: absolute; top: -5px; right: -8px;
  background: #e53935; color: #fff; font-size: 9px; font-weight: 700;
  border-radius: 8px; padding: 1px 4px; font-style: normal;
  line-height: 1.2; pointer-events: none; white-space: nowrap;
}
/* 포인트/레벨 바 */
.up-stats-bar {
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 8px 14px;
}
.up-stats-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; font-size: 12px; color: rgba(255,255,255,.7);
}
.up-stat { display: flex; align-items: center; gap: 5px; }
.up-stat b { color: #ffd700; font-size: 13px; }
.up-stat .fa-bolt { color: #00bcd4; }
.up-stat-sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }

.sidebar-search {
  display: flex; gap: 5px; padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-search input {
  flex:1; padding: 6px 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px; color: #fff; font-size: 12px; outline: none;
}
.sidebar-search input::placeholder { color: rgba(255,255,255,.3); }
.sidebar-search button {
  padding: 6px 9px; background: var(--primary);
  border: none; border-radius: 4px; color: #fff; font-size: 12px;
}

.sidebar-nav { padding: 4px 0 20px; flex:1; }
.nav-group { margin-bottom: 0; }

.nav-group-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; font-size: 12.5px; font-weight: 600;
  color: var(--sidebar-text); cursor: pointer;
  transition: background .15s, color .15s; user-select: none;
}
.nav-group-title span { display:flex; align-items:center; gap:7px; }
.nav-group-title:hover { background: var(--sidebar-hover); color: #fff; }
.arrow { font-size: 11px; transition: transform .22s; flex-shrink:0; }
.nav-group-title.collapsed .arrow { transform: rotate(-90deg); }

.nav-submenu { overflow: hidden; max-height: 800px; transition: max-height .3s ease; }
.nav-submenu.closed { max-height: 0; }

.nav-submenu li a {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 26px; font-size: 12px;
  color: rgba(255,255,255,.52); transition: background .12s, color .12s;
}
.nav-submenu li a:hover { background: var(--sidebar-hover); color: rgba(255,255,255,.88); }
.nav-submenu li a i { font-size: 10px; width:13px; text-align:center; opacity:.65; }

.nav-divider {
  padding: 5px 12px 3px 26px; font-size: 10.5px;
  color: rgba(255,255,255,.25); font-style: italic;
}

.nav-single {
  display: flex; align-items: center; gap: 7px; padding: 9px 12px;
  font-size: 12.5px; font-weight: 600; color: var(--sidebar-text);
  transition: background .15s, color .15s;
}
.nav-single:hover { background: var(--sidebar-hover); color: #fff; }

/* ===== 상단 네비 ===== */
#sidebarToggle {
  background: none; border: none; font-size: 17px; color: #555;
  padding: 5px 8px; border-radius: 4px; transition: background .2s; flex-shrink: 0;
}
#sidebarToggle:hover { background: #f0f0f0; }

.top-links { display: flex; gap: 0; flex:1; overflow: hidden; align-items: center; }
.top-links a {
  padding: 5px 10px; font-size: 13px; color: #444;
  white-space: nowrap; border-radius: 4px; transition: background .12s, color .12s;
  position: relative;
}
.top-links a:hover { background: #f0f4ff; color: var(--primary); }
.top-links > a.logo-link { padding: 4px 10px 4px 0; }

/* 드롭다운 */
.top-links .has-drop { position: relative; }
.top-links .has-drop .dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 130px; z-index: 2000; padding: 4px 0;
}
.top-links .has-drop:hover .dropdown { display: block; }
.top-links .dropdown a {
  display: block; padding: 8px 14px; font-size: 12.5px; color: #444;
  border-radius: 0; white-space: nowrap;
}
.top-links .dropdown a:hover { background: #f0f4ff; color: var(--primary); }

.top-right { display:flex; align-items:center; gap:6px; margin-left:auto; flex-shrink:0; }
.online-count { font-size: 11.5px; color: #666; white-space:nowrap; display:flex; align-items:center; gap:4px; }
.online-dot { color: #34a853; font-size: 8px; }
.top-btn {
  background: none; border: none; font-size: 14px; color: #666;
  padding: 5px 7px; border-radius: 4px; transition: background .15s;
}
.top-btn:hover { background: #f0f0f0; }

#topSearchBar {
  position: absolute; top:0; left:0; right:0; height: var(--topnav-h);
  background: #fff; display: flex; align-items: center;
  padding: 0 12px; gap: 7px; z-index: 10;
}
#topSearchBar input {
  flex:1; padding: 7px 10px; border: 1.5px solid var(--primary);
  border-radius: 5px; font-size: 13px; outline: none;
}
#topSearchBar button {
  padding: 7px 11px; background: var(--primary); color: #fff;
  border: none; border-radius: 5px; font-size: 13px;
}

/* ===== 메인 레이아웃 ===== */
.main-layout { display: flex; gap: 14px; align-items: flex-start; }
.main-col { flex:1; min-width:0; }
.right-sidebar { width: 220px; flex-shrink: 0; position: sticky; top: calc(var(--topnav-h) + 12px); }

/* ===== 아이콘 메뉴 ===== */
.icon-menu-wrap {
  background: #fff; border-radius: var(--radius);
  padding: 10px 8px; margin-bottom: 12px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}
.icon-menu { display: flex; gap: 4px; flex-wrap: wrap; }
.icon-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 7px 8px; border-radius: 6px;
  min-width: 64px; transition: background .15s; cursor: pointer;
}
.icon-item:hover { background: #f0f4ff; }
.icon-box {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
}
.icon-box.blue   { background: linear-gradient(135deg,#1a73e8,#4fc3f7); }
.icon-box.red    { background: linear-gradient(135deg,#e53935,#ef9a9a); }
.icon-box.green  { background: linear-gradient(135deg,#00897b,#80cbc4); }
.icon-box.purple { background: linear-gradient(135deg,#7b1fa2,#ce93d8); }
.icon-box.pink   { background: linear-gradient(135deg,#c2185b,#f48fb1); }
.icon-box.orange { background: linear-gradient(135deg,#f57c00,#ffcc80); }
.icon-box.teal   { background: linear-gradient(135deg,#0097a7,#80deea); }
.icon-box.gold   { background: linear-gradient(135deg,#f9a825,#fff176); color:#333; }
.icon-box.dark   { background: linear-gradient(135deg,#37474f,#78909c); }
.icon-box.blue2  { background: linear-gradient(135deg,#0288d1,#81d4fa); }
.icon-box.red2   { background: linear-gradient(135deg,#d32f2f,#ef9a9a); }
.icon-box.green2 { background: linear-gradient(135deg,#388e3c,#a5d6a7); }
.icon-item span { font-size: 11px; color: #555; font-weight: 500; text-align:center; }

/* ===== 콘텐츠 카드 ===== */
.content-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--card-shadow); margin-bottom: 12px;
  border: 1px solid var(--border); overflow: hidden;
}
.content-card.flex1 { flex:1; min-width:0; }
.content-row { display:flex; gap:12px; margin-bottom:12px; }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 9px;
  border-bottom: 2px solid #1a73e8;
  background: #f8f9fa;
}
.card-header h3 { font-size: 13.5px; font-weight: 700; color: #333; display:flex; align-items:center; gap:6px; }
.card-header h3 i { color: var(--primary); font-size: 13px; }
.more-link { font-size: 11.5px; color: var(--primary); display:flex; align-items:center; gap:2px; }
.more-link:hover { text-decoration: underline; }

/* 탭 */
.tabs { display:flex; gap:0; }
.tab {
  padding: 4px 12px; border: none; background: none;
  font-size: 13px; font-weight: 700; color: #999;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .15s;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab:hover:not(.active) { color: #555; }

/* 지역 탭 */
.region-tabs { display:flex; gap:0; border-bottom: 1px solid #f0f0f0; padding: 6px 10px 0; }
.rtab {
  padding: 5px 12px; border: none; background: none;
  font-size: 12.5px; color: #888; border-bottom: 2px solid transparent;
  transition: all .15s;
}
.rtab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.rtab:hover:not(.active) { color: #333; }

/* ===== 게시글 목록 ===== */
.post-list li {
  display: flex; flex-direction: column;
  padding: 8px 12px; border-bottom: 1px solid #f5f5f5;
  gap: 3px; transition: background .1s; cursor: pointer;
}
.post-list li:last-child { border-bottom: none; }
.post-list li:hover { background: #f8faff; }
.post-list li.notice-row { background: #fffbf0; }
.post-list li.notice-row .post-title { font-weight: 700; color: #b71c1c; }

.post-row1 { display:flex; align-items:center; gap:5px; min-width:0; }
.post-row1-left { flex:1; min-width:0; display:flex; align-items:center; gap:5px; }
.post-link { display:flex; align-items:center; gap:5px; flex:1; min-width:0; color:#333; text-decoration:none; }
.post-thumb-sm {
  width: 42px; height: 42px; border-radius: 4px;
  object-fit: cover; flex-shrink: 0;
}
.post-title { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size: 13px; }
.post-preview-line {
  font-size: 11.5px; color: #aaa;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding-left: 2px;
}
.post-meta-row { display:flex; align-items:center; gap:5px; margin-top:1px; }
.badge {
  display: inline-block; padding: 1px 6px;
  background: #e8f0fe; color: var(--primary);
  border-radius: 3px; font-size: 10.5px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}
.badge.notice-badge { background: #fce8e6; color: #c62828; }
.comment-count { color: var(--primary); font-size: 11.5px; margin-left:2px; font-weight: 700; }
.post-right { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.post-author { font-size: 11px; color: #aaa; white-space:nowrap; }
.post-time { font-size: 11px; color: #ccc; white-space:nowrap; }
.view-count { font-size: 11px; color: #ccc; }
.nametag-tmpl {
  position: relative; display: inline-flex; align-items: center;
  height: 22px; vertical-align: middle;
}
.nametag-tmpl-text {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 10px; font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,.8); white-space: nowrap;
  overflow: hidden; padding: 0 8px;
}

.empty-msg { text-align:center; color:#bbb; font-size:12.5px; padding: 20px !important; }
.skeleton-item { pointer-events:none; }
.skeleton {
  height: 13px; margin: 5px 12px;
  background: linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 3px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ===== 레벨 뱃지 ===== */
.lv-badge {
  display: inline-block; padding: 1px 5px;
  border-radius: 3px; font-size: 10px; font-weight: 700;
  color: #fff; flex-shrink: 0; vertical-align: middle; line-height: 1.4;
}
.lv1  { background: #78909c; }
.lv2  { background: #66bb6a; }
.lv3  { background: #29b6f6; }
.lv4  { background: #ab47bc; }
.lv5  { background: #ffa726; color:#333; }
.lv6  { background: #ef5350; }
.lv7  { background: #e91e63; }
.lv8  { background: #9c27b0; }
.lv9  { background: #ff6f00; }
.lv10 { background: linear-gradient(90deg,#f44336,#e91e63,#9c27b0); }

/* ===== 갤러리 3컬럼 16:9 (구형, 레거시) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px; padding: 8px;
}
.gallery-item {
  position: relative; border-radius: 4px;
  overflow: hidden; cursor: pointer; display: block;
  aspect-ratio: 16 / 9;
}
.gallery-item img { width:100%; height:100%; object-fit:cover; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 50%);
  opacity: 0; transition: opacity .2s;
  display: flex; align-items: flex-end; padding: 6px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-size: 11px; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; width:100%; }
.gallery-placeholder { grid-column:1/-1; text-align:center; color:#bbb; padding:24px; font-size:12.5px; }

/* ===== 홈 갤러리 포토카드 그리드 ===== */
.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 10px;
}
.home-gc {
  display: flex; flex-direction: column;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
  background: #fff; cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  text-decoration: none; color: inherit;
}
.home-gc:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.home-gc-img {
  aspect-ratio: 4 / 3; overflow: hidden;
  background: #f0f0f0;
}
.home-gc-img img { width:100%; height:100%; object-fit:cover; transition: transform .25s; display:block; }
.home-gc:hover .home-gc-img img { transform: scale(1.06); }
.home-gc-body { padding: 6px 8px; }
.home-gc-title {
  font-size: 11.5px; color: #333; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4; margin-bottom: 3px;
}
.home-gc-meta { font-size: 10px; color: #aaa; }
@media (max-width: 900px) { .home-gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .home-gallery-grid { grid-template-columns: repeat(2,1fr); gap:6px; padding:8px; } }

/* ===== 오른쪽 사이드바 ===== */
.rs-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--card-shadow); margin-bottom: 10px;
  border: 1px solid var(--border); overflow: hidden;
}
.rs-header {
  padding: 8px 11px 7px; font-size: 12.5px; font-weight: 700;
  color: #fff; background: #2c3e50;
  display: flex; align-items: center; gap: 5px;
}
.rs-header i { opacity:.85; font-size:11px; }

.rs-online { padding: 8px 11px 6px; }
.rs-online-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: #555;
}
.rs-online-item b { color: var(--primary); font-size: 15px; margin-left:auto; }
.rs-dot {
  width: 7px; height: 7px; background: #34a853; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(52,168,83,.25); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 0 2px rgba(52,168,83,.25)} 50%{box-shadow:0 0 0 5px rgba(52,168,83,.08)} }

.rs-stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:#f0f0f0; border-top:1px solid #f0f0f0; }
.rs-stat { background:#fff; padding:8px 6px; text-align:center; }
.rs-stat-val { font-size:14px; font-weight:700; color:var(--primary); }
.rs-stat-label { font-size:10.5px; color:#999; margin-top:1px; }

.rs-write-btn {
  display:flex; align-items:center; justify-content:center; gap:6px;
  background: var(--primary); color:#fff; border-radius:var(--radius);
  padding: 9px; font-size:13px; font-weight:700; margin-bottom:10px;
  transition: background .15s, transform .12s;
}
.rs-write-btn:hover { background:var(--primary-dark); transform:translateY(-1px); }

.rs-banner-card {}
.rs-banner-list { padding:6px; display:flex; flex-direction:column; gap:5px; }
.rs-banner-item { border-radius:4px; overflow:hidden; cursor:pointer; }
.rs-banner-item img { width:100%; display:block; border-radius:4px; }
.rs-banner-empty {
  height: 52px; background: #f8f9fa; border: 1.5px dashed #ddd;
  border-radius:4px; display:flex; align-items:center; justify-content:center;
  font-size:11.5px; color:#bbb; gap:4px;
}

.rs-game-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:8px; }
.rs-game-item { display:flex; flex-direction:column; align-items:center; gap:4px; text-decoration:none; color:#555; transition:transform .12s; }
.rs-game-item:hover { transform:translateY(-2px); }
.rs-game-icon { width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:16px; color:#fff; }
.rs-game-item span { font-size:10.5px; font-weight:500; }

.rs-contact-list { padding:4px 0; }
.rs-contact-list li a {
  display:flex; align-items:center; gap:7px; padding:7px 11px;
  font-size:12px; color:#555; transition:background .12s;
}
.rs-contact-list li a:hover { background:#f8f9fa; color:#333; }

/* ===== 플로팅 버튼 ===== */
.float-btns { position:fixed; bottom:18px; right:18px; display:flex; flex-direction:column; gap:8px; z-index:500; }
.float-btn {
  width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:16px; box-shadow:0 2px 8px rgba(0,0,0,.2); border:none; transition:transform .2s,box-shadow .2s;
}
.float-btn:hover { transform:scale(1.1); box-shadow:0 4px 12px rgba(0,0,0,.25); }
.float-btn.primary { background:var(--primary); color:#fff; }
.float-btn.white { background:#fff; color:#555; border:1px solid #ddd; }

/* ===== 사이트 통계 푸터 ===== */
.site-footer {
  background: #2c3e50; color: rgba(255,255,255,.75);
  border-radius: var(--radius); padding: 14px 18px;
  margin-top: 10px; font-size: 12px;
}
.footer-stats {
  display:flex; gap:16px; flex-wrap:wrap; margin-bottom:10px; padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-stats span { display:flex; align-items:center; gap:4px; }
.footer-stats b { color:#fff; }
.footer-company { display:flex; gap:16px; flex-wrap:wrap; font-size:11.5px; color:rgba(255,255,255,.5); margin-bottom:8px; }
.footer-copy { font-size:11px; color:rgba(255,255,255,.35); }

/* ===== 반응형 ===== */
@media (max-width: 1200px) { .right-sidebar { display:none; } }
@media (max-width: 900px) { .content-row { flex-direction:column; } .top-links .has-drop .dropdown { display:none !important; } }
@media (max-width: 768px) {
  :root { --sidebar-w: 250px; }
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); }
  #overlay.show { display:block; }
  #topNav { left:0 !important; }
  #mainContent { margin-left:0 !important; padding:10px; }
  .top-links { display:none; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .site-footer { font-size:11px; }
}
@media (max-width: 480px) {
  .icon-box { width:38px; height:38px; font-size:15px; }
  .icon-item { min-width:54px; padding:5px 4px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
}

/* ===== 사이드바 닫힌 상태 (PC) ===== */
body.sb-closed #sidebar { transform: translateX(-100%); }
body.sb-closed #topNav { left: 0; }
body.sb-closed #mainContent { margin-left: 0; }

/* ===== 모바일 하단 네비바 ===== */
#mobileBottomNav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  z-index: 800;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-around;
}
.mbn-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #888; font-size: 11px; gap: 3px;
  text-decoration: none; border: none; background: none;
  cursor: pointer; padding: 0;
}
.mbn-item i { font-size: 18px; }
.mbn-item.active, .mbn-item:active { color: #ffd700; }
@media (max-width: 768px) {
  #mobileBottomNav { display: flex; }
  #mainContent { padding-bottom: 66px !important; }
}
