/* ============================================
   SILO BUTTONS
   Buttons that appear above each silo
   ============================================ */

.silo-button-group {
  position: absolute;
  opacity: 0.5;
  transition: transform 0.3s ease-out, opacity 0.3s ease;
  will-change: transform;
}

.silo-button-group .container {
  position: relative;
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  left: -50%;
  gap: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  border-radius: 0;
  padding: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.silo-button {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, var(--bg), var(--bg));
  color: var(--fg);
  font-weight: bold;
  padding: 2px;
  border-radius: 0;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--blue-highlight), 0 0 0 1px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  min-width: 30px;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.silo-button:first-child {
  border-radius: 12px 0 0 12px;
}

.silo-button:last-child {
  border-radius: 0 12px 12px 0;
}

.silo-button:only-child {
  border-radius: 4px;
}

.silo-button.big {
  font-size: 16px;
  min-width: 120px;
}

.silo-button:not(.big) {
  writing-mode: vertical-lr;
  text-orientation: upright;
}

.silo-button:hover {
  background: linear-gradient(135deg, var(--blue-highlight), var(--blue-primary));
  border-left-color: var(--blue-highlight);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 var(--blue-highlight), 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.silo-button.active {
  background: linear-gradient(180deg, var(--red-accent), var(--red-secondary));
  color: #ffcccc;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.25);
}

.silo-button.active:hover {
  background: rgba(59, 250, 176, 0.95);
  border-color: rgba(79, 255, 196, 0.9);
  box-shadow: 0 0 8px rgba(39, 240, 156, 0.8);
}

.silo-button.disabled {
  background: rgba(40, 40, 80, 0.5);
  color: rgba(0, 0, 0, 0.0);
  text-shadow: none;
  cursor: not-allowed;
  box-shadow: none;
}

.silo-button.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Fill progress bar inside LOAD button */
.silo-button .fill-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.silo-button .fill-text :not(:first-child) {
  font-size: 12px;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.silo-button.disabled .fill-text :not(:first-child) {
  text-shadow: none;
}

.silo-button .fill-progress {
  position: absolute;
  height: 100%;
  left: 0;
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.5), rgba(128, 0, 0, 0.5));
}
