/* 
 * BUNKERBANDITS Theme - Developed by Dennis Joest
 */
/* ===== Optimiert: media.css ===== */

.main-content {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Media Tabs */
.media-tabs {
  display: flex;
  justify-content: space-between;
  background-color: #313131;
  /* Dunkelgrau für Tabbalken */
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px;
  width: 100%;
  flex-wrap: wrap;
  gap: 4px;
  position: relative;
  z-index: 10;
}

.tab-button {
  flex: 1;
  min-width: fit-content;
  background-color: #313131;
  color: var(--color-text-dim);
  /* Gedimmte Farbe über Variable */
  border: none;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  /* Hauptschriftart über Variable */
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
}

.tab-button.active {
  background-color: var(--color-bg-black);
  /* Aktiver Tab wird schwarz */
  color: var(--color-text-white);
  /* Weißer Text über Variable */
}

.fa-solid {
  margin-right: 10px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Titles */
.section-title {
  font-size: 28px;
  color: var(--color-brand-orange);
  /* Sektionstitel in Band-Farbe */
  margin-top: 10px;
  margin-bottom: 30px;
  font-weight: 700;
  text-align: left;
}

/* Song / Media Box – Layout für alle Tabs (Musik, Videos, Fotos) */
.songs-section {
  background: linear-gradient(135deg, rgba(26, 24, 24, 0.05), rgba(44, 34, 27, 0.2));
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 14px;
  padding: 16px;
  margin-top: 10px;
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
}

/* Song List (nur Musik) */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.song-item {
  border: 1.5px solid var(--color-brand-orange);
  border-radius: 6px;
  padding: 18px 26px 16px 26px;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.song-item:hover {
  box-shadow: 0 12px 56px 6px rgba(255, 110, 50, 0.38),
    0 0 0 3.5px rgba(255, 94, 0, 0.13),
    0 0 32px 8px #ff6f38bb inset;
}

.song-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.song-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-white);
  /* Titel in Weiß über Variable */
  margin: 0 0 3px 0;
  text-align: left;
}

.song-album {
  font-size: 14px;
  color: var(--color-text-dim);
  /* Album-Info gedimmt */
  font-style: italic;
  margin: 0;
  text-align: left;
}

.song-duration {
  font-size: 16px;
  color: var(--color-brand-orange);
  /* Dauer in Akzentfarbe */
  font-weight: 600;
  margin-left: 40px;
  white-space: nowrap;
}

.song-player-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
  width: 100%;
}

.streaming-section {
  text-align: center;
}

.streaming-title {
  display: none;
  font-size: 20px;
  color: white;
  margin-bottom: 25px;
  font-weight: 600;
}

/* ============================================= */
/* 📷 FOTO-GALERIEN – Polaroid-Stapel           */
/* ============================================= */


.photo-gallery-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 260px);
  /* 2 größere Stapel */
  column-gap: 80px;
  row-gap: 32px;
  justify-content: center;
  justify-items: center;
}

@media (max-width: 768px) {
  .photo-gallery-grid {
    grid-template-columns: 1fr;
    width: 100%;
    column-gap: 0;
    row-gap: 40px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .polaroid-gallery {
    margin: 0 auto;
    width: 260px;
  }
}

/* Hauptseite bei offenem Overlay ausblenden (Header/Footer bleiben) */
.photo-overlay-open .page-viewport {
  opacity: 0;
  pointer-events: none;
}

/* gesamter Stapel gedreht – GRÖSSER + deutlichere Stapel-Optik */
.polaroid-gallery {
  position: relative;
  width: 260px;
  height: 310px;
  transform: rotate(-2deg);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.45),
    0 14px 28px rgba(0, 0, 0, 0.7);
}

/* Untere Polaroids im Stapel – klarere Rahmen + stärkere Versätze */
.polaroid-gallery::before,
.polaroid-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fdf9f3;
  border-radius: 0;
  border: 2px solid #f8ecda;
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.35),
    0 12px 26px rgba(0, 0, 0, 0.6);
  z-index: -2;
}

.polaroid-gallery::before {
  transform: translate(-16px, 12px) rotate(-7deg);
}

.polaroid-gallery::after {
  transform: translate(12px, -10px) rotate(5deg);
  z-index: -1;
}

/* oberstes Polaroid */
.polaroid {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fefdf9;
  padding: 14px 14px 30px;
  /* etwas mehr Weiß, klassischer Polaroid-Look */
  border-radius: 0;
  border: 3px solid #fdf9f3;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35),
    0 10px 22px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.polaroid-image {
  width: 100%;
  flex: 1 1 auto;
  overflow: hidden;
  border-radius: 0;
  background: #222222;
}

.polaroid-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

/* Entwicklerstreifen – Schrift ohne extra Hintergrund, wirkt wie Stift auf Papier */
.polaroid-caption {
  margin-top: 8px;
  padding: 4px 12px;
  text-align: center;
  font-size: 1.45rem;
  /* Increased size significantly */
  color: var(--color-brand-orange);
  /* Caption in Band-Farbe */
  font-weight: 400;
  /* Match the loaded font-face weight */
  font-family: var(--font-accent), cursive;
  /* Akzentschriftart für Handschrift-Look */
  text-shadow: 0 0 0.5px var(--color-brand-orange);
  /* Faux bold for better visibility */
  line-height: 1.2;
}

/* Hover: ganzer Stapel */
.polaroid-gallery:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.45),
    0 18px 36px rgba(0, 0, 0, 0.8);
}

/* ============================================= */
/* 📷 FOTO-OVERLAY / LIGHTBOX                    */
/* ============================================= */