/* ========================================= */
/* GLOBAL STYLES & VARIABLES        */
/* ========================================= */

:root {
    /* Color Palette */
    --color-background: #121212;
    --color-surface: #1e1e1e; /* For cards and navbar */
    --color-primary-text: #e0e0e0;
    --color-secondary-text: #a0a0a0;
    --color-accent: #00aaff; /* A vibrant blue for highlights */
    --color-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Cinzel', serif;
}

/* Basic Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-primary-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================= */
/* NAVBAR                      */
/* ========================================= */

.navbar {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.artist-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.artist-name:hover {
    opacity: 0.8;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-secondary-text);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    cursor: pointer;
    
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px; 
    overflow: hidden; 
}

.nav-link:hover {
    color: var(--color-primary-text);
}

.nav-link span {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.nav-link .nav-icon {
    position: absolute;
    height: 24px;
    width: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
}

.nav-link:hover span {
    transform: translateY(100%);
    opacity: 0;
}

.nav-link:hover .nav-icon {
    transform: translateY(0);
    opacity: 1;
}

/* NEW: Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary-text);
    font-size: 2rem;
    cursor: pointer;
}

/* NEW: Mobile nav styles when active */
.main-nav.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-surface);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
}

.main-nav.active ul {
    flex-direction: column;
    gap: 1rem;
}

.main-nav.active .dropdown-menu {
    position: static;
    margin-top: 0.5rem;
    width: 100%;
}


/* ========================================= */
/* DROPDOWN                    */
/* ========================================= */

.dropdown {
    position: relative;
}

.dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.5rem;
    height: 0.5rem;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    height: 24px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; 
    right: 0;
    margin-top: 0.5rem;
    background-color: #2a2a2a;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    min-width: 180px;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--color-secondary-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-icon {
    width: 20px;
    height: 20px;
}

.dropdown-menu a:hover {
    background-color: var(--color-accent);
    color: #fff;
}

/* ========================================= */
/* MAIN CONTENT                 */
/* ========================================= */

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

/* NEW: Rule to align discography page content to the top */
body.discography-page main {
    align-items: flex-start;
    padding-top: 4rem;
}

/* ========================================= */
/* HOME PAGE HERO SECTION            */
/* ========================================= */

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.release-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    background-color: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.release-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.release-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.release-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.release-type {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.release-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-primary-text);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.release-cta {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-secondary-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.release-card:hover .release-cta {
    color: var(--color-primary-text);
    transform: translateX(5px);
}

.discography-card {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-primary-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.discography-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.discography-card-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.discography-card-info {
    padding: 1rem 2rem;
}

.discography-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
}

.discography-card-info span {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-secondary-text);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.discography-card:hover .discography-card-info span {
    color: var(--color-primary-text);
    transform: translateX(5px);
}

/* ========================================= */
/* SINGLE PAGE STYLING          */
/* ========================================= */

.single-page-container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.album-art-large {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.track-details-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.track-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0;
    line-height: 1.1;
    text-align: left;
}

.artist-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--color-secondary-text);
    margin: -1.25rem 0 0 0;
    text-align: left;
}

.track-description {
    text-align: left;
    max-width: 100%;
    color: var(--color-secondary-text);
    font-size: 1.1rem;
}

.audio-player {
    width: 100%;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-btn {
    background: none;
    border: none;
    color: var(--color-primary-text);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.progress-container {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.3);
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 3px;
}

.time-display {
    font-size: 0.8rem;
    color: var(--color-secondary-text);
    min-width: 70px;
    text-align: right;
}

.streaming-links {
    width: 100%;
    text-align: left;
    margin-top: 1rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.streaming-links h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary-text);
    margin-bottom: 1.5rem;
}

.stream-button-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stream-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-primary-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.stream-button:hover {
    transform: translateY(-3px);
}

.stream-button img {
    height: 24px;
}

.stream-button.spotify-btn:hover { background-color: #1DB954; }
.stream-button.apple-btn:hover { background-color: #FA233B; }
.stream-button.ytmusic-btn:hover { background-color: #FF0000; }
.stream-button.youtube-btn:hover { background-color: #FF0000; }

/* ========================================= */
/* discography PAGE STYLING          */
/* ========================================= */

.discography-page-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-primary-text);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.discography-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.discography-item-card {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.discography-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* NEW: This is the main link for the art and info */
.discography-item-main-link {
    display: flex;
    align-items: center;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.discography-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.discography-item-info {
    padding: 1rem 2rem;
}

.discography-item-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
}

.discography-item-info span {
    font-size: 1rem;
    color: var(--color-secondary-text);
}

.discography-item-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 2rem;
}

/* NEW: Styling for the individual logo links */
.discography-item-links a {
    display: block;
    line-height: 0; /* Prevents extra space below image */
}

.discography-item-links img {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discography-item-links a:hover img {
    transform: scale(1.15);
    box-shadow: 0 0 10px var(--color-accent);
}

/* ========================================= */
/* FOOTER                      */
/* ========================================= */

.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--color-secondary-text);
    font-size: 0.8rem;
}

/* ========================================= */
/* RESPONSIVE DESIGN                */
/* ========================================= */

@media (max-width: 900px) {
    .single-page-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
    }

    .track-title, .artist-title, .track-description, .streaming-links h3 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 2rem;
    }

    .main-nav {
        display: none;
    }

    .release-card {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .release-info {
        padding: 2rem;
        text-align: center;
    }
    
    /* NEW: This is the new rule for the nav-links on mobile */
    .nav-link {
        font-size: 0.8rem;
    }

    .dropdown-toggle {
        font-size: 0.8rem;
    }

    .discography-card {
        flex-direction: column;
        text-align: center;
    }

    .discography-card-image {
        width: 100%;
        height: 120px;
    }
    
    /* NEW: Adjustments for the discography-item-card to stack */
    .discography-item-card {
        flex-direction: column;
        align-items: stretch;
    }

    .discography-item-main-link {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .discography-item-image {
        width: 100%;
        height: auto;
    }

    .discography-item-info {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .discography-item-links {
        padding: 1rem 0 1.5rem;
        justify-content: center;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .stream-button-container {
        grid-template-columns: 1fr;
    }
    .single-page-container {
        padding: 2rem 1rem;
    }
    main {
        padding: 1rem;
    }
    .discography-item-info {
        padding: 1rem;
    }
    .discography-item-links {
        padding-right: 1rem;
    }
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top of everything */
    padding-top: 50px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (The Image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

/* The Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
