/* =========================================================
   Bloxxia Modern Theme
   ========================================================= */
:root {
  --bg: #0b0b0d;
  --panel: #121216;
  --muted: #1b1b22;
  --text: #e9eaee;
  --sub: #9aa0aa;
  --accent: #44abef;
  --ring: #1b4d99;
  --border: #23232b;
  --shadow: rgba(0,0,0,0.5);
}

/* =========================================================
   Reset & Globals
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
}

img {
  display: block;
  max-width: 100%;
  border-radius: 6px;
}

/* Smooth transitions for hover and interactivity */
*, a, button {
  transition: all 0.25s ease;
}

/* =========================================================
   Topbar
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  gap: 20px;
}

.logo-collectibles img {
  max-width: 180px;
  height: auto;
}

.nav-center {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.nav-center a {
  color: var(--sub);
  font-weight: 600;
  position: relative;
  padding: 6px 8px;
  text-decoration: none;
}

.nav-center a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-center a.active {
  color: var(--accent);
  font-weight: 700;
}

.nav-center a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.reblox-btn, .rap-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
}

.reblox-btn:hover, .rap-btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* =========================================================
   Container / Layout
   ========================================================= */
.container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 80px);
  gap: 20px;
  overflow: hidden;
}

.sidebar {
  width: 320px;
  background: linear-gradient(180deg, var(--panel), var(--muted));
  border-right: 1px solid var(--border);
  padding: 20px;
  border-radius: 16px;
  height: calc(100vh - 80px);
  position: sticky;
  top: 80px;
  overflow-y: auto;
}

.main {
  flex: 1;
  padding: 20px 30px;
  overflow-y: auto;
}

/* =========================================================
   Sidebar Profile Card
   ========================================================= */
.panel {
  background: linear-gradient(180deg, #14141b, #0f0f15);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 28px var(--shadow);
  margin-bottom: 20px;
}

.avatar-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
}

.username {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.subuser, .status, #rap-rank {
  color: var(--sub);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.profile-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.profile-link:hover {
  border-color: var(--accent);
  background: var(--muted);
}

/* =========================================================
   Sidebar Search
   ========================================================= */
.sidebar-search {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.sidebar-search input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

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

.sidebar-search button {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

/* =========================================================
   Collectibles Grid
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, #131318, #101016);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px var(--shadow);
  cursor: pointer;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 22px var(--shadow);
}

.card .thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #0c0c10;
}

.card .body {
  padding: 12px;
  text-align: center;
}

.card .name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.card .meta {
  font-size: 0.82rem;
  color: var(--sub);
}

/* =========================================================
   Homepage / Update Log
   ========================================================= */
.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  gap: 20px;
}

.home-container img {
  width: 220px;
  border-radius: 12px;
}

.updates-btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 14px rgba(68, 171, 239, 0.3);
}

.updates-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(68, 171, 239, 0.5);
}

.update-log {
  background: var(--panel);
  border-radius: 16px;
  padding: 20px;
  max-width: 900px;
  width: 95%;
  box-shadow: 0 8px 30px var(--shadow);
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--panel);
}

.update-log::-webkit-scrollbar {
  width: 8px;
}

.update-log::-webkit-scrollbar-track {
  background: var(--panel);
  border-radius: 10px;
}

.update-log::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.update-entry h3 {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.update-entry li {
  color: var(--sub);
  margin-bottom: 6px;
}

.update-entry li:hover {
  color: #fff;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  width: 100%;
  text-align: center;
  padding: 12px 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  color: var(--sub);
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  left: 0;
  backdrop-filter: blur(6px);
  z-index: 10;
}

/* =========================================================
   Mobile First Responsive
   ========================================================= */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    gap: 16px;
  }
  
  .sidebar {
    width: 100%;
    border-radius: 16px;
    padding: 16px;
    height: auto;
    position: relative;
    top: 0;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .topbar {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    height: auto;
  }

  .nav-center {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card .name {
    font-size: 0.88rem;
  }

  .nav-center a {
    font-size: 0.85rem;
  }

  .updates-btn {
    width: 90%;
    padding: 10px 0;
  }
}
