/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Circular Std', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Variables */
:root {
    --spotify-green: #1db954;
    --spotify-black: #191414;
    --spotify-dark-gray: #121212;
    --spotify-gray: #282828;
    --spotify-light-gray: #b3b3b3;
    --spotify-white: #ffffff;
    --header-height: 64px;
    --player-height: 90px;
    --sidebar-width: 240px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--spotify-black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    border-bottom: 1px solid var(--spotify-gray);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--spotify-white);
}

.logo i {
    color: var(--spotify-green);
    font-size: 32px;
}

.nav-buttons {
    display: flex;
    gap: 8px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--spotify-light-gray);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-btn:hover {
    color: var(--spotify-white);
    background-color: var(--spotify-gray);
}

.nav-btn.active {
    color: var(--spotify-white);
    background-color: var(--spotify-gray);
}

.header-center {
    flex: 1;
    max-width: 364px;
    margin: 0 24px;
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--spotify-light-gray);
    font-size: 16px;
}

.search-bar input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background-color: var(--spotify-gray);
    border: none;
    border-radius: 24px;
    color: var(--spotify-white);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    background-color: #3e3e3e;
    box-shadow: 0 0 0 2px var(--spotify-white);
}

.search-bar input::placeholder {
    color: var(--spotify-light-gray);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--spotify-light-gray);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.header-btn:hover {
    color: var(--spotify-white);
    transform: scale(1.04);
}

.install-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signup-btn {
    color: var(--spotify-light-gray);
}

.login-btn {
    background-color: var(--spotify-white);
    color: var(--spotify-black);
    font-weight: 700;
}

.login-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.04);
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--spotify-white);
}

/* Main Container */
.main-container {
    display: flex;
    margin-top: var(--header-height);
    margin-bottom: var(--player-height);
    min-height: calc(100vh - var(--header-height) - var(--player-height));
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--spotify-black);
    padding: 24px 16px;
    overflow-y: auto;
    border-right: 1px solid var(--spotify-gray);
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: var(--player-height);
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--spotify-light-gray);
}

.create-playlist-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 0;
    background: none;
    border: none;
    color: var(--spotify-light-gray);
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 14px;
}

.create-playlist-btn:hover {
    color: var(--spotify-white);
}

.create-playlist-btn i {
    width: 24px;
    height: 24px;
    background-color: var(--spotify-light-gray);
    color: var(--spotify-black);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-size: 12px;
}

.playlist-prompt,
.podcast-prompt {
    background-color: var(--spotify-gray);
    padding: 16px;
    border-radius: 8px;
}

.playlist-prompt h4,
.podcast-prompt h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.playlist-prompt p,
.podcast-prompt p {
    font-size: 14px;
    color: var(--spotify-light-gray);
    margin-bottom: 16px;
    line-height: 1.4;
}

.create-btn,
.browse-btn {
    background-color: var(--spotify-white);
    color: var(--spotify-black);
    border: none;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-btn:hover,
.browse-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.04);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--spotify-light-gray);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--spotify-white);
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--spotify-light-gray);
    color: var(--spotify-white);
    padding: 8px 16px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 700;
}

.language-btn:hover {
    border-color: var(--spotify-white);
    transform: scale(1.04);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px;
    background: linear-gradient(180deg, var(--spotify-gray) 0%, var(--spotify-dark-gray) 300px);
    min-height: 100%;
}

.content-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.navigation-arrows {
    display: flex;
    gap: 8px;
}

.nav-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--spotify-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.nav-arrow:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.06);
}

.nav-arrow:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.content-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--spotify-white);
}

.show-all {
    color: var(--spotify-light-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.show-all:hover {
    color: var(--spotify-white);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.music-card,
.artist-card,
.album-card {
    background-color: var(--spotify-gray);
    padding: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.music-card:hover,
.artist-card:hover,
.album-card:hover {
    background-color: #3e3e3e;
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.artist-card .card-image {
    border-radius: 50%;
}

.card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--spotify-green);
    border: none;
    color: var(--spotify-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.music-card:hover .play-btn,
.artist-card:hover .play-btn,
.album-card:hover .play-btn {
    opacity: 1;
    transform: translateY(0);
}

.play-btn:hover {
    background-color: #1ed760;
    transform: scale(1.06);
}

.card-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--spotify-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info p {
    font-size: 14px;
    color: var(--spotify-light-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sign up banner */
.signup-banner {
    background: linear-gradient(90deg, #af2896, #509bf5);
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
}

.banner-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.banner-content p {
    font-size: 14px;
    color: var(--spotify-white);
}

.signup-free-btn {
    background-color: var(--spotify-white);
    color: var(--spotify-black);
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.signup-free-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.04);
}

/* Player Bar */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background-color: var(--spotify-gray);
    border-top: 1px solid #282828;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 180px;
    width: 30%;
}

.current-track {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-track img {
    width: 56px;
    height: 56px;
    border-radius: 4px;
}

.track-info h4 {
    font-size: 14px;
    font-weight: 400;
    color: var(--spotify-white);
    margin-bottom: 2px;
}

.track-info p {
    font-size: 11px;
    color: var(--spotify-light-gray);
}

.like-btn {
    background: none;
    border: none;
    color: var(--spotify-light-gray);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s ease;
}

.like-btn:hover {
    color: var(--spotify-white);
}

.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 722px;
}

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

.control-btn {
    background: none;
    border: none;
    color: var(--spotify-light-gray);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    padding: 8px;
}

.control-btn:hover {
    color: var(--spotify-white);
    transform: scale(1.06);
}

.play-pause-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--spotify-white);
    color: var(--spotify-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.play-pause-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.06);
}

.progress-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.time-current,
.time-total {
    font-size: 11px;
    color: var(--spotify-light-gray);
    min-width: 40px;
    text-align: center;
}

.progress-container {
    flex: 1;
    height: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.progress-bg {
    width: 100%;
    height: 4px;
    background-color: #5e5e5e;
    border-radius: 2px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: var(--spotify-white);
    border-radius: 2px;
    width: 30%;
    position: relative;
}

.progress-handle {
    width: 12px;
    height: 12px;
    background-color: var(--spotify-white);
    border-radius: 50%;
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-container:hover .progress-handle {
    opacity: 1;
}

.player-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    width: 30%;
    justify-content: flex-end;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-bar {
    width: 93px;
    height: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.volume-bg {
    width: 100%;
    height: 4px;
    background-color: #5e5e5e;
    border-radius: 2px;
    position: relative;
}

.volume-fill {
    height: 100%;
    background-color: var(--spotify-white);
    border-radius: 2px;
    width: 70%;
    position: relative;
}

.volume-handle {
    width: 12px;
    height: 12px;
    background-color: var(--spotify-white);
    border-radius: 50%;
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.volume-bar:hover .volume-handle {
    opacity: 1;
}

/* Responsive Design - Media Queries */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .main-content {
        padding: 32px;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .main-content {
        padding: 24px 16px;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    :root {
        --sidebar-width: 200px;
    }
    
    .header-center {
        max-width: 280px;
        margin: 0 16px;
    }
    
    .header-right .header-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .install-btn span {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .sidebar {
        width: var(--sidebar-width);
    }
    
    .main-content {
        margin-left: var(--sidebar-width);
        padding: 16px;
    }
    
    .player-left,
    .player-right {
        min-width: 140px;
        width: 25%;
    }
    
    .signup-banner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Small Tablet (576px to 767px) */
@media (max-width: 767px) {
    :root {
        --sidebar-width: 0px;
        --header-height: 56px;
        --player-height: 80px;
    }
    
    .header {
        height: var(--header-height);
        padding: 0 12px;
    }
    
    .header-left .nav-buttons {
        display: none;
    }
    
    .header-center {
        display: none;
    }
    
    .header-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        z-index: 1001;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px 12px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .music-card,
    .artist-card,
    .album-card {
        padding: 12px;
    }
    
    .card-info h4 {
        font-size: 14px;
    }
    
    .card-info p {
        font-size: 12px;
    }
    
    .player-bar {
        height: var(--player-height);
        padding: 0 12px;
    }
    
    .player-left {
        min-width: 120px;
        width: 35%;
    }
    
    .current-track img {
        width: 48px;
        height: 48px;
    }
    
    .track-info h4 {
        font-size: 12px;
    }
    
    .track-info p {
        font-size: 10px;
    }
    
    .player-center {
        gap: 6px;
    }
    
    .player-controls {
        gap: 12px;
    }
    
    .control-btn {
        font-size: 14px;
        padding: 6px;
    }
    
    .play-pause-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .player-right {
        min-width: 80px;
        width: 20%;
    }
    
    .volume-control {
        display: none;
    }
    
    .signup-banner {
        padding: 12px 16px;
    }
    
    .banner-content h3 {
        font-size: 14px;
    }
    
    .banner-content p {
        font-size: 12px;
    }
    
    .signup-free-btn {
        padding: 10px 24px;
        font-size: 12px;
    }
}

/* Mobile (up to 575px) */
@media (max-width: 575px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .music-card,
    .artist-card,
    .album-card {
        padding: 8px;
    }
    
    .section-header {
        margin-bottom: 12px;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
    
    .show-all {
        font-size: 12px;
    }
    
    .content-section {
        margin-bottom: 32px;
    }
    
    .player-left {
        min-width: 100px;
        width: 40%;
    }
    
    .current-track {
        gap: 8px;
    }
    
    .current-track img {
        width: 40px;
        height: 40px;
    }
    
    .like-btn {
        display: none;
    }
    
    .player-right {
        min-width: 60px;
        width: 15%;
    }
    
    .player-right .control-btn:not(:last-child) {
        display: none;
    }
    
    .progress-bar {
        gap: 8px;
    }
    
    .time-current,
    .time-total {
        font-size: 10px;
        min-width: 30px;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .header {
        padding: 0 8px;
    }
    
    .main-content {
        padding: 12px 8px;
    }
    
    .content-grid {
        gap: 6px;
    }
    
    .music-card,
    .artist-card,
    .album-card {
        padding: 6px;
    }
    
    .card-info h4 {
        font-size: 12px;
    }
    
    .card-info p {
        font-size: 11px;
    }
    
    .player-bar {
        padding: 0 8px;
    }
    
    .signup-banner {
        padding: 8px 12px;
    }
}

/* Hover effects for touch devices */
@media (hover: none) {
    .play-btn {
        opacity: 1;
        transform: translateY(0);
    }
    
    .progress-handle,
    .volume-handle {
        opacity: 1;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme by default */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    :root {
        --spotify-light-gray: #ffffff;
        --spotify-gray: #333333;
    }
    
    .nav-btn,
    .header-btn,
    .control-btn {
        border: 1px solid var(--spotify-light-gray);
    }
}

/* Print styles */
@media print {
    .header,
    .sidebar,
    .player-bar {
        display: none;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
        background: white;
        color: black;
    }
    
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

