﻿/* ==== MOBILE SHELL ===================================================== */

.ng-shell-mobile {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #000;
    color: #fff;
}

/* top bar */

.ng-mobile-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #181818;
}

.ng-mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ng-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1db954;
    font-weight: 700;
    font-size: 0.9rem;
    color: #000;
}

.ng-logo-text {
    font-weight: 600;
    font-size: 1rem;
}

.ng-mobile-actions {
    display: flex;
    gap: 14px;
}

.ng-mobile-icon-button {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 0;
}

    .ng-mobile-icon-button:hover {
        background: #222;
    }

/* main content – full width, scrollable */

.ng-main-mobile {
    flex: 1 1 auto;
    overflow-y: auto;
}

.ng-content {
    padding: 12px 16px 80px; /* bottom space for nav bar */
    width: 100%;
    max-width: 100%;
}

/* ==== BOTTOM NAV ======================================================= */

.ng-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #111;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #222;
    z-index: 99;
}

.ng-bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.8rem;
}

    .ng-bottom-nav-item i {
        font-size: 1.3rem;
        display: block;
    }

    .ng-bottom-nav-item span {
        font-size: 0.7rem;
    }

/* optional “active” state */
.ng-bottom-nav-item--active {
    color: #fff;
}

/* ==== MOBILE HOME CONTENT ============================================== */

.ng-mobile-home {
    width: 100%;
}

/* sections */

.ng-section {
    margin: 12px 0 24px;
}

.ng-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* generic muted text */

.ng-section p,
.ng-card-sub,
.ng-grid-sub {
    color: #b3b3b3;
    font-size: 0.85rem;
}

/* ===== HORIZONTAL CAROUSELS (Recently Played, Your Playlists) ========= */

.ng-horizontal-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 0;
}

    .ng-horizontal-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .ng-horizontal-scroll::-webkit-scrollbar-thumb {
        background: #444;
        border-radius: 2px;
    }

/* playlist cards */

.ng-card {
    min-width: 140px;
    max-width: 160px;
    flex: 0 0 auto;
    background: #181818;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

    .ng-card:hover {
        background: #232323;
        transform: translateY(-2px);
    }

/* card artwork */
.ng-card-artwork {
    width: 100%;
    height: 100%;
    display: block;
}

.ng-card-title {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ng-card-sub {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== RECENTLY ADDED GRID ============================================ */

/* make both columns truly equal-width */
.ng-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* <- key change */
    gap: 14px 12px;
    padding-bottom: 80px;
}

/* allow items to shrink inside the column */
.ng-grid-card {
    background: #181818;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    min-width: 0; /* <- important */
}

    .ng-grid-card:hover {
        background: #232323;
        transform: translateY(-2px);
    }

/* grid artwork */
.ng-grid-artwork {
    width: 100%;
    height: 100%;
    display: block;
}

/* perfect square artwork wrapper */
.ng-square-art {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 square */
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

    /* image fills the square */
    .ng-square-art img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ng-grid-title {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ng-grid-sub {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== SERVER CARD ===================================================== */

.ng-server-card {
    background: #181818;
    border-radius: 16px;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: #b3b3b3;
    margin-top: 8px;
    margin-bottom: 24px;
    transition: background 0.15s ease, transform 0.15s ease;
}

    .ng-server-card:hover {
        background: #232323;
        transform: translateY(-1px);
    }

.ng-server-title {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ng-server-name {
    margin-top: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

/* ==== MOBILE MINI PLAYER (sits above bottom nav) ====================== */

.ng-mobile-player {
    position: fixed;
    left: 0;
    bottom: 64px; /* exactly the height of .ng-bottom-nav */
    width: 100%;
    height: 64px;
    background: #181818;
    border-top: 1px solid #222;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    box-sizing: border-box;
    z-index: 98; /* below nav's 99 if you ever want overlap tricks */
}

.ng-mp-art {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 10px;
    background: #000;
}

.ng-mp-meta {
    flex: 1 1 auto;
    overflow: hidden;
}

.ng-mp-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff
}

.ng-mp-artist {
    font-size: 0.8rem;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ng-mp-btn {
    border: none;
    background: #fff;
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
}

    .ng-mp-btn:hover {
        background: #f5f5f5;
    }



/* Make the NG / initials circle clickable in mobile header */
.ng-mobile-avatar-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .ng-mobile-avatar-btn .ng-logo-mark {
        /* reuse existing look, just ensure it shows pointer */
        cursor: pointer;
    }

/* Keep NG circle green everywhere (desktop + mobile),
   even inside buttons / dropdowns */
.ng-logo-mark,
button.ng-logo-mark,
a.ng-logo-mark {
    background: #1db954 !important;
    color: #000 !important;
    border-radius: 50%;
}


/* ==== MOBILE AUTH PAGES (login / register) ============================= */

.ng-mobile-auth {
    max-width: 420px;
    margin: 24px auto 80px; /* bottom space for nav */
}

.ng-auth-header {
    margin-bottom: 16px;
}

.ng-auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.ng-auth-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #b3b3b3;
}

.ng-auth-card {
    background: #181818;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* fields */

.ng-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

    .ng-field label {
        font-size: 0.8rem;
        color: #b3b3b3;
    }

/* inputs */

.ng-input {
    border-radius: 8px;
    border: 1px solid #333;
    background: #111;
    padding: 8px 10px;
    font-size: 0.9rem;
    color: #fff;
    outline: none;
}

    .ng-input::placeholder {
        color: #777;
    }

    .ng-input:focus {
        border-color: #1db954;
        box-shadow: 0 0 0 1px rgba(29, 185, 84, 0.25);
    }

/* validation messages inside fields */

.validation-message {
    color: #ff8787;
    font-size: 0.75rem;
}

/* primary auth button */

.ng-btn-primary {
    margin-top: 8px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 10px 0;
    background: #1db954;
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease
