/* negotiation.css - styles extracted from negotiation UI JS */

/* Modal overlays */
.negotiation-modal, .trade-request-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding-top: 20px;
  z-index: 2000;
}
.trade-request-modal { align-items: center; z-index: 2500; }

/* Modal content boxes */
.negotiation-modal-content, .trade-request-content {
  background: #fff;
  padding: 0;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 3px rgba(254,225,64,0.3);
  border: 3px solid #fee140;
  overflow: hidden;
}
.negotiation-modal-content { width: 550px; max-height: 90vh; }
.trade-request-content { width: 450px; }

/* Headers */
.negotiation-header, .trade-header {
  background: linear-gradient(135deg,#fa709a 0%,#fee140 100%);
  padding: 20px 25px;
  border-bottom: 3px solid #fee140;
}
.negotiation-header-icon, .trade-header-icon { font-size: 48px; margin-bottom: 8px; }

.negotiation-title { margin: 0; color: #fff; font-size: 28px; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.trade-title { margin: 0; color: #fff; font-size: 26px; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }

.negotiation-timer { font-size: 20px; font-weight: 700; color: #fff; margin-top: 10px; padding: 8px 16px; background: rgba(0,0,0,0.2); border-radius: 20px; display: inline-block; }

/* Content */
.negotiation-content, .trade-content { padding: 30px; max-height: 60vh; overflow-y: auto; }
.negotiation-instruction { font-size: 18px; color: #333; font-weight: 600; margin-top: 0; margin-bottom: 12px; }

.negotiation-player-list { margin: 0 0 20px 0; text-align: left; max-height: 300px; overflow-y: auto; }
.negotiation-property-list { margin: 0 0 16px 0; text-align: left; max-height: 260px; overflow-y: auto; display: none; }
.negotiation-property-list.visible { display: block; }
.negotiation-offer-list { margin: 0 0 12px 0; text-align: left; max-height: 200px; overflow-y: auto; }

.negotiation-subheader { font-size: 16px; color: #333; font-weight: 600; margin: 8px 0 6px 0; }

/* Money section */
.money-section { display: flex; gap: 16px; margin: 0 0 12px 0; flex-wrap: wrap; }
.money-wrap { flex: 1; min-width: 180px; }
.money-label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.money-input { width: 100%; padding: 8px; border: 2px solid #e0e0e0; border-radius: 10px; }

/* Buttons */
.button-container, .trade-button-container { margin-top: 0; display: flex; gap: 12px; justify-content: center; position: sticky; bottom: 0; background: #fff; padding: 12px 0 0 0; }
.btn { padding: 14px 28px; border-radius: 25px; cursor: pointer; font-size: 16px; font-weight: 700; transition: all 0.3s ease; }
.btn-confirm { background: linear-gradient(135deg,#fa709a 0%,#fee140 100%); color: #fff; border: 2px solid #fee140; box-shadow: 0 4px 15px rgba(254,225,64,0.4); text-shadow: 1px 1px 2px rgba(0,0,0,0.2); display: none; }
.btn-cancel { background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); color: #fff; border: 2px solid #764ba2; box-shadow: 0 4px 15px rgba(118,75,162,0.3); }
.btn-accept { padding: 14px 32px; background: linear-gradient(135deg,#11998e 0%,#38ef7d 100%); color: white; border: 2px solid #38ef7d; border-radius: 25px; box-shadow: 0 4px 15px rgba(56,239,125,0.4); }
.btn-counter { padding: 14px 32px; background: linear-gradient(135deg,#2196F3 0%,#21CBF3 100%); color: white; border: 2px solid #21CBF3; border-radius: 25px; box-shadow: 0 4px 15px rgba(33,203,243,0.4); }
.btn-deny { padding: 14px 32px; background: linear-gradient(135deg,#eb3349 0%,#f45c43 100%); color: white; border: 2px solid #f45c43; border-radius: 25px; box-shadow: 0 4px 15px rgba(244,92,67,0.4); }

/* Player list items */
.player-option { padding: 14px 16px; margin: 10px 0; background-color: #f8f9fa; border-radius: 12px; cursor: pointer; border: 2px solid #e0e0e0; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.player-option.selected { border: 2px solid #fee140; background-color: #fffbf0; box-shadow: 0 4px 15px rgba(254,225,64,0.4); }
.player-label { cursor: pointer; display: flex; align-items: center; gap: 10px; }
.player-info { font-size: 14px; }

/* Property/offer rows */
.property-row { padding: 10px 12px; margin: 8px 0; background-color: #f8f9fa; border-radius: 12px; border: 2px solid #e0e0e0; display: flex; align-items: center; gap: 10px; }
.offer-row { padding: 10px 12px; margin: 8px 0; background-color: #f5f7fb; border-radius: 12px; border: 2px solid #e0e0e0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.property-name { font-weight: 700; font-size: 14px; flex: 1; }

/* Colored property names - add text shadow for better contrast */
.property-name {
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8), -1px -1px 2px rgba(255,255,255,0.8), 1px -1px 2px rgba(255,255,255,0.8), -1px 1px 2px rgba(255,255,255,0.8);
  letter-spacing: 0.3px;
}

/* Trade request list items with colored properties */
#trade-request-text ul li strong {
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8), -1px -1px 2px rgba(255,255,255,0.8), 1px -1px 2px rgba(255,255,255,0.8), -1px 1px 2px rgba(255,255,255,0.8);
  letter-spacing: 0.3px;
}

/* Counter trade labels with colored properties */
#counter-trade-property-list label span,
#counter-trade-offer-list label span {
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8), -1px -1px 2px rgba(255,255,255,0.8), 1px -1px 2px rgba(255,255,255,0.8), -1px 1px 2px rgba(255,255,255,0.8);
  letter-spacing: 0.3px;
}

/* Muted and dashed helper classes */
.muted { color: #999; text-align: center; padding: 16px; }
.dashed { border: 1px dashed #ccc; border-radius: 10px; padding: 8px; }

/* Utility */
.visible { display: block !important; }

/* Small responsive tweaks */
@media (max-width: 600px) {
  .negotiation-modal-content { width: calc(100% - 40px); }
  .trade-request-content { width: calc(100% - 60px); }
}
