/* ============================================================
   DANSBANDSRADIO.SE – SPOTIFY STYLE (PINK EDITION)
   ============================================================ */

/* ---------- ROOT COLORS ---------- */
:root {
    --bg-main: #ffe3ec;
    --bg-gradient: linear-gradient(180deg, #ff7aa2 0%, #ff9fb8 40%, #ffe3ec 100%);

    --card: rgba(255,255,255,0.85);
    --card-solid: #ffffff;

    --primary: #ff4f87;
    --primary-dark: #e63b72;

    --text: #1f1f1f;
    --text-muted: #6b6b6b;

    --radius: 18px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: 0.25s ease;
}

/* ---------- BASE ---------- */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    line-height: 1.6;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================================
   HEADER (Spotify Glass Style)
   ============================================================ */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    padding: 14px 10px;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 700;
}

header nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

header nav a,
.dropbtn {
    background: rgba(255,255,255,0.6);
    padding: 8px 14px;
    border-radius: 999px;
    transition: var(--transition);
}

header nav a:hover,
.dropbtn:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================================
   DROPDOWN
   ============================================================ */

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-solid);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
}

.dropbtn:focus + .dropdown-content,
.dropdown-content:hover {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
}

.dropdown-content a:hover {
    background: #f3f3f3;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */

main {
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 850px;
    padding: 140px 20px 120px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ============================================================
   CARDS (Spotify-like Panels)
   ============================================================ */

section,
.welcome-text {
    background: var(--card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

section h2 {
    margin-top: 0;
    color: var(--primary);
}

/* ============================================================
   NOW PLAYING
   ============================================================ */

#nowPlayingBox {
    text-align: center;
}

#nowPlaying {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================================
   SONG LIST (Spotify Cards)
   ============================================================ */

.song-list,
#playedList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.song-item,
.played-item {
    background: var(--card-solid);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.song-item:hover {
    transform: translateY(-3px);
}

.song-title {
    font-weight: 700;
}

.song-artist,
.played-time {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================================
   BUTTONS (Spotify Inspired)
   ============================================================ */

.request-btn,
.played-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.request-btn:hover,
.played-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ============================================================
   SEARCH
   ============================================================ */

#searchInput {
    width: 100%;
    padding: 14px 18px;
    border-radius: 999px;
    border: none;
    background: #fff;
    box-shadow: var(--shadow);
    font-size: 1rem;
    margin-bottom: 15px;
}

/* ============================================================
   PAGINATION
   ============================================================ */

#pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

#pagination a {
    background: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

#pagination .active {
    background: var(--primary);
    color: #fff;
}

/* ============================================================
   PLAYER (Spotify Bottom Bar)
   ============================================================ */

.player {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

/* Play Button */
#playBtn {
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
}

#playBtn:hover {
    background: var(--primary-dark);
}

/* Player Info */
.playerInfo {
    flex: 1;
    margin-left: 12px;
}

/* Progress bar */
.progressBar {
    height: 6px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.progressBar div {
    height: 100%;
    background: var(--primary);
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .container {
        padding-bottom: 160px;
    }

    .song-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .request-btn {
        width: 100%;
        text-align: center;
    }

    .player {
        flex-direction: column;
        gap: 10px;
    }
}