/* ==========================================================================
   1. FRAMEWORK CONSTRAINTS & ACCELERATION RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #e4edf4;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ==========================================================================
   2. FIXED INLINE SVG VECTOR SIZING ENGINE
   ========================================================================== */
.aero-vector {
  width: 22px !important;  
  height: 22px !important; 
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* ==========================================================================
   3. GLOSSY AERO TOP BAR NAVIGATION
   ========================================================================== */
.aero-top-bar {
  height: 60px;
  background: linear-gradient(180deg, #4faadb 0%, #0072b0 45%, #004573 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 69, 115, 0.35);
  z-index: 100;
}

.aero-top-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.15) 85%, rgba(255, 255, 255, 0) 100%);
  border-bottom-left-radius: 50% 20%;
  border-bottom-right-radius: 50% 20%;
  pointer-events: none;
}

.aero-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 5;
}

.aero-nav-links {
  display: flex;
  gap: 8px;
  z-index: 5;
  text-decoration: none;
}

.aero-nav-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.1) 100%);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: white;
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.2s;
}

.aero-nav-item:hover {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* ==========================================================================
   17. LITERAL INTERACTIVE CHILD LINK STRIPPER
   ========================================================================== */
/* Targets the parent 'a' link wrapper directly inside your specific navigation block */
.aero-nav-links a {
  text-decoration: none !important;
  display: inline-block;
}

/* Force-strips the text underline off the button inside that link wrapper */
.aero-nav-links a button,
.aero-nav-links a .aero-nav-item {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none;
}

/* ==========================================================================
   4. GLOSSY LIGHT-BLUE SEARCH BAR CONTAINER
   ========================================================================== */
.aero-search-container {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 300px;
  width: 100%;
  margin: 0 15px;
  z-index: 10;
}

#aero-search-input {
  width: 100%;
  padding: 8px 12px 8px 38px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px; 
  outline: none;
  transition: all 0.25s ease-in-out;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

#aero-search-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

#aero-search-input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: #a6d8f0; 
  box-shadow: 0 0 10px rgba(166, 216, 240, 0.5), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.7);
  width: 16px !important;
  height: 16px !important;
  pointer-events: none;
}

/* ==========================================================================
   5. COLLAPSIBLE DARK GRAY SIDEBAR CONFIGURATION (#444444)
   ========================================================================== */
.aero-main-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.aero-sidebar {
  width: 240px;
  background: linear-gradient(90deg, #444444 0%, #383838 100%);
  border-right: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 15px rgba(0,0,0,0.15);
  z-index: 90;
}

.aero-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.aero-sidebar.collapsed {
  width: 70px;
}

.sidebar-toggle-row {
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.aero-sidebar.collapsed .sidebar-toggle-row {
  justify-content: center;
}

.sidebar-toggle-btn {
  background: linear-gradient(180deg, #a6d8f0 0%, #3a9ad9 45%, #0077b6 100%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 12px 22px;
  color: #cccccc;
  text-decoration: none;
  font-weight: 500;
  gap: 16px; 
  white-space: nowrap;
  transition: all 0.2s, padding 0.35s ease;
  border-left: 4px solid transparent;
}

.aero-sidebar.collapsed .sidebar-link {
  padding: 12px 20px;
  justify-content: center;
  gap: 0;
}

.sidebar-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(58, 154, 217, 0.25) 0%, rgba(0,0,0,0) 100%);
  border-left-color: #a6d8f0;
  text-shadow: 0 0 4px rgba(166, 216, 240, 0.6);
}

.sidebar-link.active .aero-vector {
  color: #a6d8f0;
}

.aero-sidebar.collapsed .link-text {
  opacity: 0;
  max-width: 0;
  display: none;
  pointer-events: none;
}

.link-text {
  opacity: 1;
  max-width: 200px;
  display: inline-block;
  transition: opacity 0.25s ease-in;
}

/* ==========================================================================
   6. SYMBOL WORKSPACE AND RESPONSE LAYOUT GRIDS
   ========================================================================== */
.aero-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.symbol-section {
  margin-bottom: 40px;
}

.aero-content h2 {
  color: #004573;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(0, 114, 176, 0.15);
  padding-bottom: 8px;
}

.aero-char-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

/* ==========================================================================
   7. GLOSSY CHARACTER CARDS
   ========================================================================== */
.aero-char-card {
  background: linear-gradient(180deg, #5d5d5d 0%, #444444 45%, #2a2a2a 100%);
  color: #ffffff;
  width: 150px;
  padding: 1.2rem;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 3px rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.aero-char-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.0) 100%);
  border-bottom-left-radius: 50% 20%;
  border-bottom-right-radius: 50% 20%;
  pointer-events: none;
}

.aero-char-display {
  font-size: 1.5rem; 
  font-weight: bold;
  margin-bottom: 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
  white-space: nowrap; 
  word-break: keep-all;
}

/* ==========================================================================
   8. LEFT-ALIGNED GLOSSY BUTTONS & 3D BOUNCE MECHANICS
   ========================================================================== */
.aero-char-btn {
  align-self: flex-start; 
  z-index: 5;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #ffffff;
  transition: filter 0.2s;
  background: linear-gradient(180deg, #a6d8f0 0%, #3a9ad9 45%, #0077b6 100%);
  border-top: 1.5px solid rgba(255, 255, 255, 0.8);
  border-left: 1.5px solid rgba(255, 255, 255, 0.4);
  border-right: 1.5px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.4);
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 40, 70, 0.6);
}

.aero-char-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.0) 100%);
}

.aero-char-btn:hover {
  filter: brightness(1.1);
}

/* Physics-Based 3D Elastic Animation Loop */
.aero-bounce-active {
  animation: aeroUpAndDown 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes aeroUpAndDown {
  0% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-14px) scale(1.06);
    box-shadow: 0 14px 18px rgba(58, 154, 217, 0.4);
    background: linear-gradient(180deg, #e0f2fe 0%, #7dd3fc 45%, #0284c7 100%);
  }
  70% {
    transform: translateY(3px) scale(0.96);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   8. GLOSSY LIGHT-BLUE SEARCH BAR CONTAINER
   ========================================================================== */
.aero-search-container {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 300px;
  width: 100%;
  margin: 0 15px;
  z-index: 10;
}

#aero-search-input {
  width: 100%;
  padding: 8px 12px 8px 38px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  
  /* Translucent Glass Blueprint style */
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px; /* Bubble Capsule contour */
  outline: none;
  transition: all 0.25s ease-in-out;
  
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Clear placeholder readability against the blue background */
#aero-search-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

/* Interactive Focus Glow State */
#aero-search-input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: #a6d8f0; /* Matches your light-blue theme highlights */
  box-shadow: 
    0 0 10px rgba(166, 216, 240, 0.5),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Precise positioning for the inside inline search vector icon */
.search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.7);
  width: 16px !important;
  height: 16px !important;
  pointer-events: none;
}

.custom-link {
  color: #166782 !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.custom-link:hover {
  color: #3aa6d9 !important;
  text-shadow: 
    0 0 4px rgba(255, 255, 255, 0.8), 
    0 0 10px #a6d8f0,                 
    0 0 20px rgba(58, 154, 217, 0.5); 
}

.custom-link:visited {
  color: #166782 !important;
  text-decoration: none !important;
}

.custom-link:visited:hover {
  color: #3aa6d9 !important;
}
