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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #191414;
    color: #fff;
    min-height: 100vh;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #191414 0%, #282828 100%);
}

.login-container {
    text-align: center;
}

.login-card {
    background: #282828;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.logo {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1DB954;
}

.tagline {
    color: #b3b3b3;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.spotify-btn {
    background: #1DB954;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 500px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spotify-btn:hover {
    background: #1ed760;
    transform: scale(1.05);
}

/* Header */
header {
    background: #282828;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.header-content h1 {
    font-size: 1.8rem;
    color: #1DB954;
}

.settings-btn {
    background: #1DB954;
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 500px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background: #1ed760;
    transform: scale(1.05);
}

.social-links {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #1DB954;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.social-links a {
    color: #1DB954;
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1ed760;
}

.social-links span {
    color: #b3b3b3;
}

/* Main Content */
main {
    padding: 2rem;
}

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

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Loading & Error */
.loading {
    text-align: center;
    font-size: 1.2rem;
    color: #b3b3b3;
    padding: 2rem;
}

.error {
    background: #ff4444;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message {
    background: #1DB954;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Playlists Grid */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.playlist-card {
    background: #282828;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.playlist-card:hover {
    background: #3e3e3e;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.playlist-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.playlist-card h3 {
    font-size: 1rem;
    color: #fff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Swipe Container */
.swipe-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.progress-bar {
    background: #3e3e3e;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    background: #1DB954;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #b3b3b3;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.song-card {
    background: #282828;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.song-card img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.song-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.song-card p {
    color: #b3b3b3;
    margin-bottom: 0.25rem;
}

.swipe-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.swipe-btn {
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 500px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pass-btn {
    background: #ff4444;
    color: #fff;
}

.pass-btn:hover {
    background: #ff6666;
    transform: scale(1.05);
}

.keep-btn {
    background: #1DB954;
    color: #fff;
}

.keep-btn:hover {
    background: #1ed760;
    transform: scale(1.05);
}

.complete-message {
    text-align: center;
    padding: 3rem;
}

.complete-message h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.complete-message p {
    color: #b3b3b3;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Results Page */
.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.secondary-btn {
    background: #3e3e3e;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 500px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: #4e4e4e;
    transform: scale(1.05);
}

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

.result-section {
    background: #282828;
    padding: 1.5rem;
    border-radius: 12px;
}

.result-section h3 {
    margin-bottom: 1rem;
    color: #1DB954;
}

.song-list {
    list-style: none;
}

.song-list li {
    background: #3e3e3e;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.song-list li:hover {
    background: #4e4e4e;
}

.song-list strong {
    color: #fff;
}

.song-list span {
    color: #b3b3b3;
}

/* Settings Page */
.settings-card {
    background: #282828;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.settings-card h3 {
    color: #1DB954;
    margin-bottom: 1rem;
}

.user-info p {
    margin-bottom: 0.5rem;
    color: #b3b3b3;
}

.user-info strong {
    color: #fff;
}

.logout-btn {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 500px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff6666;
    transform: scale(1.05);
}

.social-links-large {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    background: #1DB954;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 500px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1ed760;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.4rem;
    }
    
    .playlists-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .song-card img {
        max-width: 250px;
        height: 250px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .swipe-buttons {
        flex-direction: column;
    }
}
