/* KingDeath Heavy Metal Website - Side Navigation Layout */

/* CSS Variables */
:root {
    --primary-red: #8b0000;
    --dark-red: #660000;
    --gold: #ffd700;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --light-gray: #333333;
    --white: #ffffff;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Metal Mania', cursive;
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Side Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--dark-gray), var(--black));
    border-right: 3px solid var(--gold);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-red);
}

.sidebar-header .logo {
    font-family: 'Creepster', cursive;
    font-size: 2.2rem;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold);
    animation: glow 2s ease-in-out infinite alternate;
    margin-bottom: 0.5rem;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--primary-red);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-menu {
    flex: 1;
    list-style: none;
    padding: 2rem 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    border-left: 4px solid transparent;
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
    background: linear-gradient(90deg, var(--primary-red), transparent);
    color: var(--gold);
    border-left-color: var(--gold);
    text-shadow: 0 0 10px var(--gold);
}

.sidebar-menu .nav-link i {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--primary-red);
}

.sidebar-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.sidebar-footer .social-link {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-footer .social-link:hover {
    color: var(--gold);
    transform: translateY(-3px) rotate(360deg);
    text-shadow: 0 0 15px var(--gold);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-red);
    color: var(--gold);
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: var(--gold);
    color: var(--primary-red);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    /* Need height for all sections to create scroll space */
    height: 500vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(139, 0, 0, 0.3)),
                url('Assets/CoverPhotos/Main_Image.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-family: 'Creepster', cursive;
    font-size: 5rem;
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold);
    animation: glow 2s ease-in-out infinite alternate;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: 3px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-red), var(--dark-red));
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--gold), var(--primary-red));
    color: var(--black);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
}

/* Sections with proper layering */
section {
    padding: 5rem 0;
    min-height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
}

/* Each section gets a higher z-index so it appears over the previous one */
#home {
    z-index: 1;
}

#about {
    z-index: 2;
}

#music {
    z-index: 3;
}

#gallery {
    z-index: 4;
}

.section-title {
    font-family: 'Creepster', cursive;
    font-size: 3rem;
    text-align: center;
    color: var(--gold);
    margin-bottom: 3rem;
    text-shadow: 0 0 20px var(--gold);
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--dark-gray), var(--black));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.about-image {
    text-align: center;
}

.band-photo {
    border: 3px solid var(--gold);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.band-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    border-color: var(--white);
}

.band-photo-img {
    width: 100%;
    height: 400px;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.band-photo:hover .band-photo-img {
    transform: scale(1.05);
}

/* Music Section */
.music {
    background: linear-gradient(135deg, var(--black), var(--primary-red));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
    min-height: 100vh;
    padding: 3rem 0;
    overflow-y: auto;
}

.albums {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    justify-items: center;
}

.album {
    background: var(--dark-gray);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    cursor: pointer;
}

.album.released:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
    border-color: var(--white);
}

.album.locked {
    opacity: 0.7;
    background: linear-gradient(135deg, var(--dark-gray), var(--light-gray));
    cursor: pointer;
}

.album.locked:hover {
    opacity: 0.8;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
}

.album-cover {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.album-art {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--gold);
}

.play-overlay, .lock-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
    cursor: pointer;
}

.album.released:hover .play-overlay {
    opacity: 1;
}

.lock-overlay {
    opacity: 1;
    background: rgba(139, 0, 0, 0.8);
}

.play-overlay i, .lock-overlay i {
    font-size: 3rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.play-overlay:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 20px var(--gold);
}

.lock-overlay:hover i {
    transform: scale(1.1);
    color: var(--primary-red);
}

.album-info h3 {
    font-family: 'Creepster', cursive;
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.album-status {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.locked-status {
    color: var(--primary-red);
}

.track-count, .release-date {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.album-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
}

.locked-btn {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Right Side Music Panel */
.music-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, var(--dark-gray), var(--black));
    border-left: 3px solid var(--gold);
    z-index: 1500;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.music-panel.active {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--primary-red);
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 10;
}

.panel-header h3 {
    font-family: 'Creepster', cursive;
    color: var(--gold);
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--gold);
}

.close-panel {
    background: var(--primary-red);
    color: var(--gold);
    border: none;
    padding: 0.7rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-panel:hover {
    background: var(--gold);
    color: var(--black);
    transform: rotate(90deg);
}

.panel-content {
    padding: 1.5rem;
}

.now-playing-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.panel-album-art {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    border: 3px solid var(--gold);
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Heavy metal shake/impact effect for album art */
.panel-album-art.playing {
    position: relative;
    animation: metalPulse 3s ease-in-out infinite;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2);
}

.panel-album-art.shake {
    animation: metalShake 0.6s ease-in-out;
}

@keyframes metalPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 
            0 5px 15px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 215, 0, 0.4),
            0 0 40px rgba(255, 215, 0, 0.2);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.1);
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.3);
    }
}

@keyframes metalShake {
    0% { 
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
    10% { 
        transform: translateX(-8px) translateY(-3px) scale(1.08);
        filter: brightness(1.3) saturate(1.3);
        box-shadow: 
            0 10px 25px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.8),
            0 0 80px rgba(139, 0, 0, 0.4);
    }
    20% { 
        transform: translateX(8px) translateY(3px) scale(1.05);
        filter: brightness(1.2);
    }
    30% { 
        transform: translateX(-5px) translateY(-2px) scale(1.03);
        filter: brightness(1.1);
    }
    40% { 
        transform: translateX(5px) translateY(2px) scale(1.02);
    }
    50% { 
        transform: translateX(-3px) translateY(-1px) scale(1.01);
    }
    60% { 
        transform: translateX(3px) translateY(1px) scale(1.01);
    }
    70% { 
        transform: translateX(-1px) scale(1);
    }
    80% { 
        transform: translateX(1px) scale(1);
    }
    90% { 
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
    100% { 
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
}

.current-track-info h4 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px var(--gold);
}

.current-track-info p {
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.progress-container {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--primary-red));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -3px;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--gold);
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.control-btn {
    background: var(--primary-red);
    color: var(--gold);
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    background: var(--gold);
    color: var(--black);
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.play-btn:hover {
    background: var(--white);
}

.track-list-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.track-list {
    max-height: none;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin-bottom: 0.3rem;
}

.track-item:hover {
    background: var(--primary-red);
    color: var(--gold);
    transform: translateX(5px);
}

.track-item.active {
    background: linear-gradient(90deg, var(--gold), rgba(255, 215, 0, 0.8));
    color: var(--black);
    font-weight: bold;
}

.track-item.playing {
    background: linear-gradient(90deg, var(--primary-red), rgba(139, 0, 0, 0.8));
    color: var(--gold);
}

.track-number {
    width: 30px;
    text-align: center;
    margin-right: 1rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.track-name {
    flex: 1;
    font-size: 0.95rem;
}

.play-count {
    font-size: 0.75rem;
    color: var(--gold);
    margin-right: 0.5rem;
    min-width: 60px;
    text-align: right;
    opacity: 0.8;
}

.track-status {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.track-item.playing .track-status::after {
    content: '♪';
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Gallery Section */
.gallery {
    background: linear-gradient(135deg, var(--dark-gray), var(--black));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    border: 3px solid var(--gold);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
    border-color: var(--white);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.gallery-overlay p {
    color: var(--gold);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1.2);
    text-shadow: 0 0 20px var(--gold);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--gold);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.close-modal:hover {
    color: var(--white);
    transform: scale(1.2);
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    border: 3px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.modal-caption {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1rem;
    text-shadow: 0 0 10px var(--gold);
}



/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 20px var(--gold);
    }
    to {
        text-shadow: 0 0 30px var(--gold), 0 0 40px var(--gold);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .albums {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .sidebar-header .logo {
        font-size: 1.8rem;
    }

    section {
        padding: 3rem 0;
    }

    .album {
        max-width: 100%;
    }
}