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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a1628, #1a3a52, #0f2440);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0066FF;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #0066FF;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    color: #fff;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

#user-info {
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(0, 102, 255, 0.2);
    border: 1px solid #0066FF;
    border-radius: 5px;
    display: inline-block;
}

#user-info.hidden {
    display: none;
}

/* Buttons */
button {
    padding: 10px 20px;
    margin-left: 10px;
    background: #0052CC;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover {
    background: #0044AA;
    transform: scale(1.05);
}

#spotify-btn {
    padding: 10px 20px;
    background: #0052CC;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

#spotify-btn:hover {
    background: #0044AA;
}

/* Sections */
.section {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    margin: 40px 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0f0c29;
    border-bottom: 3px solid #0052CC;
    padding-bottom: 10px;
    display: inline-block;
}

/* League Navigation */
.league-nav {
    background: rgba(0, 82, 204, 0.1);
    border: 1px solid #0052CC;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
}

.league-nav h3 {
    color: #0f0c29;
    margin-bottom: 15px;
    font-size: 1rem;
}

.league-nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.league-nav-list li a {
    display: inline-block;
    padding: 6px 14px;
    background: #0052CC;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.league-nav-list li a:hover {
    background: #0044AA;
    transform: scale(1.05);
}

/* League Sections */
.league-section {
    margin-bottom: 60px;
}

.league-title {
    font-size: 2rem;
    color: #0f0c29;
    margin-bottom: 5px;
    border-bottom: 3px solid #0052CC;
    padding-bottom: 10px;
    display: inline-block;
}

.league-info {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.league-description {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-style: italic;
    line-height: 1.5;
}

/* Grids */
.rounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.round-card {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.round-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #0052CC;
}

.round-card h3 {
    color: #0f0c29;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.round-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.round-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.playlist-link {
    display: inline-block;
    padding: 8px 16px;
    background: #0052CC;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.playlist-link:hover {
    background: #0044AA;
    transform: scale(1.05);
}

/* All Songs Archive */
.songs-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-top: -15px;
    margin-bottom: 25px;
    font-style: italic;
}

.songs-search {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}

#songs-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #0052CC;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

#songs-search-input:focus {
    outline: none;
    border-color: #0044AA;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.songs-count {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 14px;
    background: rgba(0, 82, 204, 0.1);
    border-radius: 20px;
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.song-card {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.song-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0052CC;
}

.song-name {
    color: #0f0c29;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    color: #0052CC;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-album {
    color: #999;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.song-link {
    display: inline-block;
    padding: 4px 8px;
    background: #0052CC;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.song-link:hover {
    background: #0044AA;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .league-nav-list {
        flex-direction: column;
        gap: 8px;
    }

    .league-nav-list li a {
        width: 100%;
        text-align: center;
    }

    .rounds-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 30px 15px;
    }

    .league-title {
        font-size: 1.5rem;
    }

    .league-section {
        margin-bottom: 40px;
    }

    .songs-search {
        flex-direction: column;
        gap: 10px;
    }

    #songs-search-input {
        width: 100%;
    }

    .songs-count {
        width: 100%;
        text-align: center;
    }

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