/* CSS Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --text-muted: #888888;
    --border-color: #e8e8e8;
    --shadow: rgba(0,0,0,0.08);
    --accent: #4ade80;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #262626;
        --text-primary: #f5f5f5;
        --text-secondary: #d1d5db;
        --text-muted: #9ca3af;
        --border-color: #374151;
        --shadow: rgba(0,0,0,0.3);
        --accent: #4ade80;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding: 20px 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

/* Hamburger Menu */
.hamburger {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    z-index: 1001;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px var(--shadow);
}

.mobile-nav.active {
    right: 0;
}

/* Mobile full screen */
@media (max-width: 600px) {
    .mobile-nav {
        width: 100vw;
        right: -100vw;
        border-left: none;
        box-shadow: none;
    }
    
    .mobile-nav.active {
        right: 0;
    }
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 25px;
}

.mobile-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--accent);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Post Layout */
.post {
    background: var(--bg-primary);
    padding: 0px 0 30px 0;
    transition: background-color 0.3s ease;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px; /* Reduced from 30px to stack with author */
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}

.post-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 35px; /* Increased from 25px to 35px for a bit more space */
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}

.album-container {
    text-align: center;
    margin-bottom: 30px;
}

.album-art {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.album-art:hover {
    transform: scale(1.02);
}

.song-info {
    text-align: center;
    margin-bottom: 30px;
}

.song-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.artist-name {
    font-size: 1rem;
    color: var(--text-secondary);
}

.player {
    margin: 30px 0;
    text-align: center;
}

.player iframe {
    border-radius: 8px;
    max-width: 100%;
}

.writeup {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.writeup p {
    margin-bottom: 18px;
}

.writeup p:last-child {
    margin-bottom: 0;
}

/* Footer Navigation */
.nav-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.nav-btn {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.nav-btn:hover {
    color: var(--text-secondary);
}

.nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.nav-center {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-secondary);
}

.tagline {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 15px;
    font-style: italic;
}

/* Archive Page */
.archive-list {
    list-style: none;
}

.archive-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.archive-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.archive-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.archive-title a:hover {
    color: var(--accent);
}

.archive-artist {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.archive-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    header {
        margin-bottom: 0px;
        padding: 20px 0 10px 0; /* Reduced bottom padding from 20px to 10px */
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .album-art {
        width: 240px;
        height: 240px;
    }
    
    .post {
        padding: 24px 0;
    }

    .nav-links {
        gap: 20px;
    }

    .song-title {
        font-size: 1.2rem;
    }

    .post-nav {
        flex-direction: row;
        gap: 0;
        justify-content: space-between;
    }

    .nav-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Clean blockquote styling with flexbox */
.writeup blockquote {
    margin: 25px 0;
    padding: 0;
    border: none;
    font-style: italic;
    color: var(--text-muted);
    white-space: pre-line;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.writeup blockquote::before {
    content: '';
    display: block;
    width: 3px;
    background: var(--border-color);
    margin-right: 20px;
    flex-shrink: 0;
    align-self: stretch;
}

.writeup blockquote p {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    flex: 1;
}

a {
    color: var(--text-primary);
    text-decoration: underline;
    transition: color 0.3s;
}

a:hover, a:focus {
    color: var(--accent);
    text-decoration: underline;
}

.writeup ul, .writeup ol {
    list-style-position: outside;
    padding-left: 2em;
    margin-left: 0;
}

.writeup ul li, .writeup ol li {
    padding-left: 0;
    text-indent: 0;
    margin-bottom: 0.5em;
}

/* For ordered lists, use decimal style */
.writeup ol {
    list-style-type: decimal;
}

img, .writeup img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}