/* General styles */
body {
  background-color: #111;
  color: #fff;
  font-family: 'Arial', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background blur effect */
.blur-bg {
  background-image: url('img/babysupaportada.png');
  background-size: cover;
  background-position: center;
  filter: blur(5px); /* Reduced blur for better mobile performance */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Logo styles */
.logo {
  filter: grayscale(100%);
}

/* Card styles (artist, release, video, founder, content) */
.artist-card, .release-card, .video-card, .founder-card, .content-card {
  backdrop-filter: blur(8px); /* Slightly reduced for mobile */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px; /* Slightly larger for modern look */
  pointer-events: auto;
  overflow: hidden; /* Prevent content overflow */
}

/* Infobox for artist profiles */
.infobox {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  width: 100%;
  max-width: 280px; /* Slightly smaller for mobile */
}

/* Release section gradient */
.release-section {
  background: linear-gradient(to bottom, rgba(139, 92, 0, 0.5), rgba(66, 44, 0, 0.5));
}

/* Hover scale effect */
.hover-scale:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Social icons */
.social-icon {
  color: #d4af37;
  transition: color 0.3s ease;
}
.social-icon:hover {
  color: #fff;
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem; /* Reduced padding for mobile */
  z-index: 100;
  display: none;
}
#cookie-banner.show {
  display: block;
}
#cookie-banner p {
  margin-bottom: 0.5rem;
}
#cookie-banner button {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  margin: 0.25rem;
  transition: all 0.3s ease;
}
#cookie-banner button:hover {
  background: #fff;
  color: #000;
}

/* Buttons for listening platforms and videos */
.listen-artist-button, .video-buttons button, .platform-buttons a {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listen-artist-button:hover, .video-buttons button:hover, .platform-buttons a:hover {
  background: #fff;
  color: #000;
}
.platform-buttons i {
  color: #d4af37;
  margin-right: 0.5rem;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 50;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px); /* Reduced for mobile */
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px; /* Reduced padding */
  border-radius: 10px;
  max-width: 95%; /* Almost full width on mobile */
  width: 500px;
  text-align: center;
}
#listen-modal-close, #modal-close {
  font-size: 1.75rem; /* Larger for easier tapping */
  cursor: pointer;
  float: right;
  color: #fff;
}

/* Badge and tooltip for artist profiles */
.badge-wrapper {
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  z-index: 30;
}
.tooltip {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.625rem;
  z-index: 50;
  border: 1px solid rgba(255, 255, 255, 0.2);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  max-width: 160px;
  min-height: 1.5rem;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.2;
  box-sizing: border-box;
}
.badge-wrapper:hover .tooltip,
.badge-wrapper.tooltip-active .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
  body {
    font-size: 14px; /* Smaller base font for better fit */
  }

  /* Cards */
  .artist-card, .release-card, .video-card, .content-card {
    padding: 0.5rem;
    margin: 0.5rem; /* Reduced margins for more content visibility */
    border-radius: 8px; /* Slightly smaller for mobile */
  }
  .artist-card img, .video-card iframe {
    height: 120px; /* Smaller images for mobile */
    width: 100%;
    object-fit: cover; /* Ensure images fit well */
  }
  .release-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Infobox */
  .infobox {
    max-width: 100%;
    padding: 0.5rem;
    font-size: 0.75rem; /* Smaller text for mobile */
  }

  /* Typography */
  h2 {
    font-size: 1.25rem; /* Smaller headings */
    margin: 0.5rem 0;
  }
  h3 {
    font-size: 1rem;
  }
  p, li, label, input, textarea, table {
    font-size: 0.75rem; /* Smaller text for better fit */
    line-height: 1.3; /* Tighter line height */
  }

  /* Cookie banner */
  #cookie-banner {
    padding: 0.5rem;
  }
  #cookie-banner p {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  #cookie-banner button {
    font-size: 0.875rem; /* Larger for touch */
    padding: 0.5rem 1rem;
    min-width: 100px; /* Ensure buttons are touch-friendly */
  }

  /* Navigation buttons (home and back) */
  #home-button, #back-button {
    width: 3.5rem; /* Larger for touch */
    height: 3.5rem;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Shadow for visibility */
    border-radius: 8px; /* Slightly larger for modern look */
  }
  #home-button i, #back-button i {
    font-size: 1.75rem; /* Larger icons */
    margin-right: 0;
  }

  /* Buttons for platforms and videos */
  .listen-artist-button, .video-buttons button, .platform-buttons a {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    min-width: 120px; /* Touch-friendly size */
  }

  /* Modal */
  .modal-content {
    width: 95%;
    padding: 10px;
    font-size: 0.75rem;
  }
  #listen-modal-close, #modal-close {
    font-size: 2rem; /* Larger for easier tapping */
  }

  /* Tooltip */
  .tooltip {
    display: none; /* Disabled on mobile to avoid clutter */
  }
  .badge-wrapper:hover .tooltip {
    display: none;
  }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
  .sm\:h-\[60vh\] {
    height: 90vh;
  }
  .artist-card img, .video-card iframe {
    height: 180px;
  }
  .release-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  p, li, label, input, textarea, table {
    font-size: 1rem;
  }
  #cookie-banner p {
    font-size: 1rem;
  }
  #home-button, #back-button {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5rem;
  }
  #home-button i, #back-button i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
  }
}

/* Desktop adjustments */
@media (min-width: 1025px) {
  .artist-card img, .video-card iframe {
    height: 200px;
  }
  .release-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.75rem;
  }
  p, li, label, input, textarea, table {
    font-size: 1.125rem;
  }
  #cookie-banner p {
    font-size: 1.125rem;
  }
  #home-button, #back-button {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  #home-button i, #back-button i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
  }
}