/* Mobile-first minimal layout styles for Omnivoid */

/* Floating menu labels */
.floating-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Hamburger toggle button */
.hamburger-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 57px;
  height: 57px;
  background: #111111;
  border: 1px solid #99ccff;
  border-radius: 50%;
  color: #99ccff;
  font-size: 23px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  
  font-family: 'Space Mono', monospace;
  box-shadow: 
    0 0 15px rgba(153, 204, 255, 0.2),
    2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hamburger-toggle:hover {
  background-color: #99ccff;
  color: #000000;
  box-shadow: 0 0 25px rgba(153, 204, 255, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Dropdown menu container */
.dropdown-menu {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 80px;
  background: transparent;
  border: none;
  border-radius: 10px;
  
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Dropdown menu items */
.dropdown-menu-item {
  width: 57px;
  height: 57px;
  background: #111111;
  border: 1px solid #99ccff;
  border-radius: 50%;
  color: #99ccff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  transition: all 0.3s ease;
  margin-bottom: 9px;
  backdrop-filter: blur(10px);
  font-family: 'Space Mono', monospace;
  box-shadow: 
    0 0 15px rgba(153, 204, 255, 0.2),
    2px 2px 4px rgba(0, 0, 0, 0.5);
}

.dropdown-menu-item:hover {
  background-color: #99ccff;
  color: #000000;
  box-shadow: 0 0 25px rgba(153, 204, 255, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Active menu item state */
.dropdown-menu-item.active {
  background-color: #99ccff;
  color: #1c1c1c;
  box-shadow: 0 0 25px rgba(153, 204, 255, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}

/* Custom menu icon images */
.dropdown-menu-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.dropdown-menu-item:hover img {
  filter: brightness(0) saturate(100%);
}

.dropdown-menu-item.active img {
  filter: brightness(0.2) saturate(100%);
}

/* Custom tooltip styling */
.custom-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: #99ccff;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  white-space: nowrap;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  border: 1px solid #99ccff;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.custom-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid #99ccff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.floating-label {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  color: var(--fg-color);
  opacity: 0.8;
  cursor: pointer;
  pointer-events: all;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 160px;
  max-width: 220px;
}

.floating-label:hover {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.floating-label-main {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: #ffffff;
}

.floating-label-subtitle {
  font-weight: 300;
  font-size: 9px;
  opacity: 0.7;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* Orbital animation for floating labels */
.floating-label.orbital {
  animation: orbit 30s linear infinite;
  transform-origin: 50vw 50vh;
}

.floating-label.orbital:nth-child(1) { animation-delay: 0s; }
.floating-label.orbital:nth-child(2) { animation-delay: -3.75s; }
.floating-label.orbital:nth-child(3) { animation-delay: -7.5s; }
.floating-label.orbital:nth-child(4) { animation-delay: -11.25s; }
.floating-label.orbital:nth-child(5) { animation-delay: -15s; }
.floating-label.orbital:nth-child(6) { animation-delay: -18.75s; }
.floating-label.orbital:nth-child(7) { animation-delay: -22.5s; }
.floating-label.orbital:nth-child(8) { animation-delay: -26.25s; }

/* Static floating labels */
.floating-label.static-float {
  animation: staticFloat 8s ease-in-out infinite;
}

.floating-label.static-float:nth-child(odd) {
  animation-delay: -2s;
}

@keyframes staticFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-10px) scale(1.02); opacity: 1; }
}

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(250px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(250px) rotate(-360deg); }
}

/* Mobile controls container */
.mobile-controls {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-control-btn {
  background: none;
  border: 1px solid var(--fg-color);
  color: var(--fg-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  font-family: 'Space Mono', monospace;
  position: relative;
}

.mobile-control-btn:hover,
.mobile-control-btn.active {
  background: var(--fg-color);
  color: var(--bg-color);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.mobile-control-btn.active::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.mobile-volume-control {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
}

.mobile-volume-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fg-color);
  cursor: pointer;
}

.mobile-volume-control::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fg-color);
  cursor: pointer;
  border: none;
}

/* Advanced mode toggle */
.advanced-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1002;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--fg-color);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  transition: all 0.3s ease;
}

.advanced-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Hide control panel in mobile mode */
.mobile-mode #controls {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-label {
    font-size: 10px;
    padding: 8px 12px;
    min-width: 140px;
    max-width: 180px;
  }
  
  .floating-label-main {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  
  .floating-label-subtitle {
    font-size: 8px;
    line-height: 1.1;
  }
  
  .mobile-controls {
    bottom: 70px;
    gap: 15px;
    padding: 10px 20px;
  }
  
  .mobile-control-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .mobile-volume-control {
    width: 60px;
  }
  
  .advanced-toggle {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 11px;
  }
  
  /* Agent controls mobile - hidden */
  .agent-controls-container {
    display: none !important;
  }
  
  .agent-controls-container .dial-container {
    gap: 4px !important;
  }
  
  /* Ensure container only takes needed space */
  .agent-controls-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  
  .agent-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
  }
  
  .agent-count-display,
  .connection-display {
    font-size: 12px !important;
    min-width: 30px !important;
  }
  
  /* Adjust orbit radius for mobile */
  @keyframes orbit {
    0% { transform: rotate(0deg) translateX(180px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
  }
}

/* Mobile-specific minimal controls positioning */
@media (max-width: 767px) {
  .minimal-controls {
    bottom: 100px !important;
  }
}

/* Desktop enhancements for mobile menu */
@media (min-width: 768px) {
  /* Make mobile controls larger and more accessible on desktop */
  .minimal-controls {
    bottom: 50px !important;
    padding: 12px 20px !important;
    gap: 12px !important;
    border-radius: 25px !important;
    box-shadow: 
      0 0 30px rgba(153, 204, 255, 0.3),
      6px 6px 12px rgba(0, 0, 0, 0.6) !important;
  }
  
  .minimal-control-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
    border-width: 2px !important;
  }
  

  
  /* Make volume controls larger on desktop */
  .volume-control-container {
    bottom: 30px !important;
    padding: 16px 12px !important;
    border-radius: 25px !important;
    box-shadow: 
      0 0 30px rgba(153, 204, 255, 0.3),
      6px 6px 12px rgba(0, 0, 0, 0.6) !important;
  }
  
  .volume-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
    border-width: 2px !important;
  }
  
  .volume-display {
    font-size: 12px !important;
    min-width: 35px !important;
  }
  
  /* Make agent controls larger on desktop */
  .agent-controls-container {
    top: 50% !important;
    left: 30px !important;
    transform: translateY(-50%) !important;
    padding: 16px 12px !important;
    border-radius: 25px !important;
    box-shadow: 
      0 0 30px rgba(153, 204, 255, 0.3),
      6px 6px 12px rgba(0, 0, 0, 0.6) !important;
  }
  
  .agent-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
    border-width: 2px !important;
  }
  
  .agent-count-display,
  .connection-display {
    font-size: 12px !important;
    min-width: 32px !important;
  }
  
  /* Enhanced floating menu for desktop */
  .hamburger-toggle {
    width: 60px !important;
    height: 60px !important;
    font-size: 24px !important;
    top: 30px !important;
    right: 20px !important;
    box-shadow: 
      0 0 25px rgba(153, 204, 255, 0.3),
      4px 4px 8px rgba(0, 0, 0, 0.6) !important;
  }
  
  .dropdown-menu {
    top: 100px !important;
    right: 20px !important;
    padding: 15px !important;
  }
  
  .dropdown-menu-item {
    width: 60px !important;
    height: 60px !important;
    font-size: 24px !important;
    margin-bottom: 12px !important;
    box-shadow: 
      0 0 20px rgba(153, 204, 255, 0.3),
      4px 4px 8px rgba(0, 0, 0, 0.6) !important;
  }
  
  /* Enhanced tooltips for desktop */
  .custom-tooltip {
    font-size: 13px !important;
    padding: 10px 14px !important;
    border-width: 2px !important;
  }
}

@media (max-width: 480px) {
  .floating-label {
    font-size: 9px;
    padding: 6px 10px;
    min-width: 120px;
    max-width: 160px;
  }
  
  .floating-label-main {
    font-size: 9px;
    letter-spacing: 0.3px;
  }
  
  .floating-label-subtitle {
    font-size: 7px;
  }
  
  /* Even smaller orbit for very small screens */
  @keyframes orbit {
    0% { transform: rotate(0deg) translateX(140px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
  }
}

/* Live Transmissions Styling */
.transmission-item {
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid #333333;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.transmission-item:hover {
  border-color: #99ccff;
  background: rgba(153, 204, 255, 0.1);
  transform: translateX(2px);
}

.loading-spinner {
  animation: spin 1s linear infinite;
  font-size: 16px;
  margin-bottom: 4px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* YouTube Modal Styling - Force isolation from parent elements */
.youtube-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.9) !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(10px) !important;
  transform: none !important;
  transition: opacity 0.3s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  /* Force isolation from parent transforms */
  transform-origin: 0 0 !important;
  /* Ensure no inheritance from parent */
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  /* Maximum isolation from parent context */
  will-change: transform !important;
  contain: layout style paint !important;
  /* Force viewport positioning */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
}

.youtube-player-container {
  position: relative !important;
  width: 90% !important;
  max-width: 800px !important;
  background: #000 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 0 50px rgba(153, 204, 255, 0.3) !important;
  transform: none !important;
  margin: 0 !important;
}

.youtube-close-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 30px !important;
  height: 30px !important;
  background: rgba(0, 0, 0, 0.8) !important;
  border: 1px solid #99ccff !important;
  color: #99ccff !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 10001 !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.youtube-close-btn:hover {
  background: rgba(153, 204, 255, 0.2) !important;
  border-color: #99ccff !important;
  transform: scale(1.1) !important;
}

/* Ensure modal is always on top and properly positioned */
.youtube-modal iframe {
  width: 100% !important;
  height: 450px !important;
  border: none !important;
  display: block !important;
} 

/* PDF Viewer Styling */
.pdf-viewer-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.9) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(5px) !important;
  animation: fadeIn 0.3s ease !important;
}

.pdf-viewer-content {
  background: #111111 !important;
  border: 2px solid #99ccff !important;
  border-radius: 8px !important;
  width: 95vw !important;
  max-width: 1200px !important;
  height: 95vh !important;
  overflow: hidden !important;
  box-shadow: 
    0 0 30px rgba(153, 204, 255, 0.3),
    0 0 60px rgba(153, 204, 255, 0.1) !important;
  animation: popupSlideIn 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 10000 !important;
}

.pdf-thumbnail {
  width: 80px;
  height: 100px;
  border: 2px outset #555555;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
  margin: 4px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.pdf-thumbnail:hover {
  border-style: inset;
  transform: scale(1.05);
  border-color: #99ccff;
}

/* PDF Viewer Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupSlideIn {
  from { 
    opacity: 0; 
    transform: scale(0.9) translateY(-20px); 
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
} 