/* Roblox-home–inspired shell; hexsodi / WoJ only */

:root {
  --bg-page: #f3f3f5;
  --bg-top: #ffffff;
  --bg-sidebar: #ffffff;
  --border-soft: #e5e5e8;
  --text: #121215;
  --text-muted: #6b6b70;
  --accent: #335fff;
  --sidebar-w: 88px;
  --top-h: 56px;
  --radius-card: 8px;
  --radius-search: 24px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-family: "Gotham SSm A", "Gotham SSm B", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-page);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ——— Sidebar ——— */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-soft);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 12px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.15s, background 0.15s;
}

.nav-item:hover:not(:disabled) {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.nav-item:disabled {
  cursor: default;
  opacity: 0.45;
}

.nav-item.is-active {
  color: var(--text);
  position: relative;
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 28px;
  background: var(--text);
  border-radius: 0 4px 4px 0;
}

.nav-item svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item svg:not([fill="currentColor"]) {
  fill: none;
}

/* ——— Main column ——— */
.column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--top-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px 0 16px;
  background: var(--bg-top);
  border-bottom: 1px solid var(--border-soft);
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.logo-rbx {
  width: 32px;
  height: 32px;
}

.search-wrap {
  flex: 1;
  max-width: 520px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  background: #eeeff2;
  border-radius: var(--radius-search);
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.search:focus-within {
  background: #fff;
  border-color: var(--accent);
}

.search svg {
  flex-shrink: 0;
  opacity: 0.45;
}

.search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
  min-width: 0;
}

.search input::placeholder {
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.user-block {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 200px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b8cff, #7c5cff);
  flex-shrink: 0;
}

.username {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.currency {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.notify {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.notify:hover {
  background: rgba(0, 0, 0, 0.05);
}

.notify-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: #e00;
  border-radius: 8px;
}

/* ——— Content ——— */
.content {
  flex: 1;
  padding: 28px 36px 48px;
  overflow-x: hidden;
}

.page-title {
  margin: 0 0 28px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section {
  margin-bottom: 36px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-head h2 .chev {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 18px;
}

.section-head a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.section-head a:hover {
  color: var(--accent);
}

.card-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.game-card {
  flex-shrink: 0;
  width: 156px;
  cursor: pointer;
  border-radius: var(--radius-card);
  transition: transform 0.12s ease;
}

.game-card:hover {
  transform: translateY(-2px);
}

.game-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.thumb {
  width: 156px;
  height: 156px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: linear-gradient(145deg, #0a1628 0%, #1a3a5c 45%, #0d2138 100%);
  position: relative;
  overflow: hidden;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(100, 180, 255, 0.35), transparent 55%);
  pointer-events: none;
}

.thumb-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #e8f4ff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.thumb--wide {
  width: 280px;
  height: 158px;
}

.game-card--wide {
  width: 280px;
}

.game-card--wide .thumb {
  width: 280px;
  height: 158px;
}

.card-title {
  margin: 10px 4px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.card-meta {
  margin: 6px 4px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-ic {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.sponsored-tag {
  display: inline-block;
  margin-top: 8px;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .sidebar {
    display: none;
  }

  .content {
    padding: 20px 16px 40px;
  }

  .username {
    max-width: 100px;
  }

  .search-wrap {
    max-width: none;
  }
}
