/* Container für den Bereich "Mein Bereich" */
.member-modal-content {
  position: relative;
  display: flex;
  height: auto;
  width: 100vw;
  background: whitesmoke;
  overflow-y: auto; 
  overflow-x: hidden;
}

.member-modal-content-wrapper {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100vh;
  width: 75%;
  margin: auto;
  background: whitesmoke;
}

.member-modal-header{
  display: flex;
  height: 100px;
  width: 100vw;
  top: 0px;
  left: 0px;
  position: fixed;
  background: rgba(128,128,128,0.6);
  justify-content: center;
  z-index: 3;
}

.member-modal-header-nav{
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 75%;
  background: transparent;
  margin: auto;
  align-items: flex-end;
}

#member-modal-status-bar{
  display: flex;
  width: auto;
  font-size: clamp(1rem, 1.0vw, 1.8rem);
  letter-spacing: 0.2rem;
  font-weight: 300;
  color: black;
  padding: 5px 0px;
}

#member-modal-status-bar strong {
  font-weight: 600;
  margin-left: 8px;
  color: white;
}

.member-modal-section{
  display: flex;
  flex-shrink: 0;
  width: 100%;
  height: calc(100vh - 200px);
  border: none;
  box-sizing: border-box;
  background: white;
  padding: 20px;
  margin: 100px 0px;
}

.member-modal-nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-left: auto;
  align-items: center;
  padding: 5px;
}

.memberNavMenuItem {
  text-decoration: none;
  color: white;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.5s ease;
}

.memberNavMenuItem:hover {
  color: lightgray;
}

.member-section-title {
  font-size: 2.5rem;
  font-weight: 200;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: black;
  text-align: center;
}

#member-modal-section-upload {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: auto;                       
  min-height: calc(100vh - 200px);    
  overflow: visible;
  box-sizing: border-box;
}

.upload-input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

.upload-input-group label {
  font-size: 0.9rem;
  color: gray;
  margin-bottom: 8px;
}

.upload-input-group select {
  padding: 12px;
  border: 1px solid lightgray;
  border-radius: 2px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.3s;
  background: white;
  width: 250px;
  text-align: center;
  text-align-last: center;
}

.upload-input-group select:focus {
  border-color: gray;
}

.upload-input-group select option {
  text-align: center;
}

.upload-button-group {
  display: flex;
  gap: 15px; /* Abstand zwischen den Buttons */
  margin-top: 20px;
  width: 100%;
}

/* Button-Styling analog zum Login-Button */
.member-submit-btn {
  flex: 1; /* Teilt sich den Platz */
  padding: 12px;
  background: black;
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Poppins', sans-serif;
}

.member-submit-btn:hover {
  background: #333;
}

.member-cancel-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  color: gray;
  border: 1px solid lightgray;
  border-radius: 2px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Poppins', sans-serif;
}

.member-cancel-btn:hover {
  background: whitesmoke;
  color: black;
  border-color: gray;
}

/* Container-Struktur für die Member-Galerie */
.member-gallery-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.member-highlights-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.member-gallery-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.member-gallery-swiper-container {
  flex: 1;
  width: 100%;
  height: calc(100% - 80px);
  overflow: hidden;
  background: black;
  border-radius: 4px;
}

#memberGallerySwiper {
  width: 100%;
  height: 100%;
}

/* Ausblenden der Swiper-Pagination-Punkte */
#memberGallerySwiper .swiper-pagination {
  display: none !important;
}

/* ======================================================================================================================
   Member-Galerie Swiper-Slides & Bild-Wrapper
   ====================================================================================================================== */

/* ======================================================================================================================
   Member-Galerie Swiper-Slides & Bild-Wrapper
   ====================================================================================================================== */

.member-gallery-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 10px;
}

/* Wrapper nimmt 100% der Slide-Höhe ein */
.member-gallery-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

/* Bild wird durch margin: auto vertikal im Raum über der Info-Box zentriert */
.member-gallery-image-wrapper img {
  max-width: 100%;
  max-height: calc(100% - 55px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 1;
  border-radius: 4px;
  min-height: 0;
  margin-top: auto;    /* Zentriert das Bild vertikal */
  margin-bottom: auto; /* im verbleibenden Raum oben/unten */
}

/* Info-Box fixiert sich am untersten Rand des Wrappers */
.member-gallery-slide-info {
  position: relative;
  flex-shrink: 0;      /* Verhindert Zusammenstauchen */
  box-sizing: border-box;
  background: whitesmoke;
  color: #5b5b5b;
  padding: 10px 15px;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: auto;
  transition: width 0.1s ease-out; /* Dynamische Breite wird weiterhin vom ResizeObserver gesteuert */
}

/* Bildinformationen bei > 1000px zentriert */
.member-gallery-slide-info-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  font-size: 1rem;
}

/* Container für die Aktionsbuttons (Herz & Bearbeiten) */
.member-gallery-slide-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Herzbutton Styling */
.like-gallery-img-btn {
  background: rgba(255, 255, 255, 0.5);
  color: black;
  border: none;
  border-radius: 4px;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.3s, transform 0.2s, color 0.3s;
  gap: 5px;
}

.like-gallery-img-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: #ff4757;
  transform: scale(1.05);
}

.like-count {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

#edit-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.7);
    animation: modalOpen 0.3s ease-out forwards;
}

.edit-gallery-img-btn {
  background: rgba(255, 255, 255, 0.5);
  color: black;
  border: none;
  border-radius: 4px;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.3s, transform 0.2s, color 0.3s;
}

.edit-gallery-img-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: black;
  transform: scale(1.05);
}

#edit-image-delete-btn {
  color: #ff4757;
  border-color: #ff4757;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#edit-image-delete-btn:hover {
  background-color: #ff4757;
  color: white !important;
  border-color: #ff4757;
}

/* Container-Wrapper für den Upload-Bereich */
.member-upload-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* 2-Spalten Grid auf Desktop */
.upload-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* Interaktive Drag & Drop Zone */
.upload-dropzone {
  position: relative;
  border: 2px dashed #ccc;
  border-radius: 4px;
  padding: 30px 20px;
  text-align: center;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
  margin-bottom: 25px;
}

.upload-dropzone:hover {
  border-color: #333;
  background-color: #f9f9f9;
}

.upload-dropzone i {
  font-size: 2.5rem;
  color: #666;
  margin-bottom: 10px;
  display: block;
}

.upload-dropzone p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

.upload-dropzone p span {
  text-decoration: underline;
  font-weight: 500;
}

.upload-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Rechte Spalte: Sidebar & Cards */
.upload-sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upload-card {
  background: whitesmoke;
  padding: 25px 30px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.upload-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-guidelines-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.upload-guidelines-list li {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.upload-guidelines-list li i {
  color: #2ed573;
  margin-top: 3px;
}

/* Vorschau-Karte */
.preview-image-wrapper {
  width: 100%;
  max-height: 250px;
  overflow: hidden;
  border-radius: 4px;
  background: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-image-wrapper img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
}

/* Dynamische Icon-Farben für die Richtlinien */
.upload-guidelines-list li i.status-valid {
    color: #2ed573 !important; /* Grüner Haken */
}

.upload-guidelines-list li i.status-invalid {
    color: #ff4757 !important; /* Rotes Kreuz */
}

.upload-guidelines-list li i.status-neutral {
    color: #b0b0b0 !important; /* Neutrales Grau */
}

.upload-guidelines-list li i.status-info {
    color: #707070 !important; /* Neutrales Dunkelgrau */
}

/* Deaktivierter Upload-Button */
.member-submit-btn:disabled {
    background: #cccccc !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ======================================================================================================================
   Highlights Section (Sub-Tabs & Layouts)
   ====================================================================================================================== */

.highlights-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

.highlights-header .member-section-title {
    margin-bottom: 0;
}

/* Tab-Umschalter Leiste */
.highlights-subnav {
    display: flex;
    gap: 8px;
    background: #e8e8e8;
    padding: 4px;
    border-radius: 30px;
}

.highlights-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.highlights-tab-btn:hover {
    color: #000;
}

.highlights-tab-btn.active {
    background: #ffffff;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Content Container Umschaltung */
.highlights-tab-content {
    display: none;
    width: 100%;
    flex: 1;
    flex-direction: column;
}

.highlights-tab-content.active {
    display: flex;
}

/* Status- und Filterleisten */
.highlights-voting-status-bar,
.hall-of-fame-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: whitesmoke;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #333;
}

.hof-select {
    padding: 6px 14px;
    border: 1px solid lightgray;
    border-radius: 4px;
    background: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.highlights-content-area {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.highlights-placeholder-text {
    color: #888;
    text-align: center;
    padding: 50px 0;
    font-style: italic;
    font-size: 1rem;
}

/* ======================================================================================================================
   Highlights: Aktuelle Wahl (2-Spalten Grid)
   ====================================================================================================================== */

.highlights-voting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
}

.voting-column-card {
    background: whitesmoke;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.voting-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.voting-column-header h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #222;
}

.voting-info-text {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

.voting-badge {
    background: #000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.voting-badge.year-badge {
    background: black; /* Goldene Akzentfarbe für das Jahr */
    color: white;
}

.voting-column-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

/* ======================================================================================================================
   Highlights: Ranking-Karten & Platzierungen
   ====================================================================================================================== */

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Basiskarte für jeden Rang */
.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Platz 1: Gold / Crown Highlight */
.ranking-item.rank-1 {
    border: 2px solid #d4af37;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
    padding: 14px 16px;
}

/* Platz 2: Silber */
.ranking-item.rank-2 {
    border: 1.5px solid #c0c0c0;
}

/* Platz 3: Bronze */
.ranking-item.rank-3 {
    border: 1.5px solid #cd7f32;
}

/* Rang-Badge (1, 2, 3...) */
.ranking-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-1 .ranking-badge {
    background: #d4af37;
    color: #ffffff;
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
}

.rank-2 .ranking-badge { background: #c0c0c0; color: #fff; }
.rank-3 .ranking-badge { background: #cd7f32; color: #fff; }

/* Vorschaubild */
.ranking-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #222;
}

.rank-1 .ranking-thumb {
    width: 65px;
    height: 65px;
}

.ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Titel & Autor */
.ranking-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; /* Verhindert Text-Überlauf */
}

.ranking-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-1 .ranking-title {
    font-size: 1rem;
}

.ranking-author {
    font-size: 0.8rem;
    color: #777;
    margin-top: 2px;
}

/* Like-Anzeige rechts */
.ranking-likes {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff4757;
    background: #fff5f5;
    padding: 6px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.ranking-likes span{
    color: black;
}

.rank-1 .ranking-likes {
    font-size: 1rem;
    padding: 8px 14px;
}

#member-modal-section-highlights {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: auto;                       
  min-height: calc(100vh - 200px);    
  overflow: visible;
  box-sizing: border-box;
}

/* Ranking-Items klickbar machen */
.ranking-item {
    cursor: pointer;
}

/* Fullscreen Overlay für Highlights Bildvorschau */
#highlights-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 200000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.highlights-modal-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#highlights-modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.highlights-modal-info {
    color: white;
    margin-top: 15px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.highlights-modal-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.highlights-modal-info h3 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.highlights-modal-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

#highlights-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

#highlights-modal-close:hover {
    color: #ff4757;
}

@media screen and (max-width: 1000px){

  #memberGallerySwiper .swiper-button-next,
  #memberGallerySwiper .swiper-button-prev {
    display: none !important;
  }

  .member-modal-content-wrapper{
    width: 100%;
  }
  
  .member-modal-header-nav{
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  
  .member-modal-section{
    height: calc(100vh - 100px);
    margin: 100px 0px 0px 0px;
  }
  
  #member-modal-section-upload {
    min-height: calc(100vh - 100px);
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  #member-modal-status-bar{
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .member-modal-nav-links {
    margin-left: 0;
    margin-top: 10px;
    gap: 20px;
  }
  
  .member-gallery-header {
    flex-direction: column;
    gap: 15px;
  }

  .member-gallery-slide-info {
    font-size: 0.9rem;
  }

  /* Bildinformationen bei <= 1000px linksbündig */
  .member-gallery-slide-info-text {
    align-items: flex-start;
    text-align: left;
  }

  .upload-grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .upload-form-container {
    padding: 20px;
  }
  
  .highlights-voting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
