/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 2rem 0;
    color: white;
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main content */
.main {
    flex: 1;
    padding-bottom: 2rem;
}

/* Form card */
.form-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.description {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Form styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.input-group input {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.help-text {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e1e5e9;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

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

.loading .spinner {
    display: block;
}

.loading .btn-text {
    display: none;
}

/* Results section */
.results-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Artist info */
.artist-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e5e9;
}

.artist-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: block;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.artist-name {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.artist-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 2rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #495057;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Release cards */
.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.release-card {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.release-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.release-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.release-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.release-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.release-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.release-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.catalog-metadata {
    background: #f1f3f4 !important;
    border: 1px solid #e1e5e9;
}

.catalog-metadata strong {
    color: #495057;
}

.tracks-list {
    margin-top: 1rem;
    max-height: 250px;
    overflow-y: auto;
}

.track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

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

.track-number {
    color: #7f8c8d;
    font-weight: 500;
    width: 35px;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.track-name {
    flex: 1;
    margin: 0 0.5rem;
    color: #495057;
    line-height: 1.3;
}

.track-duration {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.track-legend {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* Export section */
.export-section {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
    flex-wrap: wrap;
}

/* Error section */
.error-card {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 1.5rem;
    color: #c33;
}

.error-card h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .results-section {
        padding: 1.5rem;
    }
    
    .artist-stats {
        gap: 1rem;
    }
    
    .releases-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab.active {
        border-left-color: #667eea;
        border-bottom-color: transparent;
    }
    
    .export-section {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .release-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .release-cover {
        width: 120px;
        height: 120px;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }