/* Minimal styles for Profile Modal, Panel and Gate (Du-Form) */

.szbt-modal-open { overflow: hidden; }

.szbt-profile-modal.hidden { display: none; }
.szbt-profile-modal .szbt-modal {
  position: fixed; inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 92vw);
  background: #fff; color: #111; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  z-index: 100000;
}
.szbt-profile-modal .szbt-modal__header { padding: 16px 20px; border-bottom: 1px solid #eee; }
.szbt-profile-modal .szbt-modal__body   { padding: 20px; }
.szbt-profile-modal .szbt-modal__footer { padding: 14px 20px; border-top: 1px solid #eee; display: flex; gap: 8px; justify-content: flex-end; }
.szbt-profile-modal .szbt-modal__backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 99999;
}

.szbt-form__row { margin-bottom: 14px; }
.szbt-inline { display: flex; align-items: center; gap: 10px; }
.szbt-help { color: #666; }

.szbt-form__error { color: #b00020; margin-top: 6px; }
.hidden { display: none !important; }

.szbt-btn { appearance: none; border: 1px solid #ccc; background: #fafafa; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.szbt-btn:hover { background: #f0f0f0; }
.szbt-btn-primary { border-color: #0a66c2; background: #0a66c2; color: #fff; }
.szbt-btn-primary:hover { background: #095cad; }

.szbt-panel { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 12px; margin: 12px 0; }
.szbt-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.szbt-panel__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.szbt-panel__grid label { display: grid; gap: 6px; font-size: 14px; }
.szbt-panel__save { display: flex; align-items: end; gap: 10px; }

.szbt-file { display: inline-flex; align-items: center; gap: 8px; }

.szbt-gate.hidden { display: none; }
.szbt-gate { border: 1px dashed #bbb; border-radius: 12px; padding: 16px; margin: 12px 0; background: #fcfcfc; }
.szbt-gate__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.szbt-gate h3 { margin: 0; font-size: 18px; }

/* === Slider UI (Profile) === */
.szbt-range {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .5rem .75rem;
  align-items: center;
}
.szbt-range input[type="range"] {
  width: 100%;
}
.szbt-range output {
  min-width: 3.5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.szbt-range .szbt-unit {
  opacity: .8;
  margin-left: .15rem;
}
.szbt-range .szbt-mph {
  grid-column: 2 / span 2;
  font-size: .85em;
  opacity: .8;
}
/* Panel-Save-Block deaktivieren, falls Alt-Markup noch irgendwo existiert */
.szbt-panel__save,
button[data-save] { display: none !important; }

.szbt-row--selectors{
  display:flex; gap:12px; flex-wrap:wrap; align-items:center;
}
.szbt-field{ display:block; margin-top:10px; }
.szbt-label{ display:block; font-weight:600; margin-bottom:6px; }
.szbt-range{ display:flex; align-items:center; gap:8px; }
.szbt-range input[type=range]{ flex:1; }
.szbt-range .szbt-unit, .szbt-mph{ margin-left:4px; }

/* Spielerprofil-Header an "Mein Arsenal" angleichen */
#szbt-profile-panel .szbt-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

#szbt-profile-panel .szbt-panel__header h3 {
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}

/* === Spielstil-Cards (Stroker / Tweener / Cranker) === */
.szbt-style-block {
  margin-top: 8px;
  margin-bottom: 10px;
}

.szbt-style-select--hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.szbt-style-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.szbt-style-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease,
    transform .15s ease;
  transform: translateY(0);
}

/* Hover / Fokus: leicht anheben und Schatten */
.szbt-style-card:hover,
.szbt-style-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

/* Aktive Card bleibt optisch hervorgehoben */
.szbt-style-card.is-active {
  border-color: #0a66c2;
  box-shadow: 0 0 0 2px rgba(10, 102, 194, .15);
  background: #f0f6ff;
}

.szbt-style-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 8px;
}

.szbt-style-card__title {
  font-weight: 600;
  margin-bottom: 4px;
}

.szbt-style-card__meta {
  font-size: .85em;
  color: #555;
  margin-bottom: 4px;
}

.szbt-style-card__text {
  font-size: .85em;
  color: #666;
}

.szbt-style-card.is-active {
  border-color: #0a66c2;
  box-shadow: 0 0 0 2px rgba(10, 102, 194, .15);
  background: #f0f6ff;
}

.szbt-style-legend {
  font-size: .85em;
  color: #666;
  margin-top: 6px;
}

/* Style-Cards: kleinere Bilder */
.szbt-style-card img {
  width: 100px;       /* vorher ~150px → jetzt ~50% */
  height: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .szbt-style-card img {
    width: 55px;
  }
}

/* === Mobile-Tuning für Spielstil-Cards (Panel + Modal) === */

/* Tablet & normales Handy: zwei Spalten, kompaktere Cards */
@media (max-width: 768px) {
  .szbt-style-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .szbt-style-card {
    padding: 8px;
    border-radius: 10px;
  }

  .szbt-style-card__title {
    font-size: 0.9rem;
  }

  .szbt-style-card__meta,
  .szbt-style-card__text {
    font-size: 0.8rem;
  }

  .szbt-style-card img {
    width: 70px;
    margin-bottom: 6px;
  }
}

/* Sehr kleine Smartphones: eine Spalte, noch kompakter */
@media (max-width: 480px) {
  .szbt-style-cards {
    grid-template-columns: 1fr;
  }

  .szbt-style-card img {
    width: 60px;
  }
}

/* Tap-Feedback ähnlich wie Hover – auch auf Touch */
.szbt-style-card:active {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

/* Auf echten Touch-Geräten Hover-Effekt deaktivieren, damit nichts "klebt" */
@media (hover: none) {
  .szbt-style-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Active-State deutlicher hervorheben (gilt überall, Desktop + Mobile) */
.szbt-style-card.is-active {
  border-color: #0a66c2;
  background: #f0f6ff;
  box-shadow: 0 0 0 2px rgba(10, 102, 194, .2);
}
