/* Infinite Sidequest - Sleek Modern Theme */

:root {
    /* Dark mode (default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-hover: #222222;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent: #ffffff;
    --border: #222222;
    --header-bg: rgba(10, 10, 10, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --selection-bg: rgba(255, 255, 255, 0.2);
    --bandcamp-bg: rgba(64, 130, 148, 0.15);
    --bandcamp-border: rgba(64, 130, 148, 0.4);
    --bandcamp-bg-hover: rgba(64, 130, 148, 0.25);
    --bandcamp-border-hover: rgba(64, 130, 148, 0.6);
    --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color-scheme: dark;
}

/* Light mode */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #ffffff;
        --bg-secondary: #f5f5f5;
        --bg-tertiary: #ebebeb;
        --bg-hover: #e0e0e0;
        --text-primary: #111111;
        --text-secondary: #555555;
        --text-muted: #888888;
        --accent: #111111;
        --border: #dddddd;
        --header-bg: rgba(255, 255, 255, 0.95);
        --shadow-color: rgba(0, 0, 0, 0.15);
        --selection-bg: rgba(0, 0, 0, 0.15);
        --bandcamp-bg: rgba(64, 130, 148, 0.1);
        --bandcamp-border: rgba(64, 130, 148, 0.3);
        --bandcamp-bg-hover: rgba(64, 130, 148, 0.2);
        --bandcamp-border-hover: rgba(64, 130, 148, 0.5);
        color-scheme: light;
    }
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.site-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.site-logo h1 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--text-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

/* Releases Page */
.releases-page {
    width: 100%;
}

.releases-header {
    margin-bottom: 3rem;
}

.releases-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.releases-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.release-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.release-item:hover {
    background: var(--bg-hover);
}

.release-artwork {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.release-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-hover));
}

.release-info {
    flex: 1;
    min-width: 0;
}

.release-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.release-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.release-divider {
    color: var(--text-muted);
}

/* Release Detail Page */
.release-detail {
    max-width: 900px;
}

.release-hero {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.hero-artwork {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-color);
}

.hero-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.meta-divider {
    color: var(--text-muted);
}

.streaming-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.stream-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.stream-btn:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.stream-btn img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Bandcamp - Free Download highlight */
.stream-btn--bandcamp {
    background: var(--bandcamp-bg);
    border-color: var(--bandcamp-border);
}

.stream-btn--bandcamp:hover {
    background: var(--bandcamp-bg-hover);
    border-color: var(--bandcamp-border-hover);
}

.btn-text-stacked {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-text-main {
    font-weight: 500;
}

.btn-text-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

/* More button */
.stream-btn--more svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.release-content {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.release-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1.25rem 0;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.release-content h2:first-child {
    margin-top: 0;
}

.release-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.release-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.75rem 0;
}

.release-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Track credits styling */
.release-content h3 + p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Two-column track credits */
.track-credits {
    margin: 1rem 0;
}

.track-credits p {
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr;
    gap: 1.5rem;
    margin-bottom: 0.35rem;
    align-items: baseline;
}

.track-credits strong {
    color: var(--text-primary);
    font-weight: 500;
}

.track-credits span {
    color: var(--text-secondary);
    text-align: left;
}

@media (max-width: 500px) {
    .track-credits p {
        grid-template-columns: 1fr;
        gap: 0.1rem;
        margin-bottom: 0.75rem;
    }
    
    .track-credits span {
        padding-left: 0;
        font-size: 0.9rem;
    }
}

.release-content strong {
    color: var(--text-primary);
    font-weight: 500;
}

.release-content em {
    color: var(--text-muted);
}

.release-content ul,
.release-content ol {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.release-content li {
    margin-bottom: 0.5rem;
}

/* Release Credits Footer - Vinyl Style */
footer.release-credits {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    margin-top: 3rem;
    padding: 1.5rem 0 0 0;
    border-top: 2px solid var(--border);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
}

footer.release-credits .credits-left {
    justify-self: start;
    text-align: left;
}

footer.release-credits .credits-center {
    justify-self: center;
    text-align: center;
}

footer.release-credits .credits-right {
    justify-self: end;
    text-align: right;
}

@media (max-width: 600px) {
    footer.release-credits {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    
    footer.release-credits .credits-left,
    footer.release-credits .credits-center,
    footer.release-credits .credits-right {
        justify-self: center;
        text-align: center;
    }
}

.release-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text-primary);
}

/* Page Content */
.page-content {
    max-width: 700px;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.page-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-body h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    letter-spacing: -0.02em;
}

.page-body h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 500;
    margin: 2rem 0 0.75rem 0;
}

.page-body p {
    margin-bottom: 1.25rem;
}

.page-body a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-body a:hover {
    text-decoration: none;
}

.page-body ul,
.page-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }
    
    .header-content {
        padding: 0.875rem 1rem;
    }

    .site-logo {
        gap: 0.5rem;
    }
    
    .site-logo h1 {
        font-size: 0.85rem;
        line-height: 1.2;
        max-width: 5rem;
    }
    
    .site-icon {
        width: 36px;
        height: 36px;
    }

    .main-nav {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
    }

    .releases-header h2 {
        font-size: 2rem;
    }

    .release-item {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .release-artwork {
        width: 64px;
        height: 64px;
    }

    .release-title {
        font-size: 1rem;
    }

    .release-hero {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-artwork {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .streaming-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }
    
    .stream-btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
        justify-content: center;
        min-height: 3rem;
    }
    
    .stream-btn img {
        width: 18px;
        height: 18px;
    }
    
    .btn-text-sub {
        font-size: 0.6rem;
    }

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--selection-bg);
}

