/* ============================================
   AQUARIUM QUEST — Global Stylesheet
   Font: Rubik | Theme: Dark Ocean Blue
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-base:       #050d1a;
  --bg-surface:    #0a1628;
  --bg-card:       #0d1f3c;
  --bg-card-hover: #112444;
  --border:        rgba(0,150,255,0.15);
  --border-hi:     rgba(0,180,255,0.35);

  --blue:      #0096ff;
  --blue-lt:   #38b6ff;
  --blue-glow: rgba(0,150,255,0.22);
  --teal:      #00d4aa;
  --gold:      #f5a623;
  --red:       #ff4757;
  --green:     #2ed573;
  --purple:    #a855f7;

  --text-1: #e8f4ff;
  --text-2: #7aadcc;
  --text-3: #3d6a8a;

  --r-sm: 6px;  --r-md: 12px;  --r-lg: 18px;  --r-xl: 24px;

  --nav-h:  64px;
  --side-w: 240px;
  --font: 'Rubik', sans-serif;
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg-base); color: var(--text-1); min-height: 100vh; overflow-x: hidden; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #003d7a; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(5,13,26,0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 16px;
}

/* Hamburger button — always visible */
.nav-hamburger {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(0,150,255,0.1);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-sm);
  cursor: pointer; transition: all 0.2s;
}
.nav-hamburger:hover { background: rgba(0,150,255,0.2); border-color: var(--blue); }
.nav-hamburger span {
  display: block; width: 16px; height: 2px;
  background: var(--text-1); border-radius: 99px;
  transition: all 0.25s ease;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 19px; font-weight: 800; color: var(--text-1); letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.nav-logo em { color: var(--blue-lt); font-style: normal; }

/* Nav links (center) */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
}
.nav-links a {
  padding: 7px 14px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: all 0.18s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text-1); background: rgba(0,150,255,0.1); }
.nav-links a.active { color: var(--blue-lt); background: rgba(0,150,255,0.15); }

/* ============================================
   LAYOUT
   ============================================ */
.layout {
  display: flex;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: fixed;
  top: var(--nav-h); left: 0; bottom: 0;
  width: var(--side-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  overflow-y: auto; overflow-x: hidden;
  z-index: 900;
  padding: 20px 0 40px;
  /* hidden by default on ALL screen sizes — toggle opens it */
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

/* Open state */
.sidebar.open { transform: translateX(0); }

.sidebar-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-3); padding: 0 16px; margin-bottom: 6px;
}

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin: 1px 8px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: all 0.18s; cursor: pointer;
}
.sidebar-link:hover { color: var(--text-1); background: rgba(0,150,255,0.1); }
.sidebar-link.active {
  color: var(--blue-lt);
  background: rgba(0,150,255,0.15);
  border-left: 3px solid var(--blue);
  padding-left: 13px;
}
.sidebar-link .s-icon { font-size: 17px; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-divider { height: 1px; background: var(--border); margin: 10px 16px; }

/* Overlay */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 850;
}
.sidebar-overlay.show { display: block; }

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  flex: 1;
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--nav-h));
  /* no left margin — sidebar is overlay, not push */
}

.page-body {
  flex: 1;
  padding: 40px 36px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header { margin-bottom: 32px; }
.page-header h1 {
  font-size: 30px; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 6px;
}
.page-header p { font-size: 15px; color: var(--text-2); }

/* ============================================
   SECTION TITLE
   ============================================ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title {
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; width: 4px; height: 20px;
  background: linear-gradient(to bottom, var(--blue), var(--teal));
  border-radius: 99px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  padding: 20px 56px; margin-bottom: 44px; text-align: center;
  background: linear-gradient(135deg, #050f20 0%, #002f5e 55%, #001a3a 100%);
  border: 1px solid var(--border-hi);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(0,150,255,0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 30%, rgba(0,212,170,0.09) 0%, transparent 50%);
}
.hero-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; bottom: -20px; border-radius: 50%;
  background: rgba(0,150,255,0.08); border: 1px solid rgba(0,150,255,0.18);
  animation: rise linear infinite;
}
.bubble:nth-child(1){width:12px;height:12px;left:10%;animation-duration:8s;animation-delay:0s}
.bubble:nth-child(2){width:20px;height:20px;left:25%;animation-duration:10s;animation-delay:2s}
.bubble:nth-child(3){width:8px;height:8px;left:40%;animation-duration:7s;animation-delay:1s}
.bubble:nth-child(4){width:16px;height:16px;left:60%;animation-duration:12s;animation-delay:3s}
.bubble:nth-child(5){width:10px;height:10px;left:75%;animation-duration:9s;animation-delay:0.5s}
.bubble:nth-child(6){width:22px;height:22px;left:85%;animation-duration:11s;animation-delay:4s}
.bubble:nth-child(7){width:6px;height:6px;left:50%;animation-duration:6s;animation-delay:1.5s}
@keyframes rise{0%{transform:translateY(0);opacity:0}10%{opacity:1}90%{opacity:0.4}100%{transform:translateY(-110vh);opacity:0}}

.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,150,255,0.14); border: 1px solid rgba(0,150,255,0.3);
  padding: 5px 14px; border-radius: 99px; font-size: 12px; font-weight: 600;
  color: var(--blue-lt); letter-spacing: 0.5px; margin-bottom: 22px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(34px,5vw,60px); font-weight: 900;
  line-height: 1.1; letter-spacing: -2px; margin-bottom: 14px;
}
.hero h1 .hl {
  color: var(--blue-lt); /* fallback: always visible even if gradient fails */
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* safety: if background-clip fails, color fallback kicks in */
  paint-order: stroke fill;
}
.hero p { font-size: 17px; color: var(--text-2); max-width: 500px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: var(--r-md);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0070cc); color: #fff;
  box-shadow: 0 4px 16px rgba(0,150,255,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,150,255,0.4); }
.btn-ghost {
  background: rgba(0,150,255,0.1); color: var(--blue-lt);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover { background: rgba(0,150,255,0.18); transform: translateY(-2px); }

/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr));
  gap: 14px; margin-bottom: 44px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px; text-align: center;
  transition: all 0.2s;
}
.stat-card:hover { border-color: var(--border-hi); box-shadow: 0 0 18px var(--blue-glow); }
.stat-card .num { font-size: 26px; font-weight: 800; color: var(--blue-lt); line-height: 1; margin-bottom: 4px; }
.stat-card .lbl { font-size: 11px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================================
   CARDS
   ============================================ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px;
  transition: all 0.22s; cursor: pointer; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0; transition: opacity 0.22s;
}
.card:hover { background: var(--bg-card-hover); border-color: var(--border-hi); transform: translateY(-3px); box-shadow: 0 0 18px var(--blue-glow); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 30px; margin-bottom: 10px; }
.card-name { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.card-meta { font-size: 12px; color: var(--text-3); }

/* Quick link cards */
.ql-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; }
.ql-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px;
  transition: all 0.22s; position: relative; overflow: hidden;
}
.ql-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0; transition: opacity 0.22s;
}
.ql-card:hover { background: var(--bg-card-hover); border-color: var(--border-hi); transform: translateY(-3px); box-shadow: 0 0 18px var(--blue-glow); }
.ql-card:hover::before { opacity: 1; }
.ql-icon { font-size: 36px; flex-shrink: 0; }
.ql-card .card-name { font-size: 15px; }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
}
.badge-common   { background: rgba(126,126,126,0.18); color: #9ca3af; border: 1px solid rgba(156,163,175,0.3); }
.badge-uncommon { background: rgba(46,213,115,0.14);  color: var(--green);  border: 1px solid rgba(46,213,115,0.3); }
.badge-rare     { background: rgba(0,150,255,0.14);   color: var(--blue-lt); border: 1px solid rgba(0,150,255,0.3); }
.badge-epic     { background: rgba(168,85,247,0.14);  color: #c084fc;       border: 1px solid rgba(168,85,247,0.3); }
.badge-legendary{ background: rgba(245,166,35,0.14);  color: var(--gold);   border: 1px solid rgba(245,166,35,0.3); }
.badge-mythic   { background: rgba(255,71,87,0.14);   color: var(--red);    border: 1px solid rgba(255,71,87,0.3); }

.stat-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 7px; border-radius: var(--r-sm);
  font-size: 11px; font-weight: 600; margin: 2px;
}
.stat-hp  { background: rgba(255,71,87,0.14);   color: #ff6b7a; }
.stat-atk { background: rgba(245,166,35,0.14);  color: #f9c74f; }
.stat-def { background: rgba(0,150,255,0.14);   color: var(--blue-lt); }
.stat-spd { background: rgba(0,212,170,0.14);   color: var(--teal); }

/* ============================================
   FILTERS BAR
   ============================================ */
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.search-box { position: relative; flex: 1; min-width: 180px; }
.search-box input {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 14px 10px 38px;
  font-family: var(--font); font-size: 14px; color: var(--text-1); outline: none;
  transition: border-color 0.18s;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus { border-color: var(--blue); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.filter-select {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 12px;
  font-family: var(--font); font-size: 14px; color: var(--text-2);
  outline: none; cursor: pointer; transition: border-color 0.18s;
}
.filter-select:focus { border-color: var(--blue); }

/* ============================================
   TABLE
   ============================================ */
.table-wrapper { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead tr { background: rgba(0,150,255,0.07); border-bottom: 1px solid var(--border-hi); }
thead th {
  padding: 13px 15px; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-3); white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.14s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(0,150,255,0.05); }
tbody td { padding: 13px 15px; color: var(--text-2); vertical-align: middle; }
tbody td:first-child { color: var(--text-3); font-size: 12px; }

.expand-btn {
  background: none; border: 1px solid var(--border); color: var(--text-3);
  width: 24px; height: 24px; border-radius: 4px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; transition: all 0.18s; line-height: 1;
}
.expand-btn:hover { border-color: var(--blue); color: var(--blue-lt); }

.expanded-row td { background: rgba(0,18,50,0.6); padding: 18px 20px; }

/* ============================================
   MATERIAL TAGS (Crafting)
   ============================================ */
.io-cell { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.material-tag {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(0,150,255,0.07); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 3px 7px;
  font-size: 12px; color: var(--text-2);
}
.material-tag .qty { color: var(--blue-lt); font-weight: 700; }
.arrow-cell { color: var(--teal); font-size: 16px; }

/* ============================================
   DECORATION CARDS
   ============================================ */
.deco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 14px; }
.deco-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; transition: all 0.22s;
}
.deco-card:hover { border-color: var(--border-hi); transform: translateY(-3px); box-shadow: 0 0 18px var(--blue-glow); }
.deco-img {
  height: 110px; background: linear-gradient(135deg, #051020, #0d2040);
  display: flex; align-items: center; justify-content: center; font-size: 46px;
}
.deco-body { padding: 13px 15px; }
.deco-name { font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.deco-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.biome-tag {
  padding: 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 600;
  background: rgba(0,212,170,0.1); color: var(--teal); border: 1px solid rgba(0,212,170,0.22);
}
.cap-bar { height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.cap-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: 99px; }

/* ============================================
   FAQ
   ============================================ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--border-hi); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 18px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--text-1);
  transition: color 0.18s; gap: 14px;
}
.faq-q:hover { color: var(--blue-lt); }
.faq-icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0,150,255,0.1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all 0.28s;
}
.faq-item.open .faq-icon { background: rgba(0,150,255,0.2); border-color: var(--blue); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; padding: 0 18px;
  font-size: 14px; color: var(--text-2); line-height: 1.75;
  transition: max-height 0.32s ease, padding 0.32s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 18px 18px; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-surface); border-top: 1px solid var(--border); padding: 28px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 800;
}
.footer-logo .logo-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.footer-logo em { color: var(--blue-lt); font-style: normal; }
.footer-divider { width: 50px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.footer-text { font-size: 13px; color: var(--text-3); }
.footer-text strong { color: var(--blue-lt); font-weight: 600; }
.footer-btns { display: flex; gap: 10px; }
.footer-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-2); font-family: var(--font); transition: all 0.18s;
}
.footer-btn:hover { border-color: var(--blue); color: var(--blue-lt); background: rgba(0,150,255,0.1); }
.footer-btn.discord:hover { border-color: #5865F2; color: #7289da; background: rgba(88,101,242,0.1); }
.footer-copy { font-size: 11px; color: var(--text-3); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .page-body { padding: 28px 20px; }
  .hero { padding: 52px 28px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .page-body { padding: 20px 14px; }
  .hero { padding: 40px 18px; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .filters-bar { flex-direction: column; }
  .filters-bar > * { width: 100%; }
}
