/* FONT IMPORTS (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Heebo:wght@300;400&family=Walter+Turncoat&display=swap');

/* --- VARIABLES & RESET --- */
:root {
    --dark-charcoal: #1C2226;
    --almost-black: #090B0D;
    --cream-white: #F2EFDC;
    --muted-grey-green: #8C8A80;
    --sandy-beige: #BFBAA8;
    --font-header: 'Bebas Neue', cursive;
    --font-body: 'Heebo', sans-serif;
    --font-quote: 'Walter Turncoat', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream-white);
    /* UPDATED */
    color: var(--dark-charcoal);
    /* UPDATED */
    font-weight: 300;
    /* Use the light weight for body text */
    /* Optional: Add a subtle texture background. Create a semi-transparent PNG for the best effect. */
    /* background-image: url('/assets/textures/weathered-paint.png'); */
}

/* --- GENERAL STYLES --- */
h1,
h2,
h3 {
    font-family: var(--font-header);
    font-weight: 400;
    /* Bebas Neue is bold by default */
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

h2 {
    font-size: 2.2rem;
    border-bottom: 2px solid var(--muted-grey-green);
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: var(--dark-charcoal);
}

/* UPDATED */
p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--dark-charcoal);
}

/* UPDATED */
a {
    color: var(--muted-grey-green);
    text-decoration: none;
    transition: color 0.3s;
}

/* UPDATED */
a:hover {
    color: var(--almost-black);
}

/* UPDATED */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- HEADER & NAVIGATION --- */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(242, 238, 220, 0.85);
    /* cream-white with transparency - UPDATED */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    /* REMOVED horizontal padding */
    z-index: 1000;
    border-bottom: 1px solid var(--sandy-beige);
    /* UPDATED */
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .band-name {
    font-family: var(--font-header);
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--dark-charcoal);
}

/* UPDATED */
header nav a {
    margin-left: 25px;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    /* UPDATED to fill the viewport height */
    min-height: 500px;
    /* Increased min-height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    /* EDIT THIS: Use your hero image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/hero.png');
    /* Override general section rules for full width */
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}

#hero h1 {
    color: white;
}

/* --- MUSIC SECTION --- */
.albums-grid {
    display: flex;
    flex-direction: column;
    /* Mobile-first: stack albums */
    align-items: center;
    /* Center the single column */
    gap: 40px;
    perspective: 1000px;
}

.album-card {
    background-color: transparent;
    width: 100%;
    max-width: 500px;
    /* Constrain width on mobile */
    /* Make cards square */
    aspect-ratio: 1 / 1;
    border: none;
    cursor: pointer;
}

.album-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.4);
}

.album-card.is-flipped .album-card-inner {
    transform: rotateY(180deg);
}

.album-card-front,
.album-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.album-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-card-back {
    background-color: var(--cream-white);
    /* UPDATED */
    color: var(--dark-charcoal);
    /* UPDATED */
    border: 1px solid var(--sandy-beige);
    /* Add subtle border */
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.album-card-back h3,
.album-card-back h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--sandy-beige);
    flex-shrink: 0;
    color: var(--dark-charcoal);
}

.album-card-back ol {
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    list-style: none;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.album-card-back li {
    padding: 6px 5px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--sandy-beige);
    /* UPDATED */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s, color 0.2s;
}

.album-card-back li:hover {
    background-color: var(--sandy-beige);
    /* UPDATED */
    color: var(--almost-black);
    /* Ensure text is readable */
}

.track-info {
    display: flex;
    align-items: center;
}

.track-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

.track-icon svg {
    display: none;
    width: 100%;
    height: 100%;
    fill: var(--muted-grey-green);
    /* UPDATED */
}

li.is-playing .track-icon svg {
    display: inline-block;
}

.track-icon svg rect {
    transform-origin: bottom;
}

li.is-playing .track-icon svg rect {
    animation: throb 1.2s ease-in-out infinite alternate;
}

.track-icon svg rect:nth-child(2) {
    animation-delay: 0.2s;
}

.track-icon svg rect:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes throb {
    from {
        transform: scaleY(0.3);
    }

    to {
        transform: scaleY(1);
    }
}

.track-duration-control {
    font-size: 0.9rem;
    font-weight: 300;
}

.track-time {
    color: var(--dark-charcoal);
    /* UPDATED */
}

.album-card-back li:hover .track-time {
    color: var(--almost-black);
    /* Ensure time is readable on hover */
}

.buy-button {
    display: block;
    background-color: var(--muted-grey-green);
    /* UPDATED */
    color: var(--cream-white);
    /* UPDATED */
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.buy-button:hover {
    background-color: var(--dark-charcoal);
    /* UPDATED */
    color: var(--cream-white);
    /* ADDED: This keeps the text light on hover */
}


/* --- LORE & MERCH SECTIONS --- */
.bio-card {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 2px solid var(--muted-grey-green);
    padding-left: 20px;
}

.bio-thumb {
    width: 200px;
    height: 200px;
    flex: 0 0 200px;
    object-fit: cover;
    border: 2px solid var(--sandy-beige);
    background-color: var(--cream-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

.bio-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.32);
}

/* Responsive: stack bio-card contents on small screens */
@media (max-width: 850px) {
    .bio-card {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        border-left: none;
        text-align: center;
    }

    .bio-thumb {
        /* allow larger square thumbnails on small screens but keep responsive */
        width: min(400px, 90vw);
        max-width: 400px;
        height: auto;
        aspect-ratio: 1 / 1;
        flex: 0 0 auto;
    }

    .bio-card h3 {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

}

/* --- SITE QUOTE STYLE --- */
.site-quote {
    margin: 30px auto;
    max-width: 900px;
    background: linear-gradient(180deg, rgba(242,239,220,0.9), rgba(242,239,220,0.95));
    border-left: 6px solid var(--muted-grey-green);
    padding: 20px 28px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    font-family: var(--font-quote);
}

.site-quote p {
    font-family: var(--font-quote);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--dark-charcoal);
    margin: 0;
    padding: 0;
}

/* Prevent quote headings from inheriting site header uppercase rules */
.site-quote h2,
.site-quote h3 {
    font-family: var(--font-quote);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    margin: 0 0 10px 0;
}

@media (max-width: 600px) {
    .site-quote {
        padding: 16px 18px;
        margin: 20px 10px;
    }
    .site-quote p {
        font-size: 1rem;
    }
}
    .bio-card p {
        margin-top: 8px;
        text-align: left;
        max-width: 680px;
    }


/* UPDATED */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.merch-item {
    text-align: center;
    background-color: #fff;
    border: 1px solid var(--sandy-beige);
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* UPDATED */
.merch-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.merch-item img {
    border: 1px solid var(--sandy-beige);
    margin-bottom: 10px;
}

/* UPDATED */
.merch-item span {
    color: var(--dark-charcoal);
    font-weight: 400;
}

/* UPDATED */

/* --- UPDATES SECTION --- */
.update-post {
    border-left: 2px solid var(--muted-grey-green);
    /* UPDATED */
    padding-left: 20px;
    margin-bottom: 40px;
}

.update-post .date {
    color: var(--muted-grey-green);
    font-style: italic;
    margin-bottom: 5px;
}

/* UPDATED */

/* --- SOCIALS SECTION --- */
#social {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--muted-grey-green);
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    color: var(--dark-charcoal);
    transform: scale(1.1);
}

.social-icons svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* Font Awesome social icon sizing */
.social-icons i.fab {
    font-size: 28px;
    line-height: 1;
}


/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 5%;
    border-top: 1px solid var(--sandy-beige);
}

/* UPDATED */

/* --- RESPONSIVE STYLES --- */
@media (max-width: 850px) {
    .header-container {
        /* UPDATED from header */
        flex-direction: column;
        gap: 15px;
    }

    header .band-name {
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
    }

    header nav {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }

    header nav a {
        margin: 0 5px;
        font-size: 0.9rem;
    }
}

@media (min-width: 850px) {
    .albums-grid {
        flex-direction: row;
        /* Side-by-side on larger screens */
        flex-wrap: wrap;
        justify-content: center;
        /* Center the items */
    }

    .album-card {
        flex-basis: 45%;
        /* Two columns for tablets */
        max-width: 400px;
    }
}
