@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-filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.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;
}

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

.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);
}

/* 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;
    }
}

/* Layout de dos columnas */
.songs-page-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.songs-header {
    margin-bottom: 2rem;
}

.songs-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    min-height: 70vh;
}

/* Lista de canciones */
.songs-list-container {
    background: linear-gradient(135deg,
            rgba(26, 10, 46, 0.9) 0%,
            rgba(10, 5, 32, 0.95) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1rem;
    overflow: hidden;
}

.songs-list {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.songs-list::-webkit-scrollbar {
    width: 8px;
}

.songs-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

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

.song-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.song-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--rock-gold);
    transform: translateX(5px);
}

.song-item.selected {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--rock-gold);
}

.song-item-artist {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.song-item-name {
    color: var(--chile-white);
    font-weight: 600;
}

.song-item-download {
    color: var(--rock-gold);
    font-size: 1.2rem;
}

/* Panel de detalles */
.song-details-container {
    background: linear-gradient(135deg,
            rgba(26, 10, 46, 0.9) 0%,
            rgba(10, 5, 32, 0.95) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    overflow-y: auto;
    max-height: 70vh;
}

.no-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

/* Layout horizontal: imagen izquierda, info derecha */
.song-details {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.details-image {
    position: sticky;
    top: 2rem;
}

.details-image img {
    width: 100%;
    border-radius: 10px;
    border: 3px solid var(--rock-gold);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.details-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.details-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--chile-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.details-info-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.info-label {
    color: var(--rock-gold);
    font-weight: 700;
}

.info-value {
    color: rgba(255, 255, 255, 0.9);
}

.details-difficulty {
    margin-bottom: 2rem;
}

.details-difficulty h3 {
    color: var(--chile-white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.diff-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--rock-gold);
    border-radius: 8px;
    color: var(--chile-white);
}

.diff-item i {
    color: var(--rock-gold);
    font-size: 1.2rem;
}

.details-downloads {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--chile-red) 0%, var(--chile-blue) 100%);
    color: var(--chile-white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    border: 2px solid var(--rock-gold);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    color: var(--chile-white);
}

.download-btn-mirror {
    background: linear-gradient(135deg, var(--flame-orange) 0%, var(--rock-gold) 100%);
    color: var(--dark-stage);
}

.login-required {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--rock-gold);
    border-radius: 10px;
}

.login-required i {
    font-size: 3rem;
    color: var(--rock-gold);
    margin-bottom: 1rem;
}

.login-required p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn-login {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--rock-gold) 0%, var(--flame-orange) 100%);
    color: var(--dark-stage);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .songs-layout {
        grid-template-columns: 1fr;
    }

    .songs-list-container {
        max-height: 400px;
    }
}

@media (max-width: 768px) {

    /* Layout vertical en móviles */
    .song-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .details-image {
        position: relative;
        top: 0;
        text-align: center;
    }

    .details-image img {
        max-width: 200px;
    }

    .difficulty-grid {
        grid-template-columns: 1fr;
    }

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

    .song-item-download {
        text-align: right;
    }
}