/* style.css */

/* --- Universal Styles & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

:root {
    --primary-color: hsla(0, 0%, 100%, 0.815);
    --secondary-color: #a0a0a0;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --accent-color: #1DB954; /* Spotify Green, can be changed */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-color);
}

/* --- Dropdown Button --- */
.dropbtn {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.dropbtn:hover {
    background-color: #1ed760;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--surface-color);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}

.dropdown-content a {
    color: var(--primary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--accent-color);
}

.show {
    display: block;
}

/* --- Main Content Sections --- */
main {
    padding-top: 80px; /* Adjust based on header height */
}

.hero {
    height: 80vh;
    background-attachment: fixed;  
    background-size: cover;
    background-position: center;
    background-size: 800px 800px;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: black;
}

.parallax-bg {
  /* This is the background image for the effect */
  background-image: url("images/hero-background.jpg.png");
  background-attachment: fixed;

  /* These properties are essential for the effect */
  background-size: cover;
  background-position: center;

  /*
    height: 100vh;
    This can be adjusted depending on how large you want your parallax section to be.
  */
  height: 800
  px;
}

.hero-text h1 {
    font-size: 5rem;
    font-weight: 1000;
}

.hero-text p {
    font-size: 1.5rem;
}

.latest-track, .content-page {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}

.latest-track h2, .content-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.player-container {
    display: flex;
    gap: 2rem;
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 10px;
    align-items: center;
}

.player-container img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.track-info h3 { font-size: 2rem; }
.track-info p { font-size: 1.2rem; color: var(--secondary-color); margin-bottom: 1rem; }
audio { width: 100%; }

/* --- Add these styles for the Spotify link button --- */

.album-art-link {
    display: inline-block; /* Ensures the link wraps the content correctly */
    text-decoration: none; /* Removes the default link underline */
}

.album-art-container {
    position: relative; /* This is the positioning base for the play icon */
    display: inline-block;
}

.play-icon-overlay {
    /* Positioning */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Appearance */
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid white;
    border-radius: 50%; /* Makes it a circle */
    width: 70px;
    height: 70px;
    font-size: 24px;
    
    /* Center the icon inside the circle */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Effects */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    pointer-events: none; /* Ensures the link is clickable, not the overlay */
}

/* Show play icon on hover */
.album-art-link:hover .play-icon-overlay {
    opacity: 1;
}

/* Optional: Darken the image on hover */
.album-art-link:hover img {
    filter: brightness(70%);
    transition: filter 0.3s ease;
}

/* --- Music Page Grid --- */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    gap: 2rem;
    justify-content: center; /* center whole grid row */
}

.music-item {
    text-align: center;
}
.music-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.music-item img:hover {
    transform: scale(1.05);
}
.music-item h3 { margin-bottom: 0.2rem; }
.music-item p { color: var(--secondary-color); }

/* --- About Page --- */
.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.about-content img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
}
.bio p {
    margin-bottom: 1rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 5%;
    margin-top: 4rem;
    border-top: 1px solid var(--surface-color);
}

.social-links a {
    font-size: 1.5rem;
    margin: 0 15px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}
footer p {
    margin-top: 1rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    nav ul { display: none; } /* Simple hide for mobile, can be replaced with hamburger menu */
    
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { font-size: 1rem; }
    
    .player-container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
    }
}