/* --- Fonts and Variables --- */
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Regular.ttf") format("truetype");
    font-weight: normal;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Bold.ttf") format("truetype");
    font-weight: bold;
}

:root {
    --bg-color: #1a1d24;
    --text-color: #f0f4f8;
    --primary-accent: #4d908e;
    --secondary-accent: #277da1;
    --container-width: 1200px;
}

/* --- Global Styles --- */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
}

/* --- Header --- */
header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    text-decoration: none;
}

.logo img {
    max-height: 40px;
    width: 150px;
    display: block;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.2s ease-in-out;
}

nav a:hover {
    color: var(--primary-accent);
}

/* --- Homepage Hero Layout --- */
.home-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.home-layout-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hero-full-page {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    color: white;
    background: #000 url("/assets/static/hero-1.jpg") center center/cover
        no-repeat;
}

.hero-full-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-full-page h1 {
    font-size: 3.5rem;
    margin: 0;
}

.hero-full-page h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 1rem 0 2rem;
}

/* --- General Button Styles --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 2px solid transparent;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    margin: 0 0.5rem;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.btn-secondary {
    border-color: var(--secondary-accent);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-accent);
}

/* --- Generic Page Content Styles --- */
.page-header {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

.content-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-container p,
.content-container li,
.release-details p,
.artist-bio p,
.post-content p,
.post-content li {
    line-height: 1.8;
    font-size: 1.1rem;
}

.release-body-text p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* --- Releases Page --- */
.release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.release-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    display: block;
}

.release-card picture,
.release-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.release-card:hover picture,
.release-card:hover img {
    transform: scale(1.1);
}

.release-card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.release-card:hover .release-card-overlay {
    opacity: 1;
}

.release-card-overlay .artist {
    font-weight: bold;
    font-size: 1.2rem;
}
.release-card-overlay .title {
    font-size: 1rem;
}

/* --- Single Release Page --- */
.release-page-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.release-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.release-cover picture,
.release-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.release-details .artist-name {
    font-weight: bold;
    color: var(--primary-accent);
}
.release-details h1 {
    font-size: 2.8rem;
    margin: 0.5rem 0 1.5rem;
}
.release-meta {
    display: block;
    margin-top: 1rem;
    opacity: 0.8;
}

.buy-links {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-buy {
    display: block;
    padding: 0.8rem;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: opacity 0.2s ease-in-out;
    color: white;
}

.btn-buy:hover {
    opacity: 0.8;
}
.btn-buy.apple {
    background-color: #f2557c;
}
.btn-buy.spotify {
    background-color: #1db954;
}
.btn-buy.juno {
    background-color: #004278;
}
.btn-buy.bandcamp {
    background-color: #629aa9;
}

.bandcamp-player {
    max-width: 700px;
    margin: 4rem auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.related-releases {
    grid-column: 1 / -1; /* Make it span the full width of the grid */
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.related-releases h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Release Credits */
.release-credits {
  margin-top: 2rem;
  border-top: 1px solid var(--color-border, #333); /* Optional: nice separator line */
  padding-top: 1rem;
}

.release-credits ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-style: italic; /* This creates the requested look */
  color: var(--color-text-muted, #ccc); /* Optional: makes it slightly softer than body text */
}

.release-credits li {
  margin-bottom: 0.25rem;
}

/* --- Artists Page --- */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.artist-card {
    text-decoration: none;
    color: var(--text-color);
    background-color: #2a2d34;
    border-radius: 5px;
    overflow: hidden;
    transition:
        transform 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.artist-card-photo {
    aspect-ratio: 1 / 1;
}

.artist-card-photo picture,
.artist-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-card-name {
    padding: 1.2rem;
    text-align: center;
}
.artist-card-name h3 {
    margin: 0;
    font-size: 1.2rem;
}

/* --- Single Artist Page --- */
.artist-page-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.artist-page-photo picture,
.artist-page-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.artist-page-details h1 {
    font-size: 3rem;
    margin-top: 0;
}

.artist-releases {
    max-width: var(--container-width);
    margin: 4rem auto;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.artist-releases h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* --- News Page & Content Pages --- */
.post-list-container,
.post-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-list li a {
    display: block;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.post-list li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.post-list h2 {
    margin: 0 0 0.5rem;
    color: var(--primary-accent);
}
.post-list time {
    font-size: 0.9rem;
    opacity: 0.7;
}

.post-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.post-header time {
    font-size: 1rem;
    opacity: 0.7;
    display: block;
    margin-bottom: 2rem;
}

/* --- Contact and Community Pages --- */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #2a2d34;
    color: var(--text-color);
    border-radius: 5px;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
}

form .btn {
    width: 100%;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 3rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-link {
    display: block;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    border-radius: 5px;
    transition: opacity 0.2s ease-in-out;
}

.social-link:hover {
    opacity: 0.85;
}
.social-link.facebook {
    background-color: #1877f2;
}
.social-link.instagram {
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%,
        #fdf497 5%,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
}
.social-link.bluesky {
    background-color: #0070ff;
}
.social-link.youtube {
    background-color: #ff0000;
}

.social-link.bandcamp {
    background-color: #629aa9;
}

.newsletter-signup {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.mailchimp-placeholder {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 5px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    opacity: 0.7;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-layout footer {
    margin-top: 0;
}

.error-container {
  text-align: center;
  padding: 100px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.error-container h1 {
  font-size: 8rem;
  margin: 0;
  color: var(--accent-color, #4d908e); /* Using your accent or a default */
  line-height: 1;
}

.error-container h2 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.error-container p {
  margin-bottom: 40px;
  font-size: 1.2rem;
  opacity: 0.8;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    nav a {
        margin: 0 0.5rem;
    }

    /* Hero */
    .hero-full-page h1 {
        font-size: 2.5rem;
    }
    .hero-full-page h2 {
        font-size: 1.2rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }
    .btn {
        width: 80%;
        text-align: center;
    }

    /* Grids */
    .release-grid,
    .artist-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 0 1rem 3rem;
    }

    /* Page Layouts */
    .release-page-grid,
    .artist-page-container {
        grid-template-columns: 1fr;
    }

    /* Community Page */
    .social-links {
        grid-template-columns: 1fr;
    }
}
