/**
 * SIMPLE INFO PANEL STYLES v2.0
 * Matches video channel bar styling with animated open/close
 */

/* Base hotspot wrapper */
.simple-info-hotspot {
  position: relative;
  cursor: pointer;
  z-index: 100;
}

/* ===== ICON BUTTON - Matches channel button style ===== */
.simple-info-icon {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.simple-info-icon:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

/* Active/expanded state glow */
.simple-info-hotspot.expanded .simple-info-icon {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 100, 150, 0.6);
  box-shadow: 
    0 4px 20px rgba(255, 100, 150, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.simple-info-icon img {
  width: 55%;
  height: 55%;
  opacity: 0.85;
}

/* ===== PANEL CONTAINER - Matches channel bar background ===== */
.simple-info-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -150px;
  margin-top: 12px;
  
  /* Warm tan glassmorphism - matches video control strip */
  background: rgba(210, 180, 140, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  
  padding: 16px;
  z-index: 101;
  
  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Expanded state */
.simple-info-hotspot.expanded .simple-info-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== TITLE ===== */
.simple-info-title {
  color: #3a3f41;
  font-family: 'Open Sans Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-right: 36px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ===== TEXT CONTENT ===== */
.simple-info-text {
  color: #3a3f41;
  font-family: 'Century Gothic', 'AppleGothic', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-y: auto;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Scrollbar styling */
.simple-info-text::-webkit-scrollbar {
  width: 6px;
}

.simple-info-text::-webkit-scrollbar-track {
  background: rgba(74, 79, 81, 0.1);
  border-radius: 3px;
}

.simple-info-text::-webkit-scrollbar-thumb {
  background: rgba(74, 79, 81, 0.25);
  border-radius: 3px;
}

.simple-info-text::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 79, 81, 0.4);
}

/* ===== CLOSE BUTTON ===== */
.simple-info-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.simple-info-close:hover {
  background: rgba(228, 30, 51, 0.9);
  border-color: rgba(255, 100, 100, 0.6);
  box-shadow: 
    0 4px 15px rgba(228, 30, 51, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.simple-info-close img {
  width: 45%;
  height: 45%;
  filter: brightness(0) saturate(100%) invert(20%);
  transition: filter 0.2s ease;
}

.simple-info-close:hover img {
  filter: brightness(0) invert(1);
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .simple-info-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -45%;
    margin-top: -25vh;
    width: 90%;
    max-width: 400px;
  }

  .simple-info-hotspot.expanded .simple-info-panel {
    max-height: 50vh;
  }

  .simple-info-text {
    max-height: calc(50vh - 80px);
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .simple-info-icon,
  .simple-info-panel,
  .simple-info-close {
    transition: none;
  }
}
