/* UI controls, buttons, and interface elements */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination-button {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.pagination-button:hover:not(:disabled) {
    background: linear-gradient(45deg, #A0522D, #CD853F);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.5);
}

.pagination-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.pagination-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-weight: bold;
    color: #FFD700;
}

.auth-section {
    text-align: center;
    margin-bottom: 40px;
}

.auth-button {
    background-color: #1db954;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.auth-button:hover {
    background-color: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

.auth-button:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
}

.status.success {
    background-color: rgba(29, 185, 84, 0.2);
    border: 1px solid #1db954;
}

.status.error {
    background-color: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
}

.status.info {
    background-color: rgba(0, 123, 255, 0.2);
    border: 1px solid #007bff;
}

.play-button {
    background: linear-gradient(45deg, #1db954, #1ed760);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.play-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.5);
}

.play-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.player-controls {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.control-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-button:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.control-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.current-track {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Artist Social Links */
.artist-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0 15px 0;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.social-link.spotify {
    background: rgba(30, 215, 96, 0.2);
    border-color: #1ed760;
}

.social-link.spotify:hover {
    background: #1ed760;
    box-shadow: 0 4px 12px rgba(30, 215, 96, 0.4);
}

.social-link.facebook {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.social-link.facebook:hover {
    background: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-link.instagram {
    background: linear-gradient(45deg, rgba(225, 48, 108, 0.2), rgba(253, 30, 84, 0.2));
    border-color: #e1306c;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #e1306c, #fd1d54);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.social-link.wikipedia {
    background: rgba(255, 255, 255, 0.1);
    border-color: #a2a9b1;
    font-family: Georgia, serif;
    font-weight: bold;
}

.social-link.wikipedia:hover {
    background: #a2a9b1;
    color: #000;
    box-shadow: 0 4px 12px rgba(162, 169, 177, 0.4);
}

/* Play Timer */
.play-timer {
    margin: 15px 0;
    padding: 0 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1db954, #1ed760);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-fill::after {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: monospace;
}

/* Genre Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.genre-filter {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 2px solid #FFD700;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 150px;
}

.genre-filter:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.genre-filter option {
    background: #333;
    color: white;
    padding: 8px;
}

.clear-filter {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.clear-filter:hover {
    background: linear-gradient(45deg, #A0522D, #CD853F);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.5);
}

.clear-filter:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* View Type Selection */
.view-type-section {
    margin: 15px 0;
    text-align: center;
}

.view-type-section label {
    margin-right: 10px;
    font-weight: 500;
    color: #2c3e50;
}

.view-type-select {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-type-select:hover {
    border-color: #3498db;
}

.view-type-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Search and Filter Controls */
.search-filter-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.search-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.5);
    color: #F5DEB3;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    background: rgba(0, 0, 0, 0.7);
}

.search-input::placeholder {
    color: rgba(245, 222, 179, 0.6);
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 215, 0, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    transform: translateY(-50%) scale(1.1);
}

.clear-search-btn.hidden {
    display: none;
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.genre-filter {
    padding: 10px 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #F5DEB3;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 150px;
}

.genre-filter:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.genre-filter option {
    background: #2C1810;
    color: #F5DEB3;
    padding: 5px;
}

.search-results-info {
    margin-top: 15px;
    text-align: center;
    color: #FFD700;
    font-style: italic;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Track List Controls */
.track-list-controls {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.randomize-button {
    background: linear-gradient(45deg, #6A0DAD, #8A2BE2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.randomize-button:hover:not(:disabled) {
    background: linear-gradient(45deg, #8A2BE2, #9370DB);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.5);
}

.randomize-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .search-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input-wrapper {
        min-width: 100%;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: center;
    }
    
    .genre-filter {
        flex: 1;
        max-width: 200px;
    }
    
    .randomize-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}