@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&family=Oxanium:wght@400;500;600;700;800&display=swap');

:root {
  --chile-red: #D52B1E;
  --chile-blue: #0039A6;
  --chile-white: #FFFFFF;
  --rock-gold: #FFD700;
  --dark-stage: #0a0a0a;
  --flame-orange: #FF6B00;
  --flame-yellow: #FFD700;
  --neon-green: #39FF14;
  --neon-pink: #FF10F0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Oxanium', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  background: var(--dark-stage);
  color: var(--chile-white);
}

/* Background */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      #000000 0%,
      #0a0520 20%,
      #1a0a2e 50%,
      #0a0520 80%,
      #000000 100%);
  z-index: 1;
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

.stage-lights {
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(213, 43, 30, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(0, 57, 166, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
  animation: lights-pulse 5s infinite ease-in-out;
}

@keyframes lights-pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.8;
  }
}

/* Navbar */
.navbar-hero {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg,
      rgba(10, 10, 10, 0.98) 0%,
      rgba(26, 10, 46, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--rock-gold);
  box-shadow: 0 5px 30px rgba(255, 215, 0, 0.3),
    0 0 50px rgba(213, 43, 30, 0.2);
  padding: 1rem 0;
}

.navbar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-small {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.navbar-title {
  font-family: 'Metal Mania', cursive;
  font-size: 1.8rem;
  background: linear-gradient(90deg,
      var(--chile-red) 0%,
      var(--rock-gold) 50%,
      var(--chile-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.navbar-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-btn {
  background: linear-gradient(135deg,
      rgba(213, 43, 30, 0.6) 0%,
      rgba(0, 57, 166, 0.6) 100%);
  border: 2px solid rgba(255, 215, 0, 0.4);
  color: white;
  font-family: 'Oxanium', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-radius: 5px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.filter-btn:hover {
  transform: translateY(-2px);
  border-color: var(--rock-gold);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg,
      rgba(213, 43, 30, 0.8) 0%,
      rgba(0, 57, 166, 0.8) 100%);
  color: white;
}

.filter-btn i {
  margin-right: 0.3rem;
  font-size: 0.8rem;
}

.btn-back {
  background: linear-gradient(135deg,
      rgba(255, 215, 0, 0.8) 0%,
      rgba(255, 107, 0, 0.8) 100%);
  border: 2px solid var(--rock-gold);
  color: var(--dark-stage);
  font-family: 'Oxanium', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.btn-back:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 25px rgba(255, 215, 0, 0.6);
  color: var(--dark-stage);
}

.user-avatar-small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--dark-stage);
  object-fit: cover;
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(20, 20, 20, 0.98);
  border: 2px solid var(--rock-gold);
  border-radius: 12px;
  min-width: 250px;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.dropdown-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--rock-gold);
  object-fit: cover;
}

.dropdown-user-info {
  flex: 1;
}

.dropdown-username {
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.dropdown-role {
  font-size: 0.85rem;
  color: var(--rock-gold);
  text-transform: capitalize;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 215, 0, 0.2);
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(255, 215, 0, 0.1);
  color: white;
}

.dropdown-item.text-danger {
  color: #ff4444 !important;
}

.dropdown-item.text-danger:hover {
  background: rgba(255, 68, 68, 0.1);
}

/* Announcements */
.announcements-container {
  position: relative;
  z-index: 50;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
}

.announcement {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 2px solid;
  animation: slideDown 0.5s ease-out;
  position: relative;
}

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

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

.announcement-normal {
  background: rgba(0, 57, 166, 0.15);
  border-color: var(--chile-blue);
  box-shadow: 0 4px 15px rgba(0, 57, 166, 0.2);
}

.announcement-urgent {
  background: rgba(213, 43, 30, 0.15);
  border-color: var(--chile-red);
  box-shadow: 0 4px 15px rgba(213, 43, 30, 0.2);
  animation: urgentPulse 2s infinite;
}

@keyframes urgentPulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(213, 43, 30, 0.2);
  }

  50% {
    box-shadow: 0 4px 25px rgba(213, 43, 30, 0.4);
  }
}

.announcement-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.announcement-normal .announcement-icon {
  color: var(--chile-blue);
}

.announcement-urgent .announcement-icon {
  color: var(--chile-red);
}

.announcement-content {
  flex: 1;
}

.announcement-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.announcement-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
}

.announcement-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.announcement-close:hover {
  color: white;
  transform: scale(1.2);
}

/* Catalog Container */
.catalog-container {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.catalog-title {
  text-align: center;
  margin-bottom: 3rem;
}

.title-text {
  font-family: 'Metal Mania', cursive;
  font-size: 3rem;
  background: linear-gradient(90deg,
      var(--chile-red) 0%,
      var(--rock-gold) 30%,
      var(--chile-blue) 60%,
      var(--rock-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-shift 3s linear infinite;
  display: block;
  letter-spacing: 4px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

@keyframes gradient-shift {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.title-underline {
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--rock-gold) 50%,
      transparent 100%);
  margin: 1rem auto 0;
  box-shadow: 0 0 10px var(--rock-gold);
  animation: underline-pulse 2s infinite;
}

@keyframes underline-pulse {

  0%,
  100% {
    width: 200px;
    opacity: 0.6;
  }

  50% {
    width: 250px;
    opacity: 1;
  }
}

/* Song Grid */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.song-card {
  position: relative;
  background: linear-gradient(135deg,
      rgba(26, 10, 46, 0.8) 0%,
      rgba(10, 5, 32, 0.9) 100%);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.song-card.show {
  opacity: 1;
  transform: translateY(0);
}

.song-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--rock-gold);
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4),
    0 0 30px rgba(213, 43, 30, 0.3);
}

.song-card:hover .song-glow {
  opacity: 1;
}

.song-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle,
      rgba(255, 215, 0, 0.2) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.song-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: linear-gradient(135deg,
      rgba(213, 43, 30, 0.2) 0%,
      rgba(0, 57, 166, 0.2) 100%);
}

.song-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.song-card:hover .song-image img {
  transform: scale(1.1);
}

.song-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.song-card:hover .song-overlay {
  opacity: 1;
}

.play-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      var(--chile-red) 0%,
      var(--chile-blue) 100%);
  border: 3px solid var(--rock-gold);
  color: var(--chile-white);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.play-btn:hover {
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.9);
}

.play-btn i {
  margin-left: 3px;
}

.song-info {
  padding: 1.5rem;
}

.song-name {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--chile-white);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  min-height: 2.6rem;
}

.song-artist {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  font-weight: 500;
}

.song-difficulty {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid;
}

.difficulty-facil {
  background: rgba(57, 255, 20, 0.2);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.difficulty-medio {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--rock-gold);
  color: var(--rock-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.difficulty-dificil {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--flame-orange);
  color: var(--flame-orange);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

.difficulty-experto {
  background: rgba(213, 43, 30, 0.2);
  border-color: var(--chile-red);
  color: var(--chile-red);
  box-shadow: 0 0 10px rgba(213, 43, 30, 0.3);
  animation: difficulty-pulse 2s infinite;
}

@keyframes difficulty-pulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(213, 43, 30, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(213, 43, 30, 0.6);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar-content {
    justify-content: center;
  }

  .navbar-filters {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .song-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar-title {
    font-size: 1.4rem;
  }

  .logo-small {
    height: 40px;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .title-text {
    font-size: 2rem;
  }

  .song-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
  }

  .song-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .catalog-container {
    padding: 2rem 1rem;
  }

  .navbar-content {
    padding: 0 1rem;
  }

  .title-text {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .song-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
}

.modal-content {
  background: linear-gradient(135deg,
      rgba(26, 10, 46, 0.98) 0%,
      rgba(10, 5, 32, 0.98) 100%);
  border: 3px solid var(--rock-gold);
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(255, 215, 0, 0.4),
    0 0 100px rgba(213, 43, 30, 0.3);
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  background: linear-gradient(90deg,
      rgba(213, 43, 30, 0.2) 0%,
      rgba(0, 57, 166, 0.2) 100%);
}

.modal-header h2 {
  font-family: 'Metal Mania', cursive;
  font-size: 1.8rem;
  color: var(--rock-gold);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.modal-header h2 i {
  font-size: 1.5rem;
}

.modal-close {
  background: rgba(255, 215, 0, 0.2);
  border: 2px solid var(--rock-gold);
  color: var(--rock-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.modal-close:hover {
  background: var(--rock-gold);
  color: var(--dark-stage);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.modal-body {
  padding: 2rem;
  max-height: calc(80vh - 100px);
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--rock-gold);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--flame-orange);
}

.modal-body .announcement {
  margin-bottom: 1.5rem;
}

.modal-body .announcement:last-child {
  margin-bottom: 0;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header {
    padding: 1rem 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.4rem;
  }

  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .modal-header h2 {
    font-size: 1.2rem;
  }

  .modal-close {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }
}