/**
 * BrawlPulse Shell Styles
 * Merged from site-shell.css (layout foundation) and shell-ui.css (visual design).
 * Loaded via <link> in every HTML page <head> to eliminate FOUC.
 */

/* ==========================================================================
   Layout — structural shell (site-shell.css)
   ========================================================================== */

:root {
  --shell-bg: #070810;
  --shell-accent: #818CF8;
}

/* .nav-link focus outline (not injected by shell-ui.js) */
.nav-link:focus-visible {
  outline: 2px solid #818CF8;
  outline-offset: 2px;
}

/* Skip-to-content link styling */
.skip-to-content:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-to-content:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--shell-bg, #070810);
  color: var(--shell-accent, #818CF8);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--shell-accent, #818CF8);
  border-radius: 8px;
  text-decoration: none;
  outline: none;
  width: auto;
  height: auto;
  clip: auto;
  white-space: normal;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* ==========================================================================
   Visual — component styling (shell-ui.js extracted styles)
   ========================================================================== */

.biq-shell-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(129, 140, 248, 0.10);
  overflow: visible;
}
.biq-shell-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.biq-shell-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.biq-shell-logo img {
  display: block;
  width: auto;
  height: 44px;
}
.skip-to-content {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 0.6rem 1.2rem;
  background: #FFD000;
  color: #070810;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-to-content:focus {
  top: 0;
  outline: none;
}
.biq-shell-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  overflow: visible;
  padding: 0.25rem 0 0.25rem 0.15rem;
  scrollbar-width: none;
}
.biq-shell-nav::-webkit-scrollbar { display: none; }
.biq-shell-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
}
.biq-shell-search-field {
  position: relative;
  min-width: 180px;
  max-width: 220px;
  width: 18vw;
  flex: 1;
}
.biq-shell-search-field--mobile {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.biq-shell-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #9395BA;
  pointer-events: none;
}
.biq-shell-search-input {
  width: 100%;
  min-height: 37px;
  display: flex;
  align-items: center;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.15);
  border-radius: 9px;
  color: #EEEEF8;
  font-family: inherit;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  text-transform: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.biq-shell-search-input::placeholder {
  color: #9395BA;
  opacity: 1;
}
.biq-shell-search-input:focus {
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
  background: rgba(129, 140, 248, 0.11);
}
.biq-shell-suggestions {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(255, 208, 0, 0.10);
  border-radius: 14px;
  background: rgba(12, 14, 26, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 4px 8px rgba(0, 0, 0, 0.40), 0 16px 48px rgba(0, 0, 0, 0.50), 0 0 60px rgba(255, 208, 0, 0.04);
}
.biq-shell-suggestions[hidden] { display: none !important; }
.biq-shell-suggestion-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(147, 149, 186, 0.5);
  padding: 4px 10px 2px;
  pointer-events: none;
  user-select: none;
}
.biq-shell-suggestion {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #f1f3f7;
  padding: 7px 10px 7px 8px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.biq-shell-suggestion::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: #FFD000;
  opacity: 0;
  transition: opacity 0.12s ease, top 0.12s ease, bottom 0.12s ease;
}
.biq-shell-suggestion:hover, .biq-shell-suggestion:focus-visible {
  background: rgba(255, 208, 0, 0.06);
  border-color: rgba(255, 208, 0, 0.12);
  outline: none;
}
.biq-shell-suggestion:hover::before, .biq-shell-suggestion:focus-visible::before {
  opacity: 1;
  top: 15%;
  bottom: 15%;
}
.biq-shell-suggestion:active { background: rgba(255, 208, 0, 0.10); }
.biq-shell-suggestion-portrait-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255, 208, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.biq-shell-suggestion-portrait-wrap--player {
  background: rgba(129, 140, 248, 0.08);
  border-color: rgba(129, 140, 248, 0.16);
}
.biq-shell-suggestion-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.biq-shell-suggestion-portrait-fallback {
  color: #FFD000;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}
.biq-shell-suggestion-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.biq-shell-suggestion-name {
  font-weight: 700;
  line-height: 1.2;
  font-size: 0.88rem;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #EEEEF8;
}
.biq-shell-suggestion-meta {
  color: rgba(147, 149, 186, 0.75);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.biq-shell-suggestion-right {
  flex-shrink: 0;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #EEEEF8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 7px;
}
.biq-shell-suggestion-trophy-icon { width: 11px; height: 11px; opacity: 0.8; }
.biq-shell-suggestion-arrow {
  flex-shrink: 0;
  justify-self: end;
  color: rgba(147, 149, 186, 0.35);
  font-size: 0.9rem;
  line-height: 1;
  transition: color 0.12s ease, transform 0.12s ease;
}
.biq-shell-suggestion:hover .biq-shell-suggestion-arrow,
.biq-shell-suggestion:focus-visible .biq-shell-suggestion-arrow {
  color: rgba(255, 208, 0, 0.7);
  transform: translateX(2px);
}
.biq-shell-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: linear-gradient(135deg, #FFD000 0%, #FF9A1A 100%);
  color: #070810;
  font-weight: 700;
  border-radius: 9px;
  font-size: 0.8125rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.biq-shell-search-button:focus-visible {
  outline: 2px solid #818CF8;
  outline-offset: 2px;
}
.biq-shell-search-button:hover { box-shadow: 0 4px 14px rgba(255, 208, 0, 0.25); }
.biq-shell-search-button:active { transform: translateY(1px); }
.biq-shell-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.14);
  color: #EEEEF8;
  border-radius: 9px;
  width: 38px;
  height: 38px;
  padding: 0;
  font: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.biq-shell-menu-button:focus-visible {
  outline: 2px solid #818CF8;
  outline-offset: 2px;
}
.biq-shell-menu-button:hover { background: rgba(129, 140, 248, 0.14); border-color: rgba(129, 140, 248, 0.26); }
.biq-shell-mobile-panel {
  display: block;
  position: fixed;
  z-index: 1000;
  overflow-y: auto;
  overscroll-behavior: contain;
  top: 0;
  left: 0;
  right: auto;
  width: min(82vw, 300px);
  height: 100dvh;
  border-right: 1px solid rgba(129, 140, 248, 0.10);
  border-radius: 0 20px 20px 0;
  background: radial-gradient(ellipse 180% 60% at -10% 0%, rgba(255, 208, 0, 0.06) 0%, transparent 55%), radial-gradient(ellipse 140% 80% at 110% 100%, rgba(129, 140, 248, 0.08) 0%, transparent 55%), linear-gradient(160deg, #131726 0%, #0c0f1e 50%, #080b18 100%);
  box-shadow: 0 0 0 0.5px rgba(129, 140, 248, 0.08), 4px 0 40px rgba(0, 0, 0, 0.55), 12px 0 60px rgba(0, 0, 0, 0.30);
  transform: translateX(-110%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
  pointer-events: none;
}
.biq-shell-mobile-panel.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) !important;
}
.biq-shell-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(7, 8, 16, 0.65);
  backdrop-filter: blur(3px);
}
.biq-shell-mobile-panel-inner { padding: 0; display: flex; flex-direction: column; min-height: 100%; }
.biq-shell-mobile-brand { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.1rem 0.9rem; border-bottom: 1px solid rgba(129, 140, 248, 0.08); flex-shrink: 0; }
.biq-shell-mobile-brand img { display: block; width: auto; height: 36px; }
.biq-shell-mobile-close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(129, 140, 248, 0.12); border-radius: 8px; color: #9395BA; cursor: pointer; }
.biq-shell-mobile-search-wrap { padding: 0.85rem 1.1rem 0.75rem; border-bottom: 1px solid rgba(129, 140, 248, 0.06); flex-shrink: 0; }
.biq-shell-mobile-links { display: flex; flex-direction: column; gap: 0; padding: 0.6rem 0.7rem; flex: 1; }
.biq-shell-mobile-link { display: flex; align-items: center; gap: 0.85rem; padding: 0.78rem 0.85rem; border-radius: 12px; text-decoration: none; color: #9395BA; font-size: 0.925rem; font-weight: 600; transition: color 0.15s, background 0.15s; }
.biq-shell-mobile-link:hover { color: #EEEEF8; background: rgba(255, 255, 255, 0.04); }
.biq-shell-mobile-link.active { color: #FFD000; background: rgba(255, 208, 0, 0.07); }
.biq-mobile-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(129, 140, 248, 0.10); color: #6B6E94; flex-shrink: 0; }
.nav-link { color: #9395BA; font-size: 0.875rem; font-weight: 500; text-decoration: none; padding: 0.4rem 0.7rem; border-radius: 8px; transition: color 0.15s, background 0.15s; }
.nav-link:hover { color: #EEEEF8; background: rgba(129,140,248,0.10); }
.nav-link.active { color: #818CF8; }
.nav-dropdown { position: relative; }
.nav-dropdown-btn { display: inline-flex; align-items: center; gap: 3px; color: #9395BA; font-size: 0.875rem; font-weight: 500; padding: 0.4rem 0.7rem; border-radius: 8px; background: none; border: none; cursor: pointer; }
.nav-dropdown-panel { position: absolute; top: 100%; left: 0; padding-top: 6px; min-width: 130px; z-index: 200; opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0.15s; pointer-events: none; }
.nav-dropdown-panel-inner { background: rgba(10,11,22,0.97); backdrop-filter: blur(20px); border: 1px solid rgba(129,140,248,0.15); border-radius: 10px; padding: 4px; }
.nav-dropdown:hover .nav-dropdown-panel { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-dropdown-item { display: block; padding: 0.45rem 0.75rem; border-radius: 7px; text-decoration: none; color: #9395BA; font-size: 0.84rem; font-weight: 500; transition: color 0.12s, background 0.12s; white-space: nowrap; }
.nav-dropdown-item:hover { color: #EEEEF8; background: rgba(129,140,248,0.10); }
.nav-dropdown-item.active { color: #818CF8; }
.biq-shell-footer { border-top: 1px solid rgba(129, 140, 248, 0.10); margin-top: 2rem; background: rgba(0,0,0,0.3); }
.biq-shell-footer-inner { max-width: 1280px; margin: 0 auto; padding: 2.5rem 1.5rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.biq-shell-footer-links { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }
.brawler-row-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.75rem; border-radius: 12px; background: rgba(255,255,255,0.025); border: 1px solid rgba(129,140,248,0.08); text-decoration: none; color: inherit; transition: background 0.13s, border-color 0.13s, transform 0.13s; position: relative; overflow: hidden; }
.brawler-row-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 0 2px 2px 0; background: transparent; transition: background 0.13s; }
.brawler-row-item:hover { background: rgba(255,208,0,0.05); border-color: rgba(255,208,0,0.15); transform: translateX(2px); }
.brawler-row-item:hover::before { background: #FFD000; }
.brawler-row-item.top-rank { background: rgba(255,208,0,0.04); border-color: rgba(255,208,0,0.12); }
.brawler-row-item.top-rank::before { background: rgba(255,208,0,0.5); }
@media (max-width: 1100px) { .biq-shell-header-inner { gap: 0.6rem; } .biq-shell-nav, .biq-shell-search { display: none; } .biq-shell-menu-button { display: inline-flex; margin-left: auto; } }
@media (max-width: 720px) { .biq-shell-header-inner, .biq-shell-mobile-panel-inner, .biq-shell-footer-inner { padding-left: 1rem; padding-right: 1rem; } .biq-shell-logo img { height: 44px; } .biq-shell-footer-inner { grid-template-columns: 1fr; } .biq-shell-footer-links { justify-content: flex-start; } }
