
/* =============================
   Fightcard Optimiertes Layout
   ============================= */

/* Gesamtcontainer breiter zentriert */
#fightcard-container {
  width: 90vw;
  margin: 0 auto;
}

ul.fm-fc-pair-list {
  padding: 0;
}

/* Paarungszeile – Desktop: 3 Spalten */
.fm-fc-pair-list > li,
.fm-fc-pair-list > li.has-title {
  background: #000000;
  color: #fff;
  margin-bottom: 2.5rem;
  border-radius: 5px;
  padding: 1vh 0.5vw 0;
  display: flex;
  align-items: flex-end;
  position: relative;
  width: 100%;
  justify-content: space-around;
  max-height: 30vh;
  margin-bottom: 15vh;
}

/* Fightcard Titel*/
.fm-fc-section-title {
  display: none;
}

/* Fighter Spalten */
.fm-fighter-a,
.fm-fighter-b {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 20vw;
}

.fm-fighter-box {
  display: flex;
  flex-direction: row-reverse;
}

.fm-fighter-b .fm-fighter-box {
  flex-direction: row;
}

.fm-fighter-img {
  width: 12vw;
}

.fm-fighter-country {
  margin: auto 1vh;
  margin-top: 8vh;
}

.fm-fighter-country svg {
  width: 4vw;
  height: auto;
}

/* Mitte: Gewichtsklasse, VS, Namen, Titel */
.fm-fc-center {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  flex-direction: row;
  width: 60vw;
  height: 30vh;
  align-content: flex-start;
}

.fm-fc-weight {
  width: 100%;
  font-size: 1.5vw;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
}

.fm-fc-name {
  width: calc(100% / 3 + 3vw);
  max-width: calc(100% / 3 + 3vw);
  max-height: 4vh;
  font-size: 1vw;
  white-space: normal;
  overflow-wrap: break-word;
  background-color: #7E0024;
  font-weight: normal;
  position: relative;
  top: 2vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fm-fc-weight,
.fm-fc-name {
  margin: 0.3rem 0;
  font-family: 'Born Strong Black';
}

.fm-fc-vs {
  width: calc(100% / 3 - 10vw);
  max-width: calc(100% / 3 - 10vw);
  top: 8vh;
  position: relative;
}

.fm-fc-vs-label {
  font-size: 2.5vw;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-align: center;
  border-top: 1vh solid #7e0024;
  border-bottom: 1vh solid #7e0024;
  font-family: 'Ash';
  padding-top: 0.6vh;
}

.fm-fc-type-header {
  background: #7e0024;
  color: #fff;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 4px;
  width: auto;
  position: absolute;
  bottom: 1vh;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
  .single-event .fm-event-title {
    font-size: 4.5vw;
  }

  #fightcard-container {
    width: 96vw;
  }

  .fm-fc-pair-list > li, .fm-fc-pair-list > li.has-title {
    max-height: 27vh;
    margin-bottom: 3vh;
  }

  .fm-fighter-a, .fm-fighter-b {
    width: 26vw;
  }

  .fm-fighter .fm-fighter-box {
    flex-direction: column;
  }

  .fm-fighter-img {
    border-bottom: 1px solid #fff;
    width: 100%;
  }

  .fm-fighter-country {
    margin: unset;
    margin-top: 1vh;
    display: flex;
    justify-content: flex-start;
    height: 3vh;
    font-size: 1.5vw;
    overflow: hidden;
    text-align: start;
    align-items: center;
    gap: 2vw;
    hyphens: auto;
    font-weight: 700;
    text-transform: uppercase;
  }

  .fm-fighter-a .fm-fighter-country {
    margin-left: 0;
  }

  .fm-fighter-b .fm-fighter-country {
    margin-right: 0;
    flex-direction: row-reverse;
    hyphens: auto;
  }

  .fm-fighter-country svg {
    width: 5vw;
  }

  .fm-fc-center {
    width: 44vw;
    height: 27vh;
  }

  .fm-fc-weight, .fm-fc-name, .fm-fc-vs span {
    white-space: normal;
    width: 100%;
    max-width: unset;
    font-size: 2vw;
    font-weight: 700;
    font-family: 'Open Sans';
    text-transform: uppercase;
    padding: 3%;
    background: transparent;
    top: unset;
    hyphens: auto;
    word-break: break-word;
  }

  .fm-fc-weight {
    margin-bottom: 3vh;
    font-size: 3vw;
    background: #7E0024;
  }

  .fm-fc-vs {
    width: 100%;
    max-width: unset;
    top: 0vh;
  }

  .fm-fc-vs span {
    border: unset;
    font-weight: normal;
    font-size: 3vw;
  }

  .fm-fc-type-header {
    font-size: 2.8vw;
  }
}

/* --------------------------------------------
   Sektion-Banner (Fightcard-Bereich)
   -------------------------------------------- */
.fm-fc-section-banner {
  margin-bottom: 2rem;
  text-align: center;
}
.fm-fc-section-banner img {
  max-width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* --------------------------------------------
   Event-Banner
   -------------------------------------------- */
.fm-event-banner {
  margin-bottom: 3rem;
  text-align: center;
}
.fm-event-banner img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------
   Event-Info (unterhalb des Banners)
   -------------------------------------------- */
.fm-event-info {
  margin-bottom: 3rem;
  text-align: center;
}
.fm-event-info .fm-event-meta {
  font-size: 1.1rem;
  color: #333;
  margin-top: 1rem;
  line-height: 1.6;
}
.fm-event-info p {
  margin: 0.5rem 0;
}
.fm-event-info strong {
  font-weight: 600;
  color: #000;
}

/* --------------------------------------------
   Fighter Popup
   -------------------------------------------- */
#fm-fighter-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
}

.fm-fighter-popup-content {
    background: #fff;
    max-width: 500px;
    margin: 10% auto;
    padding: 20px;
    position: relative;
}

#fm-fighter-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.fm-fighter-popup-trigger {
    transition: transform 0.2s, box-shadow 0.2s;
}

.fm-fighter-popup-trigger:hover {
    transform: scale(1.05) translateY(-3%);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* --------------------------------------------
   Fighter Galerie
   -------------------------------------------- */

.fm-fighter-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.fm-fighter-gallery-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #111;
    padding: 20px;
    padding-bottom: 0;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    color: #fff;
    border: 4px solid #444;
}

.fm-fighter-gallery-image {
    flex: 0 0 200px;
    max-width: 200px;
}

.fm-fighter-gallery-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.fm-fighter-gallery-info {
    flex: 1;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fm-fighter-gallery-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.fm-fighter-gallery-info div {
    margin-bottom: 4px;
}

/* --------------------------------------------
   Upcoming Events
   -------------------------------------------- */

.upcoming-events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.upcoming-event-card {
    width: calc(100% / 4 - 1%);
    background: #1e1e1e;
    color: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

.upcoming-event-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.upcoming-event-content {
    padding: 15px;
    text-align: center;
}

.upcoming-event-logo img {
    max-width: 180px;
    height: auto;
    margin: 0 auto 10px;
}

.upcoming-event-date {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
}

.upcoming-event-location {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.upcoming-event-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-button {
    text-align: center;
    padding: 10px;
    font-weight: bold;
    background: #111;
    color: white;
    text-transform: uppercase;
    border-radius: 4px;
}

.event-button a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.event-button.red {
    background: #d11a1a;
}

.event-button.disabled {
    opacity: 0.5;
    pointer-events: none;
}


.next-event-gallery-swiper {
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.next-event-gallery-swiper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* =============================
   Fighter Seite Filter
   ============================= */

.fighter-filter-buttons {
    margin-bottom: 20px;
    text-align: center;
}

.fighter-filter-buttons button {
    padding: 10px 20px;
    background-color: #444; /* Dunkler Hintergrund */
    color: white;
    border: 1px solid #555;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.fighter-filter-buttons button:hover {
    background-color: #333; /* Etwas dunklerer Hover-Effekt */
}

.fighter-filter-buttons button:active {
    background-color: #222; /* Noch dunkler beim Klicken */
}

.fighter-filter-buttons button.active {
    background-color: #00A9E0; /* Aktiver Button in einer anderen Farbe */
    border-color: #007B8C; /* Border-Farbe für aktiven Button */
}
