/* ============================================================================
   Satellite Landing Pages — Genius Editorial Style
   ============================================================================ */

/* CSS Variables — Genius palette */
:root {
    --bg: #ffffff;
    --bg-alt: #f7f7f7;
    --bg-card: #ffffff;
    --text: #111;
    --text-secondary: #333;
    --text-muted: #999;
    --primary: #F5C518;
    --primary-dark: #d4a913;
    --primary-text: #111;
    --border: #e5e5e5;
    --radius: 0px;
    --radius-sm: 0px;
    --accent-pink: #e91e8c;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================================
   Base Styles
   ============================================================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-system);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================================
   Typography
   ============================================================================ */

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-xs);
    margin-top: var(--space-xl);
    color: var(--text);
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    margin-top: var(--space-lg);
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
}

strong, b {
    font-weight: 700;
    color: var(--text);
}

/* ============================================================================
   Layout Container
   ============================================================================ */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================================
   Header — thin top bar, uppercase
   ============================================================================ */

header {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.site-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.site-title:hover {
    color: var(--primary-dark);
}

/* ============================================================================
   Hero — bold, left-aligned, editorial
   ============================================================================ */

.hero {
    text-align: left;
    padding: 56px 24px 48px;
    background: var(--bg);
    color: var(--text);
    max-width: 800px;
    margin: 0 auto;
    border-bottom: 3px solid var(--text);
}

.hero h1 {
    color: var(--text);
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.hero-description,
.tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 28px;
}

/* ============================================================================
   Section Titles — uppercase, editorial
   ============================================================================ */

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 56px 0 8px;
    color: var(--text);
    text-align: left;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin: 0 0 32px;
}

/* ============================================================================
   Hero Subtitle & Badges
   ============================================================================ */

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 28px;
    font-style: italic;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 2px solid var(--border);
    color: var(--text-secondary);
}

.badge-year {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.badge-type {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.badge-tracks {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

/* ============================================================================
   CTA Button — sharp, uppercase, border
   ============================================================================ */

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: var(--primary-text);
    text-decoration: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.15s ease;
    border: 2px solid var(--text);
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    background: var(--text);
    color: var(--primary);
}

.cta-button:active {
    transform: none;
}

.cta-button svg {
    width: 18px;
    height: 18px;
}

/* ============================================================================
   Content Sections
   ============================================================================ */

.custom-content,
.storytelling,
.chart-intro,
.generic-intro {
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.custom-content p {
    color: var(--text-secondary);
}

.custom-content ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.custom-content li {
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

/* ============================================================================
   Content Blocks — hook, context, fun facts, composer
   ============================================================================ */

.content-block {
    padding: 32px 0;
}

.content-block h3 {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 0;
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.content-block p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-block ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.content-block li {
    margin-bottom: var(--space-xs);
    line-height: 1.7;
    color: var(--text-secondary);
}

.hook-content {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.context-content {
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.fun-facts-content {
    background: var(--bg-alt);
    padding: 32px 24px;
    margin: 24px -24px;
}

.composer-content {
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

/* ============================================================================
   Category Chips — horizontal tags, Genius-style
   ============================================================================ */

.categories-section {
    padding: 0;
}

.categories-section h2 {
    text-align: left;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 0 40px;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.15s ease;
}

.cat-chip:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.chip-count {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================================================
   Landing Cards — Genius editorial: borderless, tag with line above image
   ============================================================================ */

.featured-section {
    padding: 0;
    background: none;
}

.featured-section h2 {
    text-align: left;
}

.landing-cards-section {
    padding: 0;
}

.landing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px 24px;
    padding: 0 0 48px;
}

.landing-card {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    overflow: visible;
    text-decoration: none;
    color: inherit;
}

.landing-card:hover .card-title {
    color: var(--primary-dark);
}

/* Tag with horizontal line — Genius pattern: CATEGORY ————————— */
.card-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1;
}

.card-tag::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--text);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(245, 197, 24, 0.08) 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.card-image--placeholder {
    color: var(--primary);
}

.card-image--placeholder svg {
    opacity: 0.2;
}

.card-content {
    padding: 12px 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 6px;
    transition: color 0.15s ease;
}

.card-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

/* ============================================================================
   Track List — Genius chart style, border lines
   ============================================================================ */

.track-list {
    list-style: none;
    padding: 0;
    margin: 32px 0;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.track-item:first-child {
    border-top: 1px solid var(--border);
}

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

.track-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 32px;
    text-align: center;
}

.track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.track-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.track-artist {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.track-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    background: var(--primary);
    color: var(--primary-text);
}

.track-year {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Chart updated info */
.chart-updated {
    margin-top: 30px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.chart-updated p {
    text-align: center;
    color: var(--text-muted);
    margin: 0;
    font-size: 0.85rem;
}

/* ============================================================================
   Breadcrumbs — uppercase, Genius editorial
   ============================================================================ */

.breadcrumbs-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 24px 0;
}

.breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--text);
}

.breadcrumbs .separator {
    margin: 0 6px;
}

.breadcrumbs .current {
    color: var(--text-secondary);
}

/* ============================================================================
   Category Hero
   ============================================================================ */

.category-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.category-hero h1 {
    margin: 20px 0 16px;
}

.category-intro {
    max-width: 560px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.category-intro p {
    margin-bottom: 1em;
}

.empty-category {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* ============================================================================
   Related Section — border-top, editorial
   ============================================================================ */

.related-section {
    padding: 48px 0;
    /* No border/margin - this section is now at the bottom after CTA */
}

.related-section h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.related-card {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.15s;
}

.related-card:hover {
    border-color: var(--primary);
    background: rgba(245, 197, 24, 0.04);
}

.related-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.related-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    display: block;
    margin-bottom: 2px;
}

.related-category {
    font-size: 0.75rem;
    color: var(--accent-pink);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================================================
   Bottom CTA — dark background, gold button
   ============================================================================ */

/* ============================================================================
   Pagination
   ============================================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 0 16px;
}

.pagination-link {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}

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

.pagination-info {
    color: #888;
    font-size: 0.9rem;
}

/* ============================================================================
   Bottom CTA — dark background, gold button
   ============================================================================ */

.bottom-cta {
    text-align: center;
    padding: 56px 24px;
    background: var(--text);
    color: var(--bg);
    border-top: 3px solid var(--text);
    margin-top: 48px;
}

.bottom-cta h2,
.bottom-cta h3 {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: var(--bg);
}

.bottom-cta p {
    color: #999;
    margin-bottom: 28px;
    font-size: 1rem;
}

.bottom-cta .cta-button {
    background: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary);
}

.bottom-cta .cta-button:hover {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 640px) {
    :root {
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }

    .hero {
        padding: 40px 20px 36px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .error-code {
        font-size: 4rem;
    }

    .category-chips {
        gap: 8px;
    }

    .cat-chip {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .landing-cards {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .track-item {
        gap: 12px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .hero-badges {
        gap: 8px;
    }

    .fun-facts-content {
        margin: 16px -20px;
        padding: 24px 20px;
    }
}

/* ============================================================================
   Print Styles
   ============================================================================ */

@media print {
    .hero {
        border-bottom: 1px solid #000;
    }

    .cta-button {
        display: none !important;
    }

    .track-item {
        break-inside: avoid;
    }

    .bottom-cta {
        display: none !important;
    }
}
