/* ================================
   PAGE-ALBUMDETAIL.CSS
   Shared styles for all individual album pages.
   Loaded AFTER styles.css, BEFORE any album-specific CSS.
   ================================ */

/* ================================
   TWO-COLUMN LAYOUT
   Left sidebar (album nav) + right main content column.
   On mobile (≤768px), sidebar is hidden entirely.
   ================================ */
.album-detail-layout {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
    gap: 25px;
}

/* ================================
   ALBUM SIDEBAR NAVIGATION
   Vertical stack of all album covers with release years.
   Links to each album's individual page.
   ================================ */
.album-sidebar {
    flex-shrink: 0;
    width: 155px;
    padding-top: 0;
}

.album-sidebar-item {
    display: block;
    text-align: center;
    margin-bottom: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.album-sidebar-item:hover {
    opacity: 0.7;
}

/* Highlight the current album in the sidebar */
.album-sidebar-item.current {
    opacity: 1;
    pointer-events: none;
}

.album-sidebar-cover {
    width: 144px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.album-sidebar-year {
    display: block;
    font-family: 'Cabin Condensed', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgb(58, 100, 147);
    text-transform: uppercase;
    margin-top: 0;
    letter-spacing: 0.06em;
    transform: scaleX(1.12);
    transform-origin: center;
    opacity: 0.65;
}

/* ================================
   MAIN CONTENT COLUMN
   ================================ */
.album-main {
    flex: 1;
    min-width: 0; /* prevent flex overflow */
}

/* ================================
   ALBUM PAGE HEADLINE
   Wider than the site-wide .page-headline to fill
   the main content column.
   ================================ */
.album-page-headline {
    background: white;
    color: #3A6493;
    border: 1.5px solid rgba(58, 100, 147, 0.6);
    border-radius: 1.5px;
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-family: 'IM Fell DW Pica', serif;
    font-size: 28px;
    text-align: center;
    text-transform: lowercase;
}

/* ================================
   JUMP LINKS
   Navigation links to sections within the page.
   "JUMP TO:" label followed by pipe-separated links.
   ================================ */
.album-jump-links {
    text-align: center;
    margin-top: -2px;
    margin-bottom: 20px;
    font-family: 'Cabin Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.album-jump-links .jump-label {
    color: #888;
    margin-right: 4px;
}

.album-jump-links a {
    color: rgb(58, 100, 147);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.album-jump-links a:hover {
    opacity: 0.7;
}

.album-jump-links .jump-separator {
    color: #bbb;
    margin: 0 5px;
}

/* ================================
   MUSIC PLAYER
   Container for embedded iframe player (Bandcamp or custom).
   Centered, with flexible height per album.
   ================================ */
.album-player {
    text-align: center;
    margin: 0 auto 8px;
}

.album-player iframe {
    border: 0;
    max-width: 100%;
}

/* ================================
   LINK CENTER
   "Listen & Purchase" section with purchase/streaming buttons.
   ================================ */
.album-link-center {
    text-align: center;
    margin: 0 auto 25px;
    padding: 5px 0 15px;
}

.album-link-center-title {
    font-family: 'IM Fell DW Pica', serif;
    font-size: 20px;
    font-weight: 400;
    color: #3A6493;
    margin-bottom: 12px;
}

.album-link-center-title .album-name-emphasis {
    font-family: 'IM Fell DW Pica', serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
}

.album-link-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.album-link-label {
    font-family: 'Rosario', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #545454;
    margin-right: 0;
}

.album-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: rgb(58, 100, 147);
    border: 1px solid rgba(58, 100, 147, 0.5);
    border-radius: 2px;
    padding: 6px 16px;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    letter-spacing: 0.03em;
}

.album-link-btn:hover {
    opacity: 0.7;
}

/* ================================
   ALBUM NOTE
   Short centered note below the link center
   (e.g., album cover artist credit).
   ================================ */
.album-note {
    text-align: center;
    font-family: 'Rosario', sans-serif;
    font-size: 14px;
    color: #545454;
    margin: 0 auto 25px;
    max-width: 550px;
    line-height: 1.5;
}

.album-note a {
    color: rgb(58, 100, 147);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: opacity 0.3s ease;
}

.album-note a:hover {
    opacity: 0.7;
}

/* ================================
   SECTION DIVIDER
   Horizontal rule between content sections.
   scroll-margin-top accounts for the sticky nav height
   so jump links land with the divider at the nav's bottom edge.
   ================================ */
.album-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 8px 0 30px;
    scroll-margin-top: 235px;
}

/* ================================
   SECTION HEADING
   Used for "SONG-BY-SONG COMMENTARY", "PRODUCTION", etc.
   ================================ */
.album-section-heading {
    font-family: 'Rosario', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #545454;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 20px; /* provides proper spacing when no subhead follows */
}

.album-section-heading a {
    color: #545454;
    text-decoration: none;
}

.album-section-subhead {
    font-family: 'Rosario', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    text-align: center;
    margin-top: -18px; /* pulls subhead tight to heading above */
    margin-bottom: 20px;
}

/* ================================
   SONG COMMENTARY
   Song number + linked title, followed by commentary paragraph.
   ================================ */
.album-song-entry {
    margin-bottom: 18px;
    padding: 0 30px;
}

.album-song-title {
    font-family: 'Rosario', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #545454;
    margin-bottom: 4px;
    font-variant-numeric: lining-nums;
}

.album-song-title a {
    color: rgb(58, 100, 147);
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.album-song-title a:hover {
    opacity: 0.7;
}

.album-song-commentary {
    font-family: 'Rosario', sans-serif;
    font-size: 16px;
    color: #545454;
    line-height: 1.55;
    text-align: justify;
}

.album-song-commentary a {
    color: rgb(58, 100, 147);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.album-song-commentary a:hover {
    opacity: 0.7;
}

/* ================================
   PRODUCTION / CREDITS SECTION
   Body text for production notes and musician credits.
   ================================ */
.album-body-text {
    font-family: 'Rosario', sans-serif;
    font-size: 16px;
    color: #545454;
    line-height: 1.55;
    text-align: justify;
    margin-bottom: 14px;
    padding: 0 30px;
}

.album-body-text a {
    color: rgb(58, 100, 147);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.album-body-text a:hover {
    opacity: 0.7;
}

.album-body-text strong {
    font-weight: 700;
}

/* ================================
   BACK TO TOP LINK
   Right-aligned link at end of each section.
   ================================ */
.album-back-to-top {
    text-align: right;
    margin: 15px 30px 0;
}

.album-back-to-top a {
    font-family: 'Rosario', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgb(58, 100, 147);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.album-back-to-top a:hover {
    opacity: 0.7;
}

/* ================================
   POSTER / SPECIAL SECTION
   For album-specific content like poster images, buy buttons.
   ================================ */
.album-special-image {
    display: block;
    margin: 15px auto 0;
    max-width: 100%;
    height: auto;
}

.album-special-caption {
    text-align: center;
    font-family: 'Rosario', sans-serif;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    margin-bottom: 15px;
}

.album-special-caption a {
    color: rgb(58, 100, 147);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.album-special-caption a:hover {
    opacity: 0.7;
}

.album-quote {
    text-align: center;
    font-family: 'Rosario', sans-serif;
    font-size: 15px;
    font-style: italic;
    color: #545454;
    margin: 15px auto;
    max-width: 480px;
    line-height: 1.5;
}

/* ================================
   RESPONSIVE — MOBILE (≤768px)
   ================================ */
@media (max-width: 768px) {

    /* Hide sidebar entirely on mobile */
    .album-sidebar {
        display: none;
    }

    .album-detail-layout {
        padding: 0.5rem 1rem 2rem;
    }

    .album-page-headline {
        max-width: 100%;
        font-size: 25px;
        height: 38px;
    }

    .album-jump-links {
        font-size: 11px;
    }

    .album-player iframe {
        width: 100%;
        max-width: 350px;
    }

    .album-link-buttons {
        gap: 6px;
    }

    .album-link-btn {
        padding: 5px 12px;
        font-size: 13px;
    }

    /* Force album title onto its own line after "Listen & Purchase:" */
    .album-name-emphasis {
        display: block;
    }

    .album-song-commentary,
    .album-body-text {
        font-size: 16px;
    }

    /* Reduce 30px side indentation to 10px so text nearly matches headline width */
    /* Revert values: .album-song-entry padding 0 30px, .album-body-text padding 0 30px, .album-back-to-top margin 15px 30px 0 */
    .album-song-entry {
        padding: 0 10px;
    }

    .album-body-text {
        padding: 0 10px;
    }

    .album-back-to-top {
        margin: 15px 10px 0;
    }
}
