/* styles.css - Responsive Music Dashboard */

/* Import Font Awesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Main Layout */
main {
    display: flex;
    min-height: 100vh;
}

/* Navigation Menu - Desktop Styles */
.main-menu {
    width: 280px;
    background: rgba(15, 15, 40, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    overflow-y: auto;
}

.user-info {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #5a2fc2;
    margin-bottom: 15px;
}

.user-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #aaa;
}

.user-info p:first-of-type {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin-top: 10px;
}

.nav-item {
    list-style: none;
    margin: 10px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ccc;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-item.active a,
.nav-item a:hover {
    background: linear-gradient(90deg, #5a2fc2, #8a4fff);
    color: white;
    transform: translateX(5px);
}

.nav-icon {
    font-size: 20px;
    width: 30px;
}

.nav-text {
    margin-left: 15px;
    font-size: 16px;
    font-weight: 500;
}

/* Main Content Area */
.content {
    flex: 1;
    display: flex;
    padding: 20px;
    gap: 20px;
    overflow-y: auto;
}

.left-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 400px;
}

/* Slider Container */
.slider-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.swiper {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px;
    color: white;
}

.slide-overlay h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.slide-overlay button {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    border: none;
    padding: 12px 25px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.slide-overlay button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.4);
}

.swiper-pagination {
    bottom: 20px !important;
}

/* Artists Section */
.artists h1,
.albums h1,
.recommended-songs h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.artist-container,
.album-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.artist {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.artist:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.artist img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #5a2fc2;
}

.artist p {
    font-weight: 500;
    font-size: 14px;
}

/* Albums Section */
.album {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.album:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.album-frame {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.album-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album h2 {
    font-size: 16px;
    margin-bottom: 5px;
}

.album p {
    font-size: 14px;
    color: #aaa;
}

/* Recommended Songs */
.song-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.song {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 10px;
}

.song:hover {
    background: rgba(255, 255, 255, 0.1);
}

.song-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-right: 15px;
    flex-shrink: 0;
}

.song-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(90, 47, 194, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song:hover .overlay {
    opacity: 1;
}

.overlay i {
    font-size: 24px;
    color: white;
}

.song-title {
    flex: 1;
}

.song-title h2 {
    font-size: 16px;
    margin-bottom: 5px;
}

.song-title p {
    font-size: 14px;
    color: #aaa;
}

.song span {
    font-size: 14px;
    color: #aaa;
}

/* Music Player */
.music-player {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
}

.album-cover {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    position: relative;
}

.album-cover img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #5a2fc2;
    animation: rotate 20s linear infinite;
    animation-play-state: paused;
}

.album-cover img.playing {
    animation-play-state: running;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.point {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: #5a2fc2;
    border-radius: 50%;
    z-index: 1;
}

.music-player h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.music-player p {
    color: #aaa;
    margin-bottom: 20px;
}

#progress {
    width: 100%;
    height: 6px;
    margin: 20px 0;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
}

#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8a4fff;
    cursor: pointer;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
}

.controls button {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.controls button:hover {
    background: rgba(138, 79, 255, 0.2);
    transform: scale(1.1);
}

.play-pause-btn {
    background: linear-gradient(90deg, #ff416c, #ff4b2b) !important;
    font-size: 28px !important;
}

/* Responsive Styles for Tablets */
@media (max-width: 1024px) {
    .content {
        flex-direction: column;
    }
    
    .right-content {
        max-width: 100%;
    }
    
    .artist-container,
    .album-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .swiper {
        height: 300px;
    }
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    .main-menu {
        width: 100%;
        flex-direction: row;
        padding: 15px;
        justify-content: space-between;
        position: sticky;
        top: 0;
    }
    
    .main-menu > div:first-child {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    .user-info {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .user-info img {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
    }
    
    .user-info p {
        display: none;
    }
    
    .user-info p:first-of-type {
        display: block;
        font-size: 18px;
        margin-top: 0;
    }
    
    .main-menu ul {
        display: flex;
        gap: 10px;
    }
    
    .nav-item a {
        padding: 10px;
        flex-direction: column;
        font-size: 12px;
    }
    
    .nav-text {
        margin-left: 0;
        margin-top: 5px;
        font-size: 12px;
    }
    
    .content {
        padding: 15px;
    }
    
    .left-content,
    .right-content {
        gap: 20px;
    }
    
    .slider-container h1,
    .artists h1,
    .albums h1,
    .recommended-songs h1 {
        font-size: 20px;
    }
    
    .swiper {
        height: 200px;
    }
    
    .slide-overlay h2 {
        font-size: 18px;
    }
    
    .slide-overlay button {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .artist-container,
    .album-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .artist img {
        height: 120px;
    }
    
    .album-cover {
        width: 150px;
        height: 150px;
    }
    
    .song-container {
        max-height: 400px;
    }
}

/* Responsive Styles for Small Mobile */
@media (max-width: 480px) {
    .main-menu {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    .main-menu > div:first-child {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .user-info {
        justify-content: center;
        width: 100%;
    }
    
    .main-menu ul {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-item a {
        padding: 8px;
    }
    
    .artist-container,
    .album-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .artist {
        padding: 10px;
    }
    
    .artist img {
        height: 100px;
    }
    
    .album {
        padding: 10px;
    }
    
    .album-frame {
        width: 50px;
        height: 50px;
    }
    
    .song {
        padding: 10px;
    }
    
    .song-img {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .song-title h2 {
        font-size: 14px;
    }
    
    .song-title p,
    .song span {
        font-size: 12px;
    }
    
    .album-cover {
        width: 120px;
        height: 120px;
    }
    
    .controls {
        gap: 20px;
    }
    
    .controls button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .play-pause-btn {
        font-size: 24px !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5a2fc2, #8a4fff);
    border-radius: 10px;
}