/* ==========================================================================
   Extra Information Buttons and Panel (Asal Muasal & Struktur)
   ========================================================================== */

#extra-info-btns {
  position: absolute;
  bottom: 250px; /* Above joystick */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
  pointer-events: auto;
  transition: opacity 0.3s;
}

#extra-info-btns.hidden {
  display: none !important;
}

.extra-info-btn {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 8px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(5px);
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: all 0.2s;
}

.extra-info-btn:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.95);
}

/* 
  Info Panel (Bottom Sheet style) 
  Reuses some conventions from hotspot.css but tailored for long text
*/
#info-panel {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#info-panel.hidden {
  opacity: 0;
  pointer-events: none;
}

.info-panel-content {
  background-color: #fcf9f2; /* Light natural color */
  background-image: url('../assets/images/paper-texture.png'); /* Assumes existing */
  width: 100%;
  max-width: 500px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 20px;
  max-height: 50vh;
  display: flex;
  flex-direction: column;
}

#info-panel.hidden .info-panel-content {
  transform: translateY(100%);
}

.info-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
}

#info-panel-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #2c1810;
  margin: 0;
  text-transform: uppercase;
}

.info-panel-body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #3e2723;
  line-height: 1.6;
  overflow-y: auto;
  padding-right: 10px;
}
