/* =========================
   SHYAM KI CHAI
   style.css
   ========================= */


/* ---------- RESET ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    background: #111;
    color: #f5e6c8;
}


/* ========================================
   HERO / BACKGROUND
   ======================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;

    background-image: url("assets/images/chai-shop.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
}


/* ========================================
   CINEMATIC OVERLAY
   ======================================== */

.overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.48) 0%,
            rgba(0, 0, 0, 0.14) 35%,
            rgba(0, 0, 0, 0.01) 65%
        ),
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.38) 0%,
            rgba(0, 0, 0, 0.04) 35%,
            transparent 60%
        );

    z-index: 1;
    pointer-events: none;
}


/* ========================================
   BRAND
   ======================================== */

.brand {
    position: absolute;
    top: 8%;
    left: 6%;
    z-index: 2;
}

.brand h1 {
    font-size: clamp(3rem, 6vw, 6.5rem);
    font-weight: 500;

    color: #f3d69b;

    letter-spacing: 2px;
    line-height: 1;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(0, 0, 0, 0.35);
}

.brand p {
    margin-top: 12px;

    font-size: clamp(0.85rem, 1.4vw, 1.25rem);

    color: rgba(245, 230, 200, 0.78);

    letter-spacing: 5px;
    text-transform: uppercase;
}


/* ========================================
   CUSTOM MUSIC PLAYER
   ======================================== */

.music-player {
    position: absolute;

    right: 3%;
    bottom: 4%;

    z-index: 5;

    width: 285px;

    padding: 13px 15px 12px;

    background:
        linear-gradient(
            145deg,
            rgba(48, 34, 22, 0.72),
            rgba(18, 14, 10, 0.76)
        );

    border: 1px solid rgba(224, 188, 126, 0.25);
    border-radius: 8px;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 230, 180, 0.06);
}


/* ========================================
   SONG INFORMATION
   ======================================== */

.song-info {
    margin-bottom: 10px;
}

.now-playing {
    display: block;

    margin-bottom: 4px;

    font-size: 0.52rem;

    color: rgba(226, 190, 126, 0.72);

    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.song-info h2 {
    max-width: 100%;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 0.88rem;
    font-weight: 500;

    color: #f4dfb8;

    line-height: 1.3;
}

.song-info p {
    max-width: 100%;

    margin-top: 2px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 0.62rem;

    color: rgba(245, 230, 200, 0.58);
}


/* ========================================
   PROGRESS AREA
   ======================================== */

.progress-area {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-top: 9px;
    margin-bottom: 9px;
}

.progress-area span {
    min-width: 24px;

    font-family: Arial, sans-serif;
    font-size: 0.52rem;

    color: rgba(245, 230, 200, 0.55);
}


/* ========================================
   PROGRESS BAR
   ======================================== */

#progress-bar {
    flex: 1;

    height: 2px;

    appearance: none;
    -webkit-appearance: none;

    background: rgba(245, 230, 200, 0.20);

    border-radius: 10px;

    outline: none;
    cursor: pointer;
}

#progress-bar::-webkit-slider-thumb {
    width: 8px;
    height: 8px;

    appearance: none;
    -webkit-appearance: none;

    border-radius: 50%;

    background: #d9b36c;

    box-shadow:
        0 0 5px rgba(217, 179, 108, 0.35);

    cursor: pointer;
}

#progress-bar::-moz-range-thumb {
    width: 8px;
    height: 8px;

    border: none;
    border-radius: 50%;

    background: #d9b36c;

    cursor: pointer;
}


/* ========================================
   PLAYER CONTROLS
   ======================================== */

.player-controls {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 18px;

    margin-top: 3px;
}

.player-controls button {
    display: flex;

    justify-content: center;
    align-items: center;

    border: none;

    color: rgba(245, 230, 200, 0.82);

    cursor: pointer;

    transition:
        transform 0.18s ease,
        color 0.18s ease,
        background 0.18s ease,
        opacity 0.18s ease;
}

.player-controls button:hover {
    color: #f3d69b;
    transform: scale(1.08);
}


/* ---------- PREVIOUS / NEXT ---------- */

.control-btn {
    width: 27px;
    height: 27px;

    background: transparent;

    font-size: 0.75rem;

    opacity: 0.72;
}

.control-btn:hover {
    opacity: 1;
}


/* ---------- PLAY BUTTON ---------- */

.play-btn {
    width: 34px;
    height: 34px;

    border: 1px solid rgba(230, 196, 135, 0.32) !important;
    border-radius: 50%;

    background: rgba(210, 174, 110, 0.10);

    font-size: 0.68rem;

    box-shadow:
        inset 0 0 8px rgba(255, 220, 160, 0.04);
}

.play-btn:hover {
    background: rgba(210, 174, 110, 0.18);
}


/* ========================================
   RESPONSIVE — TABLET / MOBILE
   ======================================== */

@media (max-width: 768px) {

    .hero {
        background-image: url("assets/images/chai-shop-mobile.png");
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }


    /* ---------- BRAND ---------- */

    .brand {
        top: 5%;
        left: 5%;
    }

    .brand h1 {
        font-size: clamp(2.4rem, 11vw, 3.5rem);
    }

    .brand p {
        margin-top: 7px;

        font-size: 0.68rem;

        letter-spacing: 3px;
    }


    /* ---------- MOBILE PLAYER ---------- */

    .music-player {
        left: 50%;
        right: auto;

        bottom: 3%;

        transform: translateX(-50%);

        width: calc(100% - 32px);
        max-width: 360px;

        padding: 11px 14px 10px;

        border-radius: 10px;
    }


    /* ---------- SONG INFO ---------- */

    .song-info {
        margin-bottom: 8px;
        text-align: center;
    }

    .now-playing {
        font-size: 0.48rem;
    }

    .song-info h2 {
        font-size: 0.82rem;
    }

    .song-info p {
        font-size: 0.58rem;
    }


    /* ---------- PROGRESS ---------- */

    .progress-area {
        margin-top: 7px;
        margin-bottom: 8px;
    }


    /* ---------- CONTROLS ---------- */

    .player-controls {
        gap: 28px;
    }

    .control-btn {
        width: 40px;
        height: 40px;

        font-size: 0.85rem;
    }

    .play-btn {
        width: 44px;
        height: 44px;

        font-size: 0.8rem;
    }
}


/* ========================================
   VERY SMALL PHONES
   ======================================== */

@media (max-width: 420px) {

    .brand {
        top: 4%;
        left: 5%;
    }

    .brand h1 {
        font-size: 2.4rem;
    }

    .brand p {
        font-size: 0.58rem;

        letter-spacing: 2.2px;
    }


    /* Keep player centered */

    .music-player {
        left: 50%;
        right: auto;

        bottom: 2%;

        transform: translateX(-50%);

        width: calc(100% - 24px);

        padding: 9px 12px;
    }

    .now-playing {
        font-size: 0.45rem;
    }

    .song-info h2 {
        font-size: 0.74rem;
    }

    .song-info p {
        font-size: 0.54rem;
    }

    .progress-area span {
        font-size: 0.47rem;
    }

    .player-controls {
        gap: 24px;
    }

    .control-btn {
        width: 38px;
        height: 38px;
    }

    .play-btn {
        width: 42px;
        height: 42px;
    }
}