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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f8f8;
    min-height: 100vh;
    padding: 0;
    color: #000;
    line-height: 1.6;
}

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

header {
    text-align: left;
    color: #000;
    margin-bottom: 40px;
    padding: 30px 0 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    font-size: 2em;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.9em;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.header-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

main {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.card {
    padding: 0;
    background: transparent;
}

.mode-selector {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border: 2px solid #000;
}

.mode-btn {
    flex: 1;
    padding: 12px 24px;
    background: #fff;
    color: #000;
    border: none;
    border-right: 2px solid #000;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.mode-btn:last-child {
    border-right: none;
}

.mode-btn:hover {
    background: #f0f0f0;
}

.mode-btn.active {
    background: #000;
    color: #fff;
}

.card h2 {
    color: #000;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.card h3 {
    color: #000;
    margin: 25px 0 15px 0;
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.card p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95em;
}

.steps, .instructions {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.steps ol, .instructions ol {
    padding-left: 25px;
}

.steps li, .instructions li {
    margin: 10px 0;
    line-height: 1.6;
}

.instructions ul {
    padding-left: 25px;
    margin-top: 10px;
}

.instructions code {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.instructions a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.instructions a:hover {
    text-decoration: underline;
}

.credentials-form {
    margin: 30px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    font-size: 0.95em;
    transition: border-color 0.2s;
    background: #fafafa;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

.btn-primary, .btn-secondary, .btn-buy {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}

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

.btn-secondary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

.btn-secondary:hover {
    background: #000;
    color: #fff;
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-buy:hover {
    background: #fff;
    color: #000;
}

.info {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.error {
    background: #fee;
    border-left: 4px solid #f44336;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    color: #c62828;
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

/* Loading overlay voor initial load */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 248, 248, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Inline loader voor "laad meer" - geen overlay */
#loading-more {
    position: relative;
    z-index: 1;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-subtext {
    color: #999;
    font-size: 0.9em;
}

.results {
    padding: 20px 0;
}

.stats {
    background: #000;
    color: #fff;
    padding: 25px;
    border-radius: 0;
    margin-bottom: 40px;
    text-align: center;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid #000;
}

.artist-card {
    background: #fff;
    padding: 30px;
    border-radius: 0;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.artist-card:hover {
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.artist-card h3 {
    color: #000;
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

.genres {
    margin-bottom: 20px;
}

.genre-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #000;
    padding: 6px 14px;
    border-radius: 0;
    font-size: 0.75em;
    margin-right: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid #e0e0e0;
}

.vinyl-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.vinyl-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vinyl-card:hover {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vinyl-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.vinyl-artwork {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vinyl-artwork-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vinyl-artwork-placeholder::before {
    content: '';
    width: 60%;
    height: 60%;
    background: #d0d0d0;
    border-radius: 50%;
    position: relative;
}

.vinyl-artwork-placeholder::after {
    content: '';
    position: absolute;
    width: 15%;
    height: 15%;
    background: #f0f0f0;
    border-radius: 50%;
    border: 3px solid #c0c0c0;
}

.vinyl-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.vinyl-artist {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    color: #000;
    min-height: 2.4em;
    line-height: 1.2em;
}

.vinyl-album {
    font-size: 0.8em;
    margin: 0;
    color: #666;
    line-height: 1.3;
    min-height: 2.6em;
}

.vinyl-price {
    font-size: 0.9em;
    font-weight: 700;
    margin: 5px 0;
    color: #000;
    margin-top: auto;
}

.vinyl-card-special {
    border: 2px solid #000;
}

.vinyl-card-special .vinyl-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #000;
    pointer-events: none;
}

.special-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
}

.delivery-badge {
    display: block;
    padding: 6px 10px;
    font-size: 0.65em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    border: 1px solid;
    margin-top: 8px;
}

.delivery-badge.in-stock {
    background: #f0f0f0;
    color: #000;
    border-color: #d0d0d0;
}

.delivery-badge.soon {
    background: #fff;
    color: #666;
    border-color: #e0e0e0;
}

.delivery-badge.later {
    background: #fafafa;
    color: #999;
    border-color: #e5e5e5;
}


footer {
    text-align: center;
    color: #666;
    padding: 60px 0 30px 0;
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .card {
        padding: 25px;
    }

    .vinyl-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .mode-selector {
        flex-direction: column;
    }

    .mode-btn {
        border-right: none;
        border-bottom: 2px solid #000;
    }

    .mode-btn:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .vinyl-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .vinyl-card-content {
        padding: 10px;
    }

    .vinyl-artist {
        font-size: 0.75em;
    }

    .vinyl-album {
        font-size: 0.7em;
    }
}
