/* ═══════════════════════════════════════════════════════════
   glacica — shared.css
   Load this on every page. Keep page-specific styles local.
   ═══════════════════════════════════════════════════════════ */

/* ── RESET ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── SCROLLBARS ── */
::-webkit-scrollbar { width: 3px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius: 999px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 999px; box-shadow: 0 0 6px rgba(0,255,249,0.4); }
::-webkit-scrollbar-thumb:hover { background: rgba(0,255,249,0.5); }

/* ── BODY ── */
body {
  font-family: "Courier New", monospace;
  background: linear-gradient(
    0deg,
    #436660, #020202, #412d63, #000000,
    #5a3a3f, #000000, #348682, #000000,
    #8d4c57, #000000, #977d2e, #000000,
    #375758, #000000, #1a3b53, #000000
  );
  background-size: 333% 33333%;
  animation: bgShift 900s ease infinite;
  color: #e0fff8;
  min-height: 100vh;
  overflow-x: hidden;
}
@keyframes bgShift {
  0%   { background-position: 50% 0%; }
  50%  { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}

/* ── HEADER ── */
header {
  width: 100%;
  padding: 2rem 2rem 1rem;
  position: relative;
  border-bottom: 3px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 10px rgba(255,255,255,0.6);
  backdrop-filter: blur(13px);
  overflow: hidden;
  z-index: 10;
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.25;
  animation: moveGrid 20s linear infinite;
  pointer-events: none;
}
@keyframes moveGrid {
  from { background-position: 0 0; }
  to   { background-position: 100px 100px; }
}
header h1 {
  position: relative;
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: #ffffffc0;
  text-shadow: 0 0 10px rgba(167,255,255,0.5), 0 0 30px rgba(255,255,255,0.747);
  margin: 0 0 1rem 0.5rem;
}

/* ── NAV ── */
#navi {
  background: rgba(151,151,151,0.3);
  border: 3px double rgba(255,255,255,0.6);
  border-radius: 13px;
  box-shadow: 0 0 33px rgba(255,255,255,0.9), inset 0 0 33px rgba(255,255,255,0.6);
  padding: 0;
  backdrop-filter: blur(9px);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
#navi a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 0 10px #ffffffe7;
  padding: 0.6rem 1rem;
  display: inline-block;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  font-size: 0.9rem;
}
#navi a:hover { background: rgba(255,255,255,0.2); text-shadow: 0 0 3px #00fff9; }
#navi a.active {
  background: rgba(0,0,0,0.3);
  border-bottom: 3px double #00fff9;
  font-weight: bold;
}

/* ── GLASS CARD ── */
.card {
  background: rgba(255,255,255,0.1);
  border: 3px double rgba(247,247,247,0.6);
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255,255,255,0.3), inset 0 2px 20px rgba(255,255,255,0.3);
  backdrop-filter: blur(13px);
  padding: 1.5rem 1.75rem;
  transition: box-shadow 0.25s ease;
}
.card:hover {
  box-shadow: 0 0 60px rgba(0,255,249,0.3), inset 0 2px 20px rgba(255,255,255,0.5);
}

/* ── CONTROLS BAR ── */
.controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255,255,255,0.25), inset 0 0 12px rgba(255,255,255,0.15);
}
.ctrl-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 0 6px rgba(255,255,255,0.4);
}
.ctrl-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.3); flex-shrink: 0; }
.ctrl-input {
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 7px;
  padding: 0.35rem 0.75rem;
  color: #e0fff8;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ctrl-input option { background: #1a1a2e; color: #e0fff8; }
.ctrl-input:focus { border-color: rgba(0,255,249,0.8); box-shadow: 0 0 10px rgba(0,255,249,0.25); }
.ctrl-input::placeholder { color: rgba(224,255,248,0.4); }

/* ── BADGES ── */
.badge {
  font-size: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0,255,249,0.4);
  color: #00fff9;
  text-shadow: 0 0 6px rgba(0,255,249,0.6);
}
.badge.ot  { border-color: rgba(255,200,80,0.5);  color: #ffc850; text-shadow: 0 0 6px rgba(255,200,80,0.4); }
.badge.so  { border-color: rgba(255,120,180,0.5); color: #ff78b4; text-shadow: 0 0 6px rgba(255,120,180,0.4); }

/* ── TEAM SIDEBAR ── */
.sidebar {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: sticky;
  top: 1.5rem;
}
.team-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
  padding: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.15);
  border: 2px solid transparent;
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
  display: block;
}
.team-logo:hover { background: rgba(255,255,255,0.35); transform: scale(1.06); }
.team-logo.active {
  border: 2px solid rgba(0,255,249,0.9);
  box-shadow: 0 0 16px rgba(0,255,249,0.5);
  background: rgba(0,255,249,0.1);
}

/* ── LOADING / STATE MESSAGES ── */
.msg-state {
  padding: 3rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}
.msg-state.loading { animation: pulse 1.5s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── COMMON LAYOUT ── */
.main-layout {
  display: flex;
  align-items: flex-start;
  padding: 2rem;
  gap: 1.5rem;
}
.content-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .main-layout { flex-direction: column; padding: 1rem; }
  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    justify-content: center;
  }
  .team-logo { width: 48px; height: 48px; }
}
