/* Additional UI panel styling */

/* Resource icons styling (when/if added) */
.resource-item::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-right: 8px;
  display: inline-block;
  background-size: contain;
  vertical-align: middle;
}

/* Contract action buttons */
.contract-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.contract-actions button {
  flex: 1;
  padding: 6px 12px;
  font-size: 0.85em;
}

/* Planet tile action UI (for colonize/overthrow) */
.tile-actions {
  position: absolute;
  background: rgba(20, 25, 45, 0.98);
  border: 2px solid #64b5f6;
  border-radius: 8px;
  padding: 15px;
  min-width: 200px;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.tile-actions h4 {
  color: #64b5f6;
  margin-bottom: 10px;
}

.tile-actions button {
  width: 100%;
  margin: 5px 0;
}

/* Turn phase indicators */
.phase-indicator {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
  margin-left: 10px;
}

.phase-fuel-roll {
  background: #ffa726;
  color: #1a1a2e;
}

.phase-movement {
  background: #42a5f5;
  color: white;
}

.phase-landing-action {
  background: #66bb6a;
  color: white;
}

.phase-contract-resolution {
  background: #9575cd;
  color: white;
}

/* Dice roll animation container */
.dice-roll-display {
  text-align: center;
  padding: 20px;
}

.dice-result {
  font-size: 4em;
  font-weight: bold;
  color: #64b5f6;
  text-shadow: 0 0 20px rgba(100, 181, 246, 0.8);
  animation: dice-pop 0.3s ease-out;
}

@keyframes dice-pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Event card display */
.event-card {
  background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
  border: 2px solid #9c27b0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.event-description {
  font-size: 1.2em;
  margin: 15px 0;
  line-height: 1.5;
}

.event-effect {
  color: #ce93d8;
  font-weight: bold;
}

/* Colony indicator */
.colony-indicator {
  font-size: 0.85em;
  color: #4caf50;
  margin-top: 5px;
}

.colony-indicator::before {
  content: '★ ';
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .game-layout {
    grid-template-columns: 240px 1fr 240px;
  }

  .panel {
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .game-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .left-panel,
  .right-panel {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
  }

  .panel {
    min-width: 250px;
  }
}
