/*
Theme Name: NaijacraftMusic
Theme URI: https://naijacraft.com
Author: Naijacraft
Description: A professional music streaming community theme designed for Naijacraft platform.
Version: 1.1
License: GPL2
Text Domain: naijacraftmusic
*/

/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f6f7fb;
    color: #111;
}

/* =========================
   APP LAYOUT
========================= */
.nc-app {
    display: flex;
}

.nc-content {
    margin-left: 240px;
    width: 100%;
    min-height: 100vh;
    padding: 25px;
}

/* =========================
   SIDEBAR
========================= */
.ncap-sidebar {
    width: 240px;
    background: #0f0f0f;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.ncap-logo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 35px;
}

/* USER */
.ncap-user-section {
    margin-bottom: 25px;
}

.ncap-user-guest,
.ncap-user-logged {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.ncap-avatar,
.ncap-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.ncap-avatar-placeholder {
    background: #333;
}

.ncap-username {
    font-size: 14px;
}

/* MENU */
.ncap-menu a {
    display: block;
    padding: 12px 0;
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.ncap-menu a:hover {
    color: #00c2a8;
    transform: translateX(4px);
}

/* =========================
   AUTH MODAL
========================= */
.ncap-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ncap-modal-content {
    background: #1c1c1c;
    width: 420px;
    max-width: 90%;
    padding: 25px;
    border-radius: 12px;
    color: #fff;
}

.ncap-modal-content input {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
    border: none;
}

.ncap-modal-content button {
    width: 100%;
    padding: 12px;
    background: #00c2a8;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* =========================
   PLAYER
========================= */
#ncap-global-player {
    position: fixed;
    bottom: 0;
    left: 240px;
    width: calc(100% - 240px);
    background: #111;
    color: #fff;
    padding: 12px;
    z-index: 999;
}

/* =========================
   UPLOAD FORM (UPGRADED)
========================= */
.naijacraft-album-form {
    max-width: 750px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-title {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #00c2a8;
    color: #fff;
}

.btn-secondary {
    background: #eee;
}

/* =========================
   TRACK LIST (NEW UI)
========================= */
.track-list {
    list-style: none;
    margin-top: 15px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fafafa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.track-item img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
}

.track-number {
    font-weight: bold;
    width: 20px;
}

.drag-handle {
    cursor: grab;
}

.remove-track {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
}

.nc-track-row {
    display: flex;
    align-items: left;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
}

.nc-artist-link {
    color: #666;
    text-decoration: none;
}

.nc-artist-link:hover {
    text-decoration: underline;
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-details-btn {
    font-size: 12px;
    padding: 4px 8px;
    background: #eee;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
}

.track-details-btn:hover {
    background: #ddd;
}

/* =========================
   TRACK IMAGE (NEW FIX)
========================= */
.nc-track-row .nc-track-art {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* fallback if image is inside link or wrapper */
.nc-track-row img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================
   TRACK INFO
========================= */
.nc-track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nc-track-title {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
}

.nc-track-subtitle {
    font-size: 12px;
    color: #777;
}

/* =========================
   ACTIONS ALIGNMENT
========================= */
.nc-track-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nc-track-actions button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

/* =========================
   TRACK MODAL
========================= */
.track-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.track-modal-inner {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
}

/* =========================
   DASHBOARD
========================= */
.ncap-dashboard {
    max-width: 1000px;
    margin: auto;
}

.ncap-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.ncap-stat {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    .ncap-sidebar {
        transform: translateX(-100%);
        transition: 0.3s;
    }

    .ncap-sidebar.active {
        transform: translateX(0);
    }

    .nc-content {
        margin-left: 0;
    }

    .ncap-menu-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        background: #111;
        color: #fff;
        padding: 10px;
        border-radius: 5px;
        z-index: 10000;
        cursor: pointer;
    }
}