/* ===================================================================
   ADDITIONAL MULTIPLES STYLING
   Für Triple + Double Events etc.
   =================================================================== */

.additional-multiples {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 200, 50, 0.1);
  border: 1px dashed var(--gold, #d4af37);
  border-radius: 8px;
}

.additional-multiples h5 {
  margin: 0 0 10px 0;
  color: var(--gold, #d4af37);
  font-size: 0.9rem;
}

.additional-multiple-event {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.additional-multiple-event:last-child {
  margin-bottom: 0;
}

.additional-multiple-event .event-badge.secondary {
  background: var(--gold, #d4af37);
  color: #1a1a1a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-right: 8px;
}

.additional-multiple-event .event-name {
  color: #fff;
  font-weight: 600;
}

.additional-multiple-event .event-description.small {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 5px;
}

/* Injury Display Enhancement im Roster */
.field-val.skills.has-injury-text {
  color: #ff6b6b;
}

.field-val.skills .injury-line {
  display: block;
  color: #ff6b6b;
  font-style: italic;
}

/* ===================================================================
   MUTATIONS MODAL STYLING
   Größeres Modal mit Kosten-Anzeige und Eskalation
   =================================================================== */

.mutation-selection-container {
  max-height: 60vh;
  overflow-y: auto;
}

.mutation-cost-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  margin-bottom: 15px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #d8b4fe;
}

.mutation-cost-info.first-mutation {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.mutation-cost-info .info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.mutation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.mutation-option {
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mutation-option:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

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

.mutation-name {
  font-weight: bold;
  color: #d8b4fe;
  font-size: 1rem;
}

.mutation-cost {
  font-size: 0.85rem;
}

.mutation-cost .cost {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold, #d4af37);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.mutation-cost .cost.doubled {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.mutation-cost .cost-note {
  font-size: 0.75rem;
  color: #888;
  margin-left: 5px;
}

.mutation-desc {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.4;
}

.no-mutations {
  text-align: center;
  padding: 30px;
  color: #888;
}

/* Modal Größe für Mutations-Auswahl anpassen */
.modal-content:has(.mutation-selection-container) {
  max-width: 700px !important;
}

/* ===================================================================
   SPELL SELECTION STYLING (konsistent mit Mutations)
   =================================================================== */

/* ===================================================================
   SPELL SELECTION WITH D6 SYSTEM
   Zauber-Auswahl mit Würfel-Tabelle
   =================================================================== */

.spell-selection-container {
  max-height: 70vh;
  overflow-y: auto;
}

/* Info-Box über Würfel-System */
.spell-roll-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 15px;
  margin-bottom: 15px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
}

.spell-roll-info .info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.spell-roll-info .info-text {
  font-size: 0.9rem;
  color: #93c5fd;
  line-height: 1.4;
}

.spell-roll-info .info-note {
  color: #888;
  font-size: 0.85rem;
}

/* Zauber-Tabelle mit D6-Zuordnung */
.spell-roll-table {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.spell-roll-table.lesser {
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.spell-table-row {
  display: grid;
  grid-template-columns: 40px 1fr 70px;
  gap: 10px;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.spell-table-row:last-child {
  border-bottom: none;
}

.spell-table-row:hover {
  background: rgba(96, 165, 250, 0.1);
}

.spell-table-row.highlighted {
  background: rgba(96, 165, 250, 0.25);
  border-color: #60a5fa;
}

.spell-roll-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid #60a5fa;
  border-radius: 4px;
  font-weight: bold;
  color: #60a5fa;
  font-size: 0.9rem;
}

.spell-table-name {
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.spell-table-diff {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.spell-table-diff.easy {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.spell-table-diff.medium {
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
}

.spell-table-diff.hard {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* D6-Eingabe Section */
.spell-dice-section {
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.spell-dice-section h4 {
  margin: 0 0 12px 0;
  color: #60a5fa;
  font-size: 1rem;
}

.spell-dice-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.spell-dice-input {
  width: 70px;
  padding: 10px 15px;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(96, 165, 250, 0.5);
  border-radius: 8px;
  color: #fff;
}

.spell-dice-input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.spell-dice-input::placeholder {
  color: #666;
}

/* Direkt-Auswahl Section */
.spell-direct-section {
  text-align: center;
  margin-bottom: 15px;
}

.direct-select-note {
  color: #666;
  font-size: 0.85rem;
  margin: 10px 0;
}

/* Lesser Magic Section */
.lesser-magic-section {
  text-align: center;
  padding-top: 10px;
  border-top: 1px dashed rgba(168, 85, 247, 0.3);
  margin-top: 10px;
}

/* Zauber-Ergebnis Anzeige */
.spell-result {
  text-align: center;
}

.spell-roll-display {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(96, 165, 250, 0.2);
  border: 2px solid #60a5fa;
  border-radius: 12px;
  padding: 10px 20px;
  margin-bottom: 20px;
}

.spell-roll-display .roll-label {
  color: #93c5fd;
  font-size: 0.9rem;
}

.spell-roll-display .roll-value {
  font-size: 2rem;
  font-weight: bold;
  color: #60a5fa;
}

/* Zauber-Karte (groß) */
.spell-card.large {
  background: rgba(30, 30, 40, 0.9);
  border: 2px solid rgba(96, 165, 250, 0.5);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.spell-card .spell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.spell-card .spell-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #93c5fd;
}

.spell-card .spell-difficulty {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
}

.spell-card .spell-difficulty.easy {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.spell-card .spell-difficulty.medium {
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.spell-card .spell-difficulty.hard {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.spell-card .spell-description {
  color: #ccc;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Bestätigungs-Buttons */
.spell-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.spell-confirm-actions .btn-large {
  padding: 12px 25px;
  font-size: 1rem;
}

/* Direkte Zauber-Auswahl Grid */
.spell-direct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: 50vh;
  overflow-y: auto;
  margin-bottom: 15px;
}

.spell-option {
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spell-option:hover {
  background: rgba(96, 165, 250, 0.2);
  border-color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.spell-option .spell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.spell-option .spell-name {
  font-weight: bold;
  color: #93c5fd;
  font-size: 0.95rem;
}

.spell-option .spell-difficulty {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.spell-option .spell-description {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.4;
}

/* Bereits gelernt - Warnung */
.spell-already-learned {
  text-align: center;
  padding: 20px;
}

.spell-already-learned h3 {
  margin-bottom: 15px;
}

.reroll-options {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Keine Zauber mehr */
.spell-selection-empty {
  text-align: center;
  padding: 30px;
}

.no-spells-message {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.no-spells-message p:first-child {
  color: #86efac;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Modal Größe für Zauber-Auswahl */
.modal-content:has(.spell-selection-container),
.modal-content:has(.spell-direct-selection),
.modal-content:has(.lesser-magic-selection) {
  max-width: 600px !important;
}
