/* CSS 변수 정의 */
:root {
  /* 뱅커 테마 색상 (메인) */
  --banker-primary: #db2777;
  --banker-secondary: #9d174d;
  --banker-light: #f9a8d4;

  /* 플레이어 테마 색상 (보조) */
  --player-primary: #f97316;
  --player-secondary: #dc2626;
  --player-light: #fed7aa;

  /* 기본 색상 */
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* 라이트 테마 */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --border-color: var(--gray-200);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* 다크 테마 */
[data-theme="dark"] {
  --bg-primary: var(--gray-900);
  --bg-secondary: var(--gray-800);
  --text-primary: var(--white);
  --text-secondary: var(--gray-300);
  --border-color: var(--gray-700);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --banker-primary: #f472b6;
  --banker-secondary: #ec4899;
  --player-primary: #fb923c;
  --player-secondary: #f97316;
}

/* 기본 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 헤더 스타일 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px var(--shadow-color);
  transition: all 0.3s ease;
}

[data-theme="dark"] .site-header {
  background: rgba(17, 24, 39, 0.95);
}

/* 상단 유틸리티 바 */
.utility-bar {
  background: linear-gradient(to right, var(--banker-primary), var(--banker-secondary));
  color: var(--white);
}

.utility-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3rem; /* 2.5rem에서 2rem으로 변경 */
}

.utility-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .utility-nav {
    display: flex;
  }
}

.utility-link {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.utility-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.visitor-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.visitor-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
}

/* 메인 헤더 */
.site-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7rem; /* 5rem에서 3.5rem으로 변경 */
}

/* header.html 변형 대응 */
.header .main-header .header-content {
  min-height: 7rem;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  color: var(--banker-primary);
  background: rgba(219, 39, 119, 0.1);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* 로고 스타일 */
.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
}

.logo-link:hover {
  transform: scale(1.02);
}

/* 정적인 로고 이미지 크기 및 스타일 */
.logo-image {
  display: block;
  height: 100%;
  width: auto;
  max-height: 7rem;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 10px 15px -3px var(--shadow-color);
  transition: all 0.3s ease;
}

.logo-video-container {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px var(--shadow-color);
  transition: all 0.3s ease;
}

.logo-video-container:hover {
  box-shadow: 0 20px 25px -5px var(--shadow-color);
}

/* 로고 크기별 스타일 */
.logo-video-container[data-size="small"] {
  width: 1.75rem; /* 2rem에서 1.75rem으로 변경 */
  height: 1.75rem;
}

.logo-video-container[data-size="medium"] {
  width: 2.5rem; /* 3rem에서 2.5rem으로 변경 */
  height: 2.5rem;
}

.logo-video-container[data-size="large"] {
  width: 3rem; /* 4rem에서 3rem으로 변경 */
  height: 3rem;
}

.logo-video-container[data-size="xl"] {
  width: 4rem; /* 5rem에서 4rem으로 변경 */
  height: 4rem;
}

.logo-video-container[data-size="xxl"] {
  width: 6rem;
  height: 6rem;
  max-width: 100%;
  max-height: 6.5rem;
}

.logo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.logo-link:hover .logo-video {
  opacity: 1;
}

.logo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(219, 39, 119, 0.2), rgba(157, 23, 77, 0.2));
  transition: all 0.3s ease;
}

.logo-link:hover .logo-overlay {
  background: linear-gradient(to bottom right, rgba(219, 39, 119, 0.1), rgba(157, 23, 77, 0.1));
}

[data-theme="dark"] .logo-overlay {
  background: linear-gradient(to bottom right, rgba(244, 114, 182, 0.3), rgba(236, 72, 153, 0.3));
}

[data-theme="dark"] .logo-link:hover .logo-overlay {
  background: linear-gradient(to bottom right, rgba(244, 114, 182, 0.2), rgba(236, 72, 153, 0.2));
}

.logo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(244, 114, 182, 0.1), rgba(236, 72, 153, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .logo-glow {
  opacity: 1;
}

[data-theme="dark"] .logo-link:hover .logo-glow {
  background: linear-gradient(to bottom right, rgba(244, 114, 182, 0.2), rgba(236, 72, 153, 0.2));
}

.logo-text {
  margin-left: 0.75rem; /* 1rem에서 0.75rem으로 변경 */
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: block;
  }
}

.logo-title {
  font-size: 1.8rem; /* 1.5rem에서 1.25rem으로 변경 */
  font-weight: 700;
  background: linear-gradient(to right, var(--banker-primary), var(--banker-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

/* 로고 타이틀 특별 스타일 - "솔레"와 "오카" 색상 분리 */
.logo-title::before {
  content: "솔레";
  color: #f97316;
  -webkit-text-fill-color: #f97316;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

.logo-title::after {
  content: "오카";
  color: #db2777;
  -webkit-text-fill-color: #db2777;
  text-shadow: 0 0 10px rgba(219, 39, 119, 0.3);
}

.logo-link:hover .logo-title::before {
  color: #fb923c;
  -webkit-text-fill-color: #fb923c;
  text-shadow: 0 0 15px rgba(251, 146, 60, 0.5);
}

.logo-link:hover .logo-title::after {
  color: #f472b6;
  -webkit-text-fill-color: #f472b6;
  text-shadow: 0 0 15px rgba(244, 114, 182, 0.5);
}

.logo-link:hover .logo-title {
  background: linear-gradient(to right, var(--banker-secondary), #be185d);
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-subtitle {
  font-size: 1rem; /* 0.875rem에서 0.75rem으로 변경 */
  color: var(--text-secondary);
  margin-top: 0.125rem;
  position: relative;
  background: linear-gradient(45deg, #f97316, #db2777, #f97316);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.logo-link:hover .logo-subtitle {
  animation: gradientShift 1.5s ease-in-out infinite;
  background-size: 150% 150%;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 그라데이션 애니메이션 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 데스크톱 네비게이션 */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1rem; /* 2rem에서 1rem으로 줄여서 더 컴팩트하게 */
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  position: relative;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600; /* 500에서 600으로 증가 */
  font-size: 1.6rem; /* 폰트 크기 명시적으로 설정 */
  transition: all 0.2s ease;
  padding: 0.75rem 1.25rem; /* 패딩 증가로 클릭 영역 확대 */
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .nav-link {
  background: rgba(0, 0, 0, 0.1);
}

.nav-link.banker-theme {
  color: var(--text-primary);
}

.nav-link.banker-theme:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--banker-primary), var(--banker-secondary));
  border-color: var(--banker-primary);
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.3);
  transform: translateY(-1px);
}

.nav-link.player-theme {
  color: var(--text-primary);
}

.nav-link.player-theme:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--player-primary), var(--player-secondary));
  border-color: var(--player-primary);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  transform: translateY(-1px);
}

.nav-underline {
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link.banker-theme .nav-underline {
  background: var(--white);
}

.nav-link.player-theme .nav-underline {
  background: var(--white);
}

.nav-link:hover .nav-underline {
  width: 80%;
}

/* 네비게이션에 아이콘 스타일 추가 */
.nav-link::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  transition: all 0.2s ease;
  opacity: 0;
}

.nav-link.banker-theme::before {
  background: var(--banker-primary);
}

.nav-link.player-theme::before {
  background: var(--player-primary);
}

.nav-link:hover::before {
  opacity: 1;
  background: var(--white);
}

/* 헤더 액션 */
.site-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; /* 2.5rem에서 2.25rem으로 변경 */
  height: 2.25rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.action-btn:hover {
  color: var(--banker-primary);
  background: rgba(219, 39, 119, 0.1);
}

/* 사용자 메뉴 */
.user-menu {
  position: relative;
}

.user-profile {
  position: relative;
}

.profile-btn {
  width: 2.25rem; /* 2.5rem에서 2.25rem으로 변경 */
  height: 2.25rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.profile-btn:hover {
  box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.2);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.profile-btn:hover .profile-avatar {
  border-color: rgba(219, 39, 119, 0.3);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 14rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: all 0.2s ease;
  z-index: 50;
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-info {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.profile-name {
  font-weight: 500;
  color: var(--text-primary);
}

.profile-id {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background: var(--bg-secondary);
}

.dropdown-item.admin-item {
  color: var(--player-primary);
}

.dropdown-item.logout-item {
  color: #dc2626;
}

/* 인증 버튼 */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--player-primary);
  background: rgba(249, 115, 22, 0.1);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(to right, var(--banker-primary), var(--banker-secondary));
  box-shadow: 0 4px 6px -1px var(--shadow-color);
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--banker-secondary), #be185d);
  box-shadow: 0 10px 15px -3px var(--shadow-color);
}

/* 검색 오버레이 */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5rem;
  padding: 5rem 1rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  width: 100%;
  max-width: 42rem;
  background: var(--bg-primary);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px var(--shadow-color);
  overflow: hidden;
}

.search-form {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-input-container {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  font-size: 1.125rem;
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--banker-primary);
}

.search-submit {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
}

.search-close {
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.search-tip {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* 모바일 사이드바 */
.mobile-sidebar {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.mobile-sidebar.active {
  display: block;
}

@media (min-width: 768px) {
  .mobile-sidebar {
    display: none !important;
  }
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.sidebar-content {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 20rem;
  background: var(--bg-primary);
  box-shadow: 0 25px 50px -12px var(--shadow-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-sidebar.active .sidebar-content {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo .logo-title {
  font-size: 1.125rem;
}

.sidebar-close {
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.sidebar-close:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.sidebar-nav {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0.75rem; /* 패딩 증가 */
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.sidebar-link:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.sidebar-link.banker-theme:hover {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.15), rgba(157, 23, 77, 0.1));
  color: var(--banker-primary);
  border-color: rgba(219, 39, 119, 0.2);
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.15);
}

.sidebar-link.player-theme:hover {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(220, 38, 38, 0.1));
  color: var(--player-primary);
  border-color: rgba(249, 115, 22, 0.2);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.sidebar-dot {
  width: 8px; /* 0.5rem에서 8px로 증가 */
  height: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.banker-dot {
  background: var(--banker-primary);
}

.player-dot {
  background: var(--player-primary);
}

.sidebar-link:hover .sidebar-dot {
  transform: scale(1.3);
  box-shadow: 0 0 8px currentColor;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1rem 0;
}

/* 메인 콘텐츠 */
.main-content {
  padding: 3rem 0;
}

.welcome-section {
  text-align: center;
}

.welcome-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.welcome-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 48rem;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.demo-section {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px var(--shadow-color);
  border: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.demo-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.logo-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
}

.logo-demo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.demo-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.theme-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.theme-card {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px var(--shadow-color);
}

.banker-card {
  border: 1px solid rgba(219, 39, 119, 0.2);
}

.player-card {
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.theme-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.banker-card .theme-title {
  color: var(--banker-primary);
}

.player-card .theme-title {
  color: var(--player-primary);
}

.color-samples {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.color-sample {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.color-box {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
}

.banker-primary {
  background: var(--banker-primary);
}

.banker-secondary {
  background: var(--banker-secondary);
}

.player-primary {
  background: var(--player-primary);
}

.player-secondary {
  background: var(--player-secondary);
}

/* 반응형 디자인 */
@media (max-width: 640px) {
  .container {
    padding: 0 0.75rem;
  }

  .site-header-content {
    height: 3rem; /* 4rem에서 3rem으로 변경 */
  }

  .logo-video-container[data-size="large"] {
    width: 2.5rem; /* 3rem에서 2.5rem으로 변경 */
    height: 2.5rem;
  }

  .logo-title {
    font-size: 1.125rem; /* 1.25rem에서 1.125rem으로 변경 */
  }

  .welcome-title {
    font-size: 1.875rem;
  }

  .welcome-description {
    font-size: 1.125rem;
  }

  .demo-section {
    padding: 1.5rem;
  }

  .logo-demo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .theme-demo {
    grid-template-columns: 1fr;
  }

  .logo-video-container[data-size="xxl"] {
    width: 3.5rem;
    height: 3.5rem;
    max-width: 90vw;
    max-height: 4rem;
  }
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

/* 포커스 스타일 */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--banker-primary);
  outline-offset: 2px;
}

/* 프린트 스타일 */
@media print {
  .site-header {
    position: static;
  }

  .search-overlay,
  .mobile-sidebar {
    display: none !important;
  }
}

/* 데스크톱 네비게이션 서브 메뉴 */
.nav-link-wrapper {
  position: relative;
  display: inline-block;
}

.nav-link-wrapper .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: 0.5rem;
  z-index: 100;
  padding: 0.5rem 0;
}

.nav-link-wrapper .submenu-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: background 0.2s, color 0.2s;
}

.nav-link-wrapper .submenu-link:hover {
  background: var(--banker-primary);
  color: #fff;
}

.nav-link-wrapper.has-submenu:hover .submenu,
.nav-link-wrapper.has-submenu:focus-within .submenu {
  display: block;
}

.submenu-caret {
  margin-left: 0.5em;
  font-size: 0.9em;
  vertical-align: middle;
}

[data-theme="dark"] .nav-link-wrapper .submenu {
  background: #23232b;
  box-shadow: 0 8px 24px rgba(0,0,0,0.32);
}
[data-theme="dark"] .nav-link-wrapper .submenu-link {
  color: #fff;
}
[data-theme="dark"] .nav-link-wrapper .submenu-link:hover {
  background: var(--banker-secondary);
  color: #fff;
}

/* 서브메뉴 호버 색상 일관성 */
.nav-link-wrapper.banker-theme .submenu-link:hover {
  background: var(--banker-primary);
  color: #fff;
}
.nav-link-wrapper.player-theme .submenu-link:hover {
  background: var(--player-primary);
  color: #fff;
}
[data-theme="dark"] .nav-link-wrapper.banker-theme .submenu-link:hover {
  background: var(--banker-secondary);
  color: #fff;
}
[data-theme="dark"] .nav-link-wrapper.player-theme .submenu-link:hover {
  background: var(--player-secondary);
  color: #fff;
}

/* 서브메뉴 애니메이션 */
.nav-link-wrapper .submenu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1), visibility 0.25s;
  pointer-events: none;
}
.nav-link-wrapper.has-submenu:hover .submenu,
.nav-link-wrapper.has-submenu:focus-within .submenu,
.nav-link-wrapper.has-submenu.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.coming-soon-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  top: -2.2rem;
  transform: translateX(-50%);
  background: #db2777;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(219,39,119,0.15);
  pointer-events: none;
}
.coming-soon:hover .coming-soon-tooltip,
.coming-soon:focus .coming-soon-tooltip {
  display: block;
}
