/* ============================================================
   MINECRAFT PAGE STYLES
   Loaded by /minecraft/index.html alongside /css/style.css
============================================================ */

.callout {
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 6px; /* base rounding */
  border: 2px solid white; /* white border */
  background: #ffe5e5; /* soft red */
  color: #5a0000; /* deep red text for contrast */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}



/* ------ Section title ------ */

.section-title {
  font-size: 0.9rem;
  color: #8b949e;
  text-align: center;
  margin-bottom: 16px;
}


/* ------ Player Cards ------ */
/* Each card is a button (collapsed) + a hidden stats body */

.player-card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  margin: 14px 0;
  overflow: hidden;
}

/* The clickable header row */
.player-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 1rem;
}

.player-btn:hover {
  background-color: #1c2128;
}

/* Left side of the header: avatar + name + status */
.player-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Initials avatar */
.player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background-color: #30363d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: #8b949e;
  flex-shrink: 0;
}

.player-name {
  font-weight: bold;
  color: #e6edf3;
  text-align: left;
}

.player-status {
  font-size: 0.75rem;
  color: #8b949e;
  margin-top: 2px;
  text-align: left;
}

/* Online / offline indicator dots */
.dot-online {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #3fb950;
  margin-right: 4px;
  vertical-align: middle;
}

.dot-offline {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #8b949e;
  margin-right: 4px;
  vertical-align: middle;
}

/* Chevron arrow — rotates when card is open */
.player-chevron {
  font-size: 0.75rem;
  color: #8b949e;
  transition: transform 0.2s;
}

.player-chevron.open {
  transform: rotate(180deg);
}


/* ------ Stats body (hidden until card is opened) ------ */

.player-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid #30363d;
}

.player-body.open {
  display: block;
}


/* ------ 6-tile stats grid ------ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.stat-tile {
  background-color: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.stat-icon {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e6edf3;
}

.stat-label {
  font-size: 0.72rem;
  color: #8b949e;
  margin-top: 3px;
}


/* ------ Progress bars (health + XP) ------ */

.progress-row {
  margin-top: 14px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #8b949e;
  margin-bottom: 5px;
}

.progress-track {
  height: 6px;
  background-color: #30363d;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill-health {
  height: 100%;
  border-radius: 3px;
  background-color: #f85149;
  transition: width 0.4s;
}

.progress-fill-xp {
  height: 100%;
  border-radius: 3px;
  background-color: #3fb950;
  transition: width 0.4s;
}


/* ------ Achievement badges ------ */

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.badge {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: #58a6ff;
}


/* ------ Last seen / joined line ------ */

.player-footer {
  font-size: 0.75rem;
  color: #8b949e;
  margin-top: 12px;
}


/* ------ Whitelist Button ------ */

.whitelist-wrapper {
  text-align: center;
  margin-top: 32px;
}

.whitelist-btn {
  background-color: #161b22;
  color: #58a6ff;
  border: 1px solid #58a6ff;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  transition: background-color 0.2s, color 0.2s;
}

.whitelist-btn:hover {
  background-color: #58a6ff;
  color: #0d1117;
}


/* ------ Modal Overlay ------ */
/* Covers the whole screen; hidden until button is clicked */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 17, 23, 0.85);
}


/* ------ Modal Box ------ */

.modal-content {
  background-color: #161b22;
  margin: 10% auto;
  padding: 24px;
  border: 1px solid #30363d;
  width: 90%;
  max-width: 420px;
  border-radius: 8px;
  color: #e6edf3;
}

/* Header row: title on the left, X on the right */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #e6edf3;
  text-align: left; /* Overrides the global h2 { text-align: center } in style.css */
}

/* Form labels */
.modal-content label {
  display: block;
  font-size: 0.85rem;
  color: #8b949e;
  margin-top: 14px;
  margin-bottom: 5px;
}

.modal-content label:first-of-type {
  margin-top: 0;
}

/* Form inputs */
.modal-content input {
  width: 100%;
  box-sizing: border-box; /* Stops inputs overflowing the card */
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #30363d;
  background-color: #0d1117;
  color: #e6edf3;
  font-size: 0.95rem;
}

.modal-content input:focus {
  outline: none;
  border-color: #58a6ff;
}

/* Submit button */
.modal-content button[type="submit"] {
  width: 100%;
  padding: 10px;
  margin-top: 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background-color: #238636;
  color: #e6edf3;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  transition: background-color 0.2s;
}

.modal-content button[type="submit"]:hover {
  background-color: #2ea043;
}

/* Note below the submit button */
.modal-note {
  font-size: 0.8rem;
  color: #8b949e;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Close (X) button */
.close {
  font-size: 1.5rem;
  cursor: pointer;
  color: #8b949e;
  line-height: 1;
}

.close:hover {
  color: #e6edf3;
}
