/* ===================================
   ALBUM RANKINGS PAGE STYLES
   ================================ */

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-link {
    color: #00ffff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 20px;
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.nav-link:hover {
    border-color: rgba(255, 0, 255, 0.8);
    background: rgba(255, 0, 255, 0.2);
    color: #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 10px;
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.3),
        0 0 60px rgba(0, 255, 255, 0.2);
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    color: #ff00ff;
    text-shadow: 
        0 0 20px rgba(255, 0, 255, 0.8),
        0 0 40px rgba(0, 255, 255, 0.6);
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2em;
    color: #00ffff;
    letter-spacing: 2px;
}

/* Filter Section */
.filter-section {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.filter-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    color: #00ffff;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #e0e0ff;
    border: 2px solid rgba(255, 0, 255, 0.4);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Courier Prime', monospace;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: rgba(0, 255, 255, 0.8);
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgba(255, 0, 255, 0.3);
    border-color: rgba(255, 0, 255, 0.8);
    color: #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.results-count {
    text-align: center;
    font-size: 1.1em;
    color: #00ffff;
    margin-top: 15px;
}

.results-count span {
    color: #ff00ff;
    font-weight: bold;
}

/* Albums List */
.albums-section {
    margin-bottom: 60px;
}

.albums-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Individual Album Card */
.album-card {
    display: grid;
    grid-template-columns: 80px 200px 1fr;
    gap: 25px;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 255, 0.4);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.album-card:hover::before {
    left: 100%;
}

.album-card:hover {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.4),
        0 0 50px rgba(0, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Rank Number */
.album-rank {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    font-weight: 900;
    color: #00ffff;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    min-width: 80px;
}

/* Album Cover */
.album-cover-container {
    position: relative;
}

.album-cover {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    transition: all 0.3s ease;
}

.album-card:hover .album-cover {
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    border-color: rgba(0, 255, 255, 0.8);
    transform: scale(1.05);
}

/* Placeholder for missing album art */
.album-cover-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    border: 2px solid rgba(255, 0, 255, 0.5);
}

/* Album Info */
.album-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.album-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6em;
    color: #ff00ff;
    margin: 0;
    letter-spacing: 1px;
}

.album-artist {
    font-size: 1.2em;
    color: #00ffff;
    margin: 0;
}

.album-genre {
    display: inline-block;
    font-size: 0.9em;
    color: #ffff00;
    background: rgba(255, 255, 0, 0.1);
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 0, 0.4);
    width: fit-content;
}

.album-rating {
    font-size: 1.1em;
    color: #00ff80;
    font-weight: bold;
}

.album-rating .stars {
    color: #ffff00;
    margin-right: 8px;
}

.album-review {
    font-size: 1em;
    color: #d4d4ff;
    line-height: 1.7;
    margin-top: 8px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 968px) {
    .album-card {
        grid-template-columns: 60px 150px 1fr;
        gap: 15px;
        padding: 20px;
    }

    .album-rank {
        font-size: 2em;
        min-width: 60px;
    }

    .album-cover,
    .album-cover-placeholder {
        width: 150px;
        height: 150px;
    }

    .album-name {
        font-size: 1.3em;
    }

    .album-artist {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .album-card {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .album-rank {
        font-size: 2.5em;
    }

    .album-cover-container {
        display: flex;
        justify-content: center;
    }

    .album-info {
        align-items: center;
    }

    .album-genre {
        margin: 0 auto;
    }

    .page-title {
        font-size: 2em;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
    /* ===================================
   NEW FEATURES - SORT & VIEW CONTROLS
   ================================ */

/* Control Groups */
.control-group {
    margin-bottom: 25px;
}

.control-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    color: #ff00ff;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

/* Sort Buttons */
.sort-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.sort-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #e0e0ff;
    border: 2px solid rgba(0, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Courier Prime', monospace;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    border-color: rgba(0, 255, 255, 0.8);
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.sort-btn.active {
    background: rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.8);
    color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* View Toggle Buttons */
.view-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.view-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #e0e0ff;
    border: 2px solid rgba(255, 255, 0, 0.4);
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Courier Prime', monospace;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn:hover {
    border-color: rgba(255, 255, 0, 0.8);
    background: rgba(255, 255, 0, 0.1);
    color: #ffff00;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.4);
    transform: translateY(-2px);
}

.view-btn.active {
    background: rgba(255, 255, 0, 0.3);
    border-color: rgba(255, 255, 0, 0.8);
    color: #ffff00;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

.btn-icon {
    font-size: 1.3em;
}

/* Listen Buttons (in Full View cards) */
.album-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.listen-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid rgba(0, 255, 0, 0.6);
    border-radius: 6px;
    color: #00ff00;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Courier Prime', monospace;
}

.listen-btn:hover {
    background: rgba(0, 255, 0, 0.4);
    border-color: rgba(0, 255, 0, 1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    transform: translateY(-2px);
}

/* ===================================
   LIST VIEW STYLES
   ================================ */

.album-list-item {
    display: grid;
    grid-template-columns: 80px 2fr 1.5fr 1fr auto;
    gap: 20px;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 255, 0.4);
    border-radius: 8px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.album-list-item:hover {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.3);
    transform: translateX(5px);
}

.album-list-rank {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    font-weight: 900;
    color: #00ffff;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.album-list-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    color: #ff00ff;
    font-weight: bold;
}

.album-list-artist {
    font-size: 1em;
    color: #00ffff;
}

.album-list-genre {
    font-size: 0.9em;
    color: #ffff00;
    background: rgba(255, 255, 0, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 0, 0.4);
    text-align: center;
}

.album-list-links {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.album-list-links .listen-btn {
    padding: 6px 12px;
    font-size: 0.85em;
}

/* Responsive for List View */
@media (max-width: 968px) {
    .album-list-item {
        grid-template-columns: 60px 1fr;
        gap: 15px;
    }

    .album-list-rank {
        grid-row: 1 / 4;
    }

    .album-list-name {
        grid-column: 2;
    }

    .album-list-artist {
        grid-column: 2;
    }

    .album-list-genre {
        grid-column: 2;
        width: fit-content;
    }

    .album-list-links {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .sort-buttons,
    .view-buttons {
        flex-direction: column;
        width: 100%;
    }

    .sort-btn,
    .view-btn,
    .filter-btn {
        width: 100%;
    }
}

}
