/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+15&display=swap');

/* === CSS VARIABLES FOR MODULARITY === */
:root {
    --color-bg: #F1F2EB;
    --color-text: #4A4A48;
    --color-highlight: #566246;
    --color-border: #AEB7A6;
    --color-link-hover: #b3ae99;
    --radius-main: 12px;
    --radius-btn: 6px;
    --shadow-light: 0 2px 8px rgba(86,98,70,0.04);
    --shadow-medium: 0 4px 24px rgba(86,98,70,0.08);
    --shadow-card: 0 2px 16px rgba(86,98,70,0.08);
    --font-main: 'Roboto Mono', monospace;
    --font-heading: 'Montserrat', Arial, sans-serif;
}

/* === UTILITY CLASSES === */
.bg-main { background: var(--color-bg) !important; }
.text-main { color: var(--color-text) !important; }
.text-highlight { color: var(--color-highlight) !important; }
.rounded-main { border-radius: var(--radius-main) !important; }
.rounded-btn { border-radius: var(--radius-btn) !important; }
.shadow-light { box-shadow: var(--shadow-light) !important; }
.shadow-medium { box-shadow: var(--shadow-medium) !important; }
.shadow-card { box-shadow: var(--shadow-card) !important; }
.font-heading { font-family: var(--font-heading) !important; }
.font-main { font-family: var(--font-main) !important; }

/* === BASE STYLES === */
html, body {
    min-height: 100%;
    height: 100%;
    background: var(--color-bg) !important;
    color: var(--color-text) !important;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--color-text) !important;
    margin: 0;
    padding: 0;
    background: var(--color-bg) !important;
}

/* === TITLE & HEADER === */
.title {
    position: relative;
    text-align: center;
    color: var(--color-text) !important;
    padding: 60px 20px 40px 20px;
    background:
        url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat,
        linear-gradient(120deg, rgba(241,242,235,0.85) 60%, rgba(241,242,235,0.85) 100%);
    background-blend-mode: overlay;
    box-shadow: 0 8px 32px rgba(86,98,70,0.10);
    margin-bottom: 0;
    border-bottom: 3px solid var(--color-highlight);
}
.title::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(74,74,72,0.15);
    z-index: 0;
    pointer-events: none;
}
.title h1,
.header-tagline {
    position: relative;
    z-index: 1;
    color: var(--color-text) !important;
    text-shadow: none !important;
}
.title h1 {
    margin: 0;
    font-size: 70px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    filter: blur(0.5px);
}
.header-tagline {
    margin-top: 12px;
    font-size: 1.2rem;
    color: var(--color-highlight) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-shadow: none !important;
}
.tagline-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    animation: wave 1.5s infinite;
    color: var(--color-highlight) !important;
}
@keyframes wave {
    0%, 100% { transform: rotate(0deg);}
    50% { transform: rotate(15deg);}
}

/* === MAIN CONTAINERS === */
.about-section,
.news-section,
.filter-bar,
.container {
    max-width: 1200px;
    margin: 24px auto 36px auto;
    width: 95%;
    box-sizing: border-box;
    background: var(--color-bg) !important;
    color: var(--color-text) !important;
    border-color: var(--color-highlight) !important;
    box-shadow: var(--shadow-medium);
}

.about-section,
.news-section {
    border: 1.5px solid var(--color-border) !important;
    box-shadow: 0 2px 12px rgba(86,98,70,0.04);
    padding: 28px 22px;
    text-align: center;
    border-radius: var(--radius-main);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-bg) !important;
    border: 1.5px solid var(--color-border) !important;
    box-shadow: var(--shadow-light);
    border-radius: var(--radius-main);
}

/* === FILTER BAR === */
.filter-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    margin: 32px auto 32px auto;
    flex-wrap: wrap;
    background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg) 100%) !important;
    border: 2px solid var(--color-highlight) !important;
    padding: 16px 8px;
    box-shadow: 0 2px 12px rgba(86,98,70,0.10);
    max-width: 1100px;
    width: 95%;
    box-sizing: border-box;
    border-radius: var(--radius-main);
}
.filter-bar select,
.filter-bar option {
    background: var(--color-bg) !important;
    color: var(--color-highlight) !important;
    border: 2px solid var(--color-highlight) !important;
    border-radius: var(--radius-btn);
    font-family: var(--font-main);
    font-size: 1rem;
    padding: 6px 12px;
    margin-left: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-bar select:focus {
    outline: none;
    border-color: var(--color-highlight);
    box-shadow: 0 0 0 2px var(--color-bg);
}
.filter-bar label {
    font-family: var(--font-heading);
    color: var(--color-highlight) !important;
    font-size: 1rem;
    margin-right: 4px;
}

/* === GRID LAYOUTS === */
#albumsList,
#artist-releases,
.front-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* === CARD COMPONENTS === */
.card,
.album,
.artist-card {
    background: var(--color-bg) !important;
    border: 1.5px solid var(--color-border) !important;
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.album,
.artist-card {
    padding: 18px 16px 16px 16px;
}
.artist-card {
    padding: 18px 28px;
    margin: 6px 0;
    min-width: 220px;
    max-width: 320px;
    text-align: center;
}
.album img,
.artist-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(86,98,70,0.10);
    filter: grayscale(10%) contrast(1.05);
    border: 1.5px solid var(--color-bg) !important;
    border-radius: var(--radius-main);
    display: block;
    object-fit: cover;
}
.artist-img {
    height: 160px;
    border-radius: 10px;
    margin-bottom: 12px;
    max-width: 200px;
}
.artist,
.album-title,
.artist-name,
.artist-name a {
    color: var(--color-highlight) !important;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 4px;
    text-align: center;
    text-shadow: none !important;
}
.artist-name,
.artist-name a {
    font-size: 1.25rem;
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.2s;
}
.artist-name a:hover,
.artist-name a:focus {
    color: var(--color-link-hover);
    text-decoration: underline;
}
.album-meta {
    color: var(--color-highlight) !important;
    font-size: 0.97rem;
    margin-bottom: 8px;
    text-align: center;
}
.artist-genres {
    font-size: 0.95rem;
    color: var(--color-link-hover);
    margin-bottom: 6px;
    font-family: var(--font-main);
}
.artist-bio,
.artist-shortdesc {
    font-size: 1rem;
    color: var(--color-text) !important;
    margin-bottom: 8px;
    font-family: var(--font-main);
}
.artist-bio p {
    margin-bottom: 1em;
    line-height: 1.6;
}
.artist-links,
.album-links {
    margin-top: 8px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none !important;
}
.artist-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.artist-links a {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.93rem;
    color: var(--color-highlight);
    text-decoration: none;
    transition: color 0.2s;
}
.artist-links a:hover,
.artist-links a:focus {
    color: var(--color-link-hover);
    text-decoration: underline;
}
.album-links a,
.album-links a:visited {
    margin: 0 6px;
    color: var(--color-highlight) !important;
    font-size: 1.2rem;
    transition: color 0.2s;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
}
.artist-links a:hover,
.album-links a:hover,
.album-links a:focus {
    color: var(--color-link-hover) !important;
}
.album-link {
    background: var(--color-bg) !important;
    color: var(--color-highlight) !important;
}
.album-link:hover {
    background: var(--color-highlight) !important;
    color: var(--color-bg) !important;
}

/* === Horizontal icons for artist cards (listing page) */
.artist-card .artist-links {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

/* === Vertical links for artist page (detail page) */
#artist-news .artist-links,
#artist-details .artist-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

/* === Responsive grid for artist cards === */
.artists-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

/* === BUTTONS === */
.btn,
button,
.album-more-btn,
.artist-more-btn,
.filter-bar button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    background: var(--color-highlight) !important;
    color: var(--color-bg) !important;
    border: none;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: none !important;
    outline: none;
    display: inline-block;
    margin-top: 10px;
    padding: 6px 18px;
    text-decoration: none;
}
.btn:hover,
.btn:focus,
.album-more-btn:hover,
.album-more-btn:focus,
button:hover,
.artist-more-btn:hover,
.filter-bar button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
button:focus,
.artist-more-btn:focus,
.filter-bar button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus {
    background: var(--color-text) !important;
    color: var(--color-bg) !important;
    text-decoration: none;
}

/* === HAMBURGER MENU === */
.nav-toggle {
    display: none;
    background: var(--color-bg) !important;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 1001;
    padding: 8px;
    border-radius: var(--radius-btn);
}
.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-highlight) !important;
    position: relative;
    border-radius: 2px;
    transition: background 0.2s;
    margin: 7px 0;
}
.hamburger::before,
.hamburger::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-highlight) !important;
    position: absolute;
    border-radius: 2px;
    transition: transform 0.2s;
    margin: 7px 0;
}
.hamburger::before {
    top: -9px;
}
.hamburger::after {
    top: 9px;
}

/* === FOOTER === */
footer {
    width: 100vw;
    margin: 32px 0 0 0;
    text-align: center;
    padding: 18px 0;
    color: var(--color-text) !important;
    font-size: 1rem;
    background: var(--color-bg) !important;
    border-top: 1.5px solid var(--color-border) !important;
    border-radius: 0 0 var(--radius-main) var(--radius-main);
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    margin-top: auto;
}

/* === NAVIGATION === */
nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 18px;
    font-size: 1rem;
    padding: 8px 0 12px 0;
    background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg) 100%) !important;
    border-bottom: 1.5px solid var(--color-border) !important;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    position: relative;
}
nav a {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-highlight) !important;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: var(--radius-btn);
    transition: background 0.2s, color 0.2s;
}
nav a:hover,
nav a.active {
    background: var(--color-highlight) !important;
    color: var(--color-bg) !important;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(86,98,70,0.18);
    border-bottom: 3px solid var(--color-text) !important;
}

/* === NEWS ARTICLE STYLES === */
.news-article {
    margin-bottom: 32px;
}

.news-flex {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.news-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-main);
    flex-shrink: 0;
    background: var(--color-border);
    box-shadow: var(--shadow-light);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 6px;
}

.news-title {
    font-family: var(--font-heading);
    color: var(--color-highlight);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    /* Remove margin-bottom here, handled by .news-header */
    display: inline;
}

.news-date {
    color: var(--color-highlight);
    font-size: 0.97rem;
    opacity: 0.55;
    margin: 0
    font-weight: normal;
    display: inline;
}

.news-summary {
    color: var(--color-text);
    margin-bottom: 10px;
}

.news-more-btn {
    background: var(--color-highlight);
    color: var(--color-bg);
    border: none;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: none;
    outline: none;
    display: inline-block;
    padding: 6px 18px;
    text-decoration: none;
    margin-top: 6px;
    align-self: flex-start;
    width: auto;
    min-width: 0;
    max-width: 100%;
}
.news-more-btn:hover,
.news-more-btn:focus {
    background: var(--color-text);
    color: var(--color-bg);
}

/* === Add padding to the right-hand column info on the artist page */
#artist-news {
    padding: 18px 18px 18px 18px;
    box-sizing: border-box;
}

/* === Ensure front-columns children have equal width and align with the welcome column */
.front-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.front-columns > div {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.about-section,
.news-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 32px 0;
}

/* === Welcome Container === */
.welcome-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 32px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* === NEWS CONTAINER === */
.news-container {
    max-width: 1100px;
    width: 100%;
    margin: 40px auto 32px auto; /* Increased top margin for spacing from nav */
    padding: 0 16px;
    box-sizing: border-box;
}

/* === RESPONSIVE MEDIA QUERIES === */
@media (max-width: 900px) {
    .front-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
@media (max-width: 700px) {
    .nav-toggle {
        display: block;
        margin: 20px;
    }
    nav {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-size: 0.95rem;
        background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg) 100%);
        border-bottom: 2px solid var(--color-highlight);
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
        left: 50%;
        right: 50%;
        transform: translateX(-50%);
        position: relative;
        z-index: 1000;
    }
    nav.open {
        display: flex;
    }
    .container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .about-section,
    .front-columns {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 0 8px;
    }
    .about-section,
    .news-section {
        padding: 16px 6px;
        margin-left: auto;
        margin-right: auto;
    }
    #latest-release-section,
    .news-section {
        width: 100%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .artist-card {
        padding: 10px 4px;
    }
    .artist-img {
        max-width: 98vw;
    }
    .filter-bar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 12px 4px;
    }
    .title h1 {
        font-size: 40px;
    }
    .release-img {
        max-width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .news-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .news-img {
        margin: 0 auto;
        width: 90vw;
        max-width: 320px;
        height: 90vw;
        max-height: 320px;
        display: block;
    }
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .news-title {
        display: block;
        margin-bottom: 2px;
    }
    .news-date {
        display: block;
        margin-left: 0;
    }
    .news-more-btn {
        align-self: flex-end;
        margin-right: 0;
        margin-left: auto;
    }
    .news-content {
        padding: 0 10px 10px 10px;
    }
}
@media (max-width: 500px) {
    nav {
        font-size: 0.82rem;
    }
    .about-section,
    .news-section {
        padding: 10px 2px;
    }
    .filter-bar {
        gap: 8px;
    }
}


