/**
 * 곰씨닷컴 - 스큐어모피즘·블루스카이 그라디언트 테마
 */

/* ===== 배경 ===== */
.gomsee-body {
  font-family: 'Noto Sans KR', sans-serif;
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 25%, #7dd3fc 50%, #38bdf8 75%, #0ea5e9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
html { overflow-x: hidden; }

/* ===== 헤더 스큐어모피즘 ===== */
.gomsee-header {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 30%, #0369a1 70%, #075985 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 4px 12px rgba(2,132,199,0.4),
    0 2px 4px rgba(0,0,0,0.2);
  border-bottom: 2px solid rgba(0,0,0,0.2);
  position: relative;
}
.gomsee-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  pointer-events: none;
}
.gomsee-header-inner {
  padding: 0.5rem 1rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gomsee-header .gomsee-header-inner.max-w-7xl { justify-content: space-between; }
.gomsee-nav-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.1) 100%);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.15);
  transition: all 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.gomsee-nav-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(0,0,0,0.05) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 6px rgba(0,0,0,0.2);
  color: white;
}
.gomsee-nav-btn:active {
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  transform: translateY(1px);
}

/* 로고 */
.logo-typo {
  font-family: 'Jua', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.logo-glow { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
@media (min-width: 640px) {
  .logo-typo { font-size: 1.75rem; }
}

/* ===== 카드/패널 스큐어모피즘 ===== */
.gomsee-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  border: 1px solid rgba(148,163,184,0.5);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.05),
    0 4px 12px rgba(0,0,0,0.08),
    0 2px 4px rgba(0,0,0,0.04);
}
.gomsee-card-header {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 40%, #0369a1 100%);
  color: white;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 0.875rem;
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

/* 사이드바 리스트 */
.gomsee-list {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(148,163,184,0.4);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(0,0,0,0.06);
}
.gomsee-list li {
  border-bottom: 1px solid rgba(226,232,240,0.8);
  transition: background 0.15s;
}
.gomsee-list li:last-child { border-bottom: none; }
.gomsee-list li:hover { background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%); }
.gomsee-list li:active { background: #7dd3fc; }

/* ===== 버튼 스큐어모피즘 ===== */
.gomsee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 30%, #0284c7 70%, #0369a1 100%);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 3px 8px rgba(2,132,199,0.4),
    0 1px 2px rgba(0,0,0,0.2);
  transition: all 0.15s;
}
.gomsee-btn:hover {
  background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 30%, #0ea5e9 70%, #0284c7 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 12px rgba(2,132,199,0.5);
}
.gomsee-btn:active {
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.3);
  transform: translateY(1px);
}

.gomsee-btn-secondary {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
  color: #334155;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.1);
}
.gomsee-btn-secondary:hover {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
}

/* ===== 게임 카드 ===== */
.gomsee-game-card {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(148,163,184,0.5);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s;
}
.gomsee-game-card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 8px 24px rgba(2,132,199,0.2),
    0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.gomsee-game-card:active { transform: translateY(0); }

/* ===== 모바일 하단 네비 ===== */
.nav-mobile-bottom {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 -4px 12px rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.2);
}
.nav-mobile-bottom a {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.nav-mobile-bottom a:hover,
.nav-mobile-bottom a.text-blue-600,
.nav-mobile-bottom a.font-semibold {
  color: #fff !important;
  text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* ===== 푸터 ===== */
.gomsee-footer {
  background: linear-gradient(180deg, #0369a1 0%, #075985 50%, #0c4a6e 100%);
  color: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ===== 카테고리 탭 ===== */
.gomsee-category-tab {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 1px solid rgba(148,163,184,0.5);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.06);
  transition: all 0.15s;
}
.gomsee-category-tab:hover {
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 6px rgba(2,132,199,0.2);
}
.gomsee-category-tab.active {
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%) !important;
  color: white !important;
  border-color: rgba(255,255,255,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 6px rgba(2,132,199,0.3);
}

/* ===== Swiper 버튼 ===== */
.swiper-slide img { object-fit: cover; }
.swiper-button-prev, .swiper-button-next {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 8px rgba(0,0,0,0.2) !important;
}
.swiper-button-prev::after, .swiper-button-next::after { font-size: 1rem !important; }

/* safe-area */
.safe-area-top { padding-top: env(safe-area-inset-top, 0); }
.safe-area-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }
.touch-manipulation { touch-action: manipulation; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* 모바일 뷰: 하단 네비 공간 */
body.view-mobile { padding-bottom: 5rem; }

/* 데스크톱/모바일 레이아웃 오버라이드 */
body.view-desktop .flex-col { flex-direction: row; }
body.view-desktop aside { width: 13rem; flex: 0 0 13rem; }
body.view-desktop .grid-cols-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.view-desktop .sm\:grid-cols-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.view-desktop .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.view-desktop .columns-2 { column-count: 5; }
body.view-desktop .sm\:columns-3 { column-count: 5; }
body.view-desktop .md\:columns-4 { column-count: 5; }
body.view-desktop .lg\:columns-5 { column-count: 5; }
body.view-desktop .order-2 { order: 0; }
body.view-desktop .md\:order-1 { order: 0; }
body.view-desktop .order-1 { order: 1; }
body.view-desktop .md\:order-2 { order: 1; }
body.view-desktop .aspect-\[4\/3\] { aspect-ratio: 2.2/1; }
body.view-desktop nav a.hidden.sm\:flex { display: flex !important; }

body.view-mobile .flex-col { flex-direction: column; }
body.view-mobile .md\:flex-row { flex-direction: column; }
body.view-mobile aside { width: 100%; flex: 1 1 auto; }
body.view-mobile .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.view-mobile .sm\:grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.view-mobile .md\:grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.view-mobile .columns-2 { column-count: 2; }
body.view-mobile .sm\:columns-3 { column-count: 2; }
body.view-mobile .md\:columns-4 { column-count: 2; }
body.view-mobile .lg\:columns-5 { column-count: 2; }

/* 마소니 그리드 */
.masonry-grid { column-fill: balance; }
.masonry-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
