/* Real Overlord Mastery - Dark Theme */
.overlord-mastery-real {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  min-height: 600px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Overlay when account is online */
.ovl-lock-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(3px);
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  border-radius: 8px;
}

.ovl-lock-card {
  background: #111;
  border: 1px solid #444;
  padding: 20px 28px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  text-align: center;
}

.ovl-lock-title {
  color: #ffd700;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.ovl-lock-sub {
  color: #bbb;
  font-size: 14px;
}

/* Header Section */
.overlord-header-real {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 30px;
}

.overlord-title-real {
  flex-shrink: 0;
}

.overlord-title-real h2 {
  color: #ffd700;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.5px;
}

.character-info-real {
  font-size: 14px;
  color: #ffd700;
  margin-top: 8px;
  font-weight: normal;
}

.overlord-controls-real {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.points-info-real {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 120px;
}


.points-used-real {
  color: #ffd700;
  font-size: 16px;
  font-weight: bold;
}

.points-available-real {
  color: #ffd700;
  font-size: 16px;
  font-weight: bold;
}

.points-label-real {
  font-size: 14px;
  color: #ffd700;
  font-weight: normal;
}

.overlord-actions-real {
  display: flex;
  gap: 8px;
}

.btn-quick-fill-real,
.btn-reset-real,
.btn-save-real {
  background: #333;
  border: 1px solid #555;
  color: #ffd700;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-quick-fill-real:hover,
.btn-reset-real:hover,
.btn-save-real:hover {
  background: #444;
  border-color: #666;
}

.btn-save-real {
  background: #4caf50;
  border-color: #4caf50;
  color: white;
}

.btn-save-real:hover {
  background: #66bb6a;
  border-color: #66bb6a;
}

.points-used-real {
  color: #ffd700;
  font-size: 16px;
  font-weight: bold;
}

.points-value-real {
  color: #ffd700;
}

/* Mastery Stats Panel */
.mastery-stats-panel-real {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  width: 280px;
  float: right;
  margin-top: 15px;
  margin-right: 0;
  clear: right;
}

.presets-panel-real {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 15px;
  width: 280px;
  float: right;
  margin-top: -10px;
  margin-right: 0;
}

.presets-panel-real h3 {
  color: #ffd700;
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 12px 0;
  text-align: center;
}

.presets-controls-real {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.presets-controls-real select {
  background: #222;
  color: #ffd700;
  border: 1px solid #555;
  padding: 8px 10px;
  border-radius: 4px;
}

.preset-buttons-real {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preset-buttons-real button {
  width: 100%;
  padding: 8px 12px !important;
  font-size: 12px !important;
}

.mastery-stats-panel-real h3 {
  color: #ffd700;
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 15px 0;
  text-align: center;
}

.stats-content-real {
  max-height: 200px;
  overflow-y: auto;
}

.stat-row-real {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #333;
}

.stat-row-real:last-child {
  border-bottom: none;
}

.stat-name-real {
  color: #ffd700;
  font-size: 14px;
  font-weight: normal;
}

.stat-value-real {
  color: #ffd700;
  font-size: 14px;
  font-weight: bold;
}

.no-stats-real {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* Category Tabs */
.overlord-tabs-real {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 2px;
}

.tab-real {
  background: #333;
  border: 1px solid #555;
  color: #ffd700;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  position: relative;
  transition: all 0.2s ease;
}

.tab-real:hover {
  background: #444;
}

.tab-real.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.tab-indicator {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #ffd700;
  border-radius: 50%;
}

/* Mastery Grid - Closer icons with thin yellow column separators */
.mastery-grid-real {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 20px 12px; /* vertical gap: 20px (increased), horizontal gap: 12px (same) */
  margin-top: 20px;
  width: 100%;
  max-width: 600px;
  position: relative;
}


.mastery-column-real {
  display: contents; /* This allows the grid items to be direct children of the grid */
}

/* Edit Icon */
.edit-icon-real {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 18px;
  height: 18px;
  background: #333;
  border: 1px solid #ffd700;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.edit-icon-real:hover {
  background: #444;
  border-color: #ffed4e;
  opacity: 1;
  transform: scale(1.1);
}

.edit-icon-real i {
  color: #ffd700;
  font-size: 10px;
  transition: color 0.2s ease;
}

.edit-icon-real:hover i {
  color: #ffed4e;
}

.mastery-node-real {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 2px solid #444;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  width: 120px;
  height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: default;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.mastery-node-real:hover {
  border-color: #666;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.mastery-node-real.clickable {
  cursor: pointer;
}

.mastery-node-real.clickable:hover {
  border-color: #4da8ff;
  background: linear-gradient(135deg, #2a3a4a 0%, #1a2a3a 100%);
  box-shadow: 0 4px 12px rgba(77, 168, 255, 0.3);
}

.mastery-node-real.active {
  border-color: #ffd700;
  background: linear-gradient(135deg, #3a3a2a 0%, #2a2a1a 100%);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.mastery-node-real.locked {
  opacity: 0.5;
  border-color: #333;
  background: #1a1a1a;
}

.mastery-node-real.empty {
  background: transparent;
  border: 2px dashed #333;
  opacity: 0.3;
}

.level-indicator-real {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: bold;
  z-index: 2;
}

.level-requirement-real {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(255, 215, 0, 0.9);
  color: #000;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: bold;
  z-index: 2;
}

.skill-icon-real {
  width: 65px;
  height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  position: relative;
}

.skill-icon-real img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.skill-icon-real .icon-fallback {
  font-size: 28px;
  color: #ffd700;
}

.skill-value-real {
  color: #ffd700;
  font-size: 15px;
  font-weight: bold;
  margin: 3px 0;
  line-height: 1;
}

.skill-name-real {
  color: #ffd700;
  font-size: 12px;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  word-wrap: break-word;
  max-width: 100%;
  margin-bottom: 6px;
}

.point-cost-real {
  display: none; /* Hide point cost text as requested */
}


/* Bulk Modal Styles */
.bulk-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.bulk-modal {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 24px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bulk-modal h3 {
  color: #ffd700;
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 20px 0;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bulk-modal-content {
  margin-bottom: 20px;
}

.bulk-modal-info {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.bulk-modal-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.bulk-modal-info-row:last-child {
  margin-bottom: 0;
}

.bulk-modal-label {
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
}

.bulk-modal-value {
  color: #ffd700;
  font-size: 14px;
  font-weight: bold;
}

.bulk-modal-input {
  width: 100%;
  padding: 14px;
  background: #333;
  border: 2px solid #555;
  border-radius: 8px;
  color: #ffd700;
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.bulk-modal-input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  background: #3a3a3a;
}

.bulk-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.bulk-modal-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bulk-modal-btn-primary {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: 1px solid #28a745;
}

.bulk-modal-btn-primary:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.bulk-modal-btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  border: 1px solid #6c757d;
}

.bulk-modal-btn-secondary:hover {
  background: linear-gradient(135deg, #545b62 0%, #343a40 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .mastery-stats-panel-real {
    width: 250px;
  }
  
  .mastery-grid-real {
    max-width: 550px;
  }
}

@media (max-width: 768px) {
  .overlord-header-real {
    flex-direction: column;
    gap: 15px;
  }
  
  .overlord-controls-real {
    flex-direction: column;
    gap: 10px;
  }
  
  .mastery-stats-panel-real {
    width: 100%;
    float: none;
    margin-top: 0;
  }
  
  .mastery-grid-real {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    max-width: 400px;
    gap: 6px 8px; /* Maintain gap for thin lines */
  }
  
  .mastery-node-real {
    width: 110px;
    height: 130px;
    padding: 10px;
  }
  
  .skill-icon-real {
    width: 55px;
    height: 55px;
  }
  
  .skill-icon-real img {
    width: 55px;
    height: 55px;
  }
  
  .skill-name-real {
    font-size: 11px;
  }
  
  .skill-value-real {
    font-size: 13px;
  }
  
  .level-indicator-real,
  .level-requirement-real {
    font-size: 9px;
    padding: 2px 3px;
  }
}

@media (max-width: 480px) {
  .mastery-grid-real {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    max-width: 320px;
    gap: 4px 6px; /* Maintain gap for thin lines */
  }
  
  .mastery-node-real {
    width: 100px;
    height: 120px;
    padding: 8px;
  }
  
  .skill-icon-real {
    width: 50px;
    height: 50px;
  }
  
  .skill-icon-real img {
    width: 50px;
    height: 50px;
  }
  
  .skill-name-real {
    font-size: 10px;
  }
  
  .skill-value-real {
    font-size: 12px;
  }
  
  .level-indicator-real,
  .level-requirement-real {
    font-size: 8px;
    padding: 1px 2px;
  }
  
  .overlord-mastery-real {
    padding: 15px;
  }
}

/* Animation for skill upgrades */
@keyframes skillUpgrade {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.mastery-node-real.upgrading {
  animation: skillUpgrade 0.3s ease;
}

/* Scrollbar styling for stats panel */
.stats-content-real::-webkit-scrollbar {
  width: 6px;
}

.stats-content-real::-webkit-scrollbar-track {
  background: #333;
  border-radius: 3px;
}

.stats-content-real::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 3px;
}

.stats-content-real::-webkit-scrollbar-thumb:hover {
  background: #888;
}
