/* public/css/event-modal.css */

.event-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.event-modal.hidden {
  display: none;
}

.event-content {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border: 3px solid #ffd700;
  border-radius: 12px;
  padding: 20px;
  max-width: 500px;
  max-height: 85vh;
  width: 90%;
  color: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  overflow-x: hidden;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.event-category {
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-NEWS {
  background: #2196F3;
  color: white;
}

.category-CONFLICT {
  background: #F44336;
  color: white;
}

.category-DISASTER {
  background: #FF9800;
  color: white;
}

.category-INTERNAL {
  background: #4CAF50;
  color: white;
}

.event-close {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  transition: transform 0.2s;
}

.event-close:hover {
  transform: scale(1.2);
  color: #ffd700;
}

.event-title {
  margin: 0 0 15px 0;
  font-size: 24px;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.event-description {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
}

.event-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.event-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border: 2px solid #ffd700;
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}

.event-btn:hover {
  background: #ffd700;
  color: #1e3c72;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.event-btn:active {
  transform: translateY(0);
}

/* Effects view styles */
.event-effects {
  margin: 20px 0;
}

.event-effects.hidden {
  display: none;
}

.effects-container {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.effects-image {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.effects-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.effects-section {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.effects-title {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #ffd700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.effects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.effect-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.effect-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.effect-negative {
  border-color: rgba(244, 67, 54, 0.5);
}

.effect-positive {
  border-color: rgba(76, 175, 80, 0.5);
}

.effect-icon {
  font-size: 32px;
  min-width: 40px;
  text-align: center;
}

.effect-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.effect-resource {
  font-size: 16px;
  font-weight: bold;
  color: #e0e0e0;
}

.effect-value {
  font-size: 20px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.effect-negative .effect-value {
  color: #ff6b6b;
}

.effect-positive .effect-value {
  color: #51cf66;
}

.no-effects {
  text-align: center;
  color: #999;
  font-style: italic;
  margin: 10px 0;
}

.effects-actions {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.btn-back {
  min-width: 150px;
}

.event-buttons.hidden {
  display: none;
}

/* Responsive design */
@media (max-width: 600px) {
  .event-content {
    width: 95%;
    padding: 15px;
  }
  
  .event-title {
    font-size: 20px;
  }
  
  .event-description {
    font-size: 14px;
  }
  
  .event-btn {
    font-size: 14px;
    padding: 10px 15px;
  }
  
  .effect-icon {
    font-size: 28px;
    min-width: 35px;
  }
  
  .effect-resource {
    font-size: 14px;
  }
  
  .effect-value {
    font-size: 18px;
  }
}

/* Mobile landscape mode - compact vertical spacing */
@media (max-width: 900px) and (max-height: 500px) {
  .event-content {
    max-height: 90vh;
    padding: 12px;
    max-width: 650px;
  }
  
  .event-header {
    margin-bottom: 8px;
  }
  
  .event-title {
    font-size: 18px;
    margin: 0 0 8px 0;
  }
  
  .event-description {
    font-size: 13px;
    margin: 0 0 12px 0;
    line-height: 1.4;
  }
  
  .event-category {
    padding: 4px 12px;
    font-size: 10px;
  }
  
  .event-close {
    font-size: 28px;
    width: 28px;
    height: 28px;
  }
  
  .event-effects {
    margin: 12px 0;
  }
  
  .effects-section {
    padding: 10px;
    margin-bottom: 10px;
  }
  
  .effects-title {
    font-size: 15px;
    margin: 0 0 10px 0;
  }
  
  .effects-list {
    gap: 6px;
  }
  
  .effect-item {
    padding: 8px;
    gap: 10px;
  }
  
  .effect-icon {
    font-size: 24px;
    min-width: 30px;
  }
  
  .effect-resource {
    font-size: 13px;
  }
  
  .effect-value {
    font-size: 16px;
  }
  
  .effects-actions {
    margin-top: 10px;
  }
  
  .event-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .btn-back {
    min-width: 120px;
  }
  
  .effects-image {
    margin-bottom: 12px;
    max-height: 150px;
  }
  
  .effects-image img {
    object-fit: contain;
  }
}

/* Very small landscape screens */
@media (max-width: 700px) and (max-height: 400px) {
  .event-content {
    padding: 10px;
    max-width: 550px;
  }
  
  .event-title {
    font-size: 16px;
    margin: 0 0 6px 0;
  }
  
  .event-description {
    font-size: 12px;
    margin: 0 0 10px 0;
  }
  
  .effects-title {
    font-size: 14px;
    margin: 0 0 8px 0;
  }
  
  .effect-item {
    padding: 6px;
  }
  
  .effect-icon {
    font-size: 20px;
    min-width: 25px;
  }
  
  .effect-resource {
    font-size: 12px;
  }
  
  .effect-value {
    font-size: 14px;
  }
  
  .event-btn {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 100px;
  }
  
  .effects-image {
    max-height: 120px;
  }
}
