/* ============================================
   LP Collection - Retro Modern Vinyl Theme
   ============================================ */

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-card: #222222;
    --bg-hover: #2a2a2a;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #e85d26;
    --accent-hover: #ff6b35;
    --accent-glow: rgba(232, 93, 38, 0.3);
    --gold: #d4a843;
    --groove-line: #333333;
    --border: #333333;
    --success: #4caf50;
    --error: #ef5350;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

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

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Navbar */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent);
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-search { flex: 1; max-width: 500px; }

.search-form { display: flex; gap: 0; }

.search-input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus { border-color: var(--accent); }

.search-btn {
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    transition: background 0.2s;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

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

.nav-link:hover { color: var(--text-primary); }
.nav-link-accent { color: var(--accent); }
.nav-link-accent:hover { color: var(--accent-hover); }
.nav-user { color: var(--gold); font-weight: 500; font-size: 0.9rem; }

/* Main content */
main { flex: 1; padding: 32px 20px; }

/* Hero section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.hero-search {
    max-width: 600px;
    margin: 32px auto 0;
}

.hero-search .search-form { box-shadow: 0 0 30px var(--accent-glow); border-radius: var(--radius); }

/* Album grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.album-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.album-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--bg-secondary);
    display: block;
}

.album-card-info { padding: 14px; }

.album-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-card-artist {
    color: var(--text-secondary);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-card-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Album detail page */
.album-detail { display: grid; grid-template-columns: 350px 1fr; gap: 40px; margin: 32px 0; }

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.album-info h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.album-artist {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.album-artist a { color: var(--accent); text-decoration: none; }
.album-artist a:hover { text-decoration: underline; }

.album-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.meta-tag {
    background: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.meta-tag.accent { background: var(--accent); color: white; }

/* Release selector */
.release-selector {
    margin: 24px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.release-selector label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.release-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 0.95rem;
    cursor: pointer;
}

/* Track listing */
.tracklist { margin: 24px 0; }

.tracklist h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--groove-line);
}

.track {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--groove-line);
    gap: 16px;
}

.track:last-child { border-bottom: none; }

.track-number {
    width: 32px;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.track-name { flex: 1; font-size: 0.95rem; }

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

/* Release details */
.release-details { margin: 16px 0; }

.detail-row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.9rem;
}

.detail-label {
    color: var(--text-muted);
    min-width: 120px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.detail-value { color: var(--text-secondary); }

/* Collection actions */
.collection-actions { margin: 24px 0; display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-hover); }
.btn-small { padding: 6px 14px; font-size: 0.8rem; }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { opacity: 0.9; }

/* Forms */
.form-card {
    max-width: 440px;
    margin: 40px auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-card h2 {
    text-align: center;
    margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--accent); }

.form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Honeypot - invisible to users */
.ohnohoney { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; }

/* Collections */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.collection-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.collection-card:hover { transform: translateY(-2px); }

.collection-card h3 { margin-bottom: 8px; font-size: 1.1rem; }

.collection-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.collection-count {
    font-family: var(--font-mono);
    color: var(--gold);
    font-size: 0.85rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.pagination a {
    background: var(--bg-card);
    color: var(--text-primary);
    transition: background 0.2s;
}

.pagination a:hover { background: var(--bg-hover); }
.pagination .active { background: var(--accent); color: white; }
.pagination .disabled { color: var(--text-muted); pointer-events: none; }

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: var(--radius);
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--error); }

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-content { flex-wrap: wrap; gap: 12px; }
    .nav-search { order: 3; flex: 0 0 100%; max-width: none; }
    .album-detail { grid-template-columns: 1fr; }
    .album-detail .album-cover { max-width: 350px; margin: 0 auto; }
    .hero h1 { font-size: 2rem; }
    .album-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
}

/* PoW status */
.pow-status {
    text-align: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin: 12px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pow-status.solving { color: var(--gold); }
.pow-status.solved { color: var(--success); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state h3 { margin-bottom: 12px; color: var(--text-secondary); }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 480px;
    width: 90%;
}

.modal h3 { margin-bottom: 16px; }
