/* Musify - Dragon-themed Spotify Clone Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-navy: #01257D;
    --electric-blue: #00FFFF;
    --dark-navy: #001145;
    --light-navy: #0F3A8C;
    --dragon-gold: #FFD700;
    --dragon-fire: #FF6B35;
    --text-white: #FFFFFF;
    --text-gray: #B3B3B3;
    --text-dark: #000000;
    --hover-bg: rgba(0, 255, 255, 0.1);
    --border-color: rgba(0, 255, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #01257D 0%, #00FFFF 100%);
    --gradient-dragon: linear-gradient(135deg, #FF6B35 0%, #FFD700 100%);
    --shadow-dragon: 0 0 20px rgba(255, 107, 53, 0.3);
    --shadow-electric: 0 0 15px rgba(0, 255, 255, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-navy);
    color: var(--text-white);
    overflow: hidden;
}

/* App Container */
.app-container {
    display: flex;
    height: calc(100vh - 90px);
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--primary-navy) 0%, var(--dark-navy) 100%);
    padding: 20px;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    filter: drop-shadow(0 0 10px var(--electric-blue));
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-menu ul {
    list-style: none;
    margin-bottom: 30px;
}

.nav-menu li {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--hover-bg);
    color: var(--electric-blue);
    box-shadow: var(--shadow-electric);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-electric);
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 100%);
    overflow-y: auto;
    padding: 0;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(1, 37, 125, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navigation-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--electric-blue);
    color: var(--electric-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--electric-blue);
    color: var(--dark-navy);
    box-shadow: var(--shadow-electric);
}

.profile-btn {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-btn:hover {
    box-shadow: var(--shadow-electric);
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    display: none;
    padding: 40px;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Quick Picks */
.quick-picks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.quick-pick-item {
    background: var(--gradient-primary);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-electric);
}

.quick-pick-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-white);
}

/* Track Grid */
.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.track-card {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
}

.track-card:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: var(--shadow-electric);
}

.track-image {
    width: 100%;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-dragon);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-dragon);
}

.track-card:hover .play-overlay {
    opacity: 1;
}

.track-title {
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    color: var(--text-gray);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search */
.search-container {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

#searchInput {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-white);
    font-size: 16px;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: var(--shadow-electric);
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 100%);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.player-left {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.track-art {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--gradient-primary);
    object-fit: cover;
}

.track-details {
    min-width: 0;
}

.track-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.track-artist {
    color: var(--text-gray);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Player Center */
.player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: var(--electric-blue);
    background: var(--hover-bg);
    transform: scale(1.1);
}

.play-pause-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient-dragon);
    border: 3px solid var(--dragon-gold);
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-dragon);
}

.play-pause-btn:hover {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
    transform: scale(1.1);
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.time-display {
    font-size: 12px;
    color: var(--text-gray);
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-dragon);
    border-radius: 2px;
    transition: width 0.1s ease;
    position: relative;
}

/* Player Right */
.player-right {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider input {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Loading and Notification */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    font-size: 18px;
    color: var(--electric-blue);
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-navy);
    color: var(--text-white);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--electric-blue);
    z-index: 2000;
    box-shadow: var(--shadow-electric);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-color: var(--dragon-gold);
}

.notification.error {
    border-color: var(--dragon-fire);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .player-left,
    .player-right {
        flex: 0 0 150px;
    }

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

    .quick-picks {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 20px;
    }
}