/* Oasis Tour Memory Mapper – warm, album-cover-inspired styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cream: #FDF6E3;
    --deep-blue: #1B2A4A;
    --amber: #D98C2E;
    --warm-gray: #5C5B5A;
    --soft-white: #FFFFFF;
    --green-shared: #2E7D32;
    --amber-unique: #E67E22;
    --light-cream: #FFF9EF;
    --border-soft: #E0D6C2;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--deep-blue);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-header {
    background-color: var(--deep-blue);
    color: var(--cream);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cream);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.logo svg {
    color: var(--amber);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.main-nav a:hover,
.main-nav a:focus {
    border-bottom-color: var(--amber);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #2E3D5E 100%);
    color: var(--cream);
    text-align: center;
    padding: 3rem 1.5rem;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto;
}

/* Workspace */
.mapper-workspace {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.workspace-controls {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.show-selector {
    flex: 1 1 280px;
    background: var(--soft-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}

.show-selector label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--deep-blue);
}

.preset-dropdown {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    background: var(--light-cream);
}

.custom-show input,
.custom-show textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background: var(--light-cream);
}

.custom-show textarea {
    resize: vertical;
}

.swap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    color: var(--amber);
}

.workspace-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--amber);
    color: var(--deep-blue);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #c47a1a;
}

.btn-secondary {
    background-color: var(--soft-white);
    color: var(--deep-blue);
    border: 1px solid var(--border-soft);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

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

.comparison-panel {
    background: var(--soft-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    min-height: 200px;
    box-shadow: var(--shadow-card);
}

.empty-state {
    text-align: center;
    color: var(--warm-gray);
    padding: 2rem;
}

.empty-hint {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Comparison result styles (built by JS) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.setlist-column {
    background: var(--light-cream);
    border-radius: 10px;
    padding: 1rem;
}

.setlist-column h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.setlist-column .venue-date {
    font-size: 0.85rem;
    color: var(--warm-gray);
    margin-bottom: 1rem;
}

.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px dotted var(--border-soft);
    font-size: 0.95rem;
}

.song-item.shared {
    background-color: rgba(46, 125, 50, 0.08);
    border-left: 4px solid var(--green-shared);
}

.song-item.unique {
    border-left: 4px solid var(--amber-unique);
}

.song-title {
    font-weight: 500;
}

.rarity-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rarity-rare {
    background: #FDE8E8;
    color: #A12B2B;
}

.rarity-uncommon {
    background: #FEF3C7;
    color: #92400E;
}

.rarity-regular {
    background: #E0E7FF;
    color: #3730A3;
}

.fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.3rem;
}

/* Memory Timeline */
.memory-timeline {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.memory-timeline h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--deep-blue);
}

.memories-list {
    background: var(--soft-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    min-height: 100px;
    box-shadow: var(--shadow-card);
}

.empty-memory {
    color: var(--warm-gray);
    text-align: center;
    padding: 1.5rem;
}

.memory-entry {
    border-bottom: 1px solid var(--border-soft);
    padding: 0.75rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
}

.memory-entry:last-child {
    border-bottom: none;
}

.memory-date {
    font-weight: 700;
    min-width: 120px;
}

.memory-venue {
    color: var(--warm-gray);
    flex: 1;
}

.memory-songs {
    font-size: 0.85rem;
    color: var(--deep-blue);
    width: 100%;
}

/* Supporting Content */
.supporting-content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.supporting-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--deep-blue);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.support-card {
    background: var(--soft-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.support-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--deep-blue);
}

.support-card p {
    font-size: 0.95rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* Ad slot */
.ad-slot-container {
    max-width: 720px;
    margin: 2rem auto;
    text-align: center;
    padding: 0 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--deep-blue);
    color: var(--cream);
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--cream);
    text-decoration: none;
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-note {
    width: 100%;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .workspace-controls {
        flex-direction: column;
    }
    .swap-icon {
        align-self: center;
        transform: rotate(90deg);
        padding-top: 0;
    }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .workspace-actions {
        flex-direction: column;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
