/* NEXT Djs · Artistas
   El módulo no redefine el diseño de la Custom Page.
   La página pública aporta .next-artists-grid, .next-artist-card,
   .next-artist-image y .next-artist-info. */

/* Estados del cargador en la página pública */
.next-artists-grid[data-next-artists-grid],
#next-artists-grid,
[data-next-artists-grid] {
    position: relative;
}

.next-artists-grid-loading {
    min-height: 160px;
}

.next-artists-grid-loading::after {
    content: '';
    position: absolute;
    top: 56px;
    left: 50%;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    border: 3px solid rgba(255,255,255,.13);
    border-top-color: #00e5ff;
    border-radius: 50%;
    animation: next-artists-spin .8s linear infinite;
}

.next-artists-grid-loading > * {
    visibility: hidden;
}

.next-artists-empty,
.next-artists-error {
    grid-column: 1 / -1;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    background: rgba(18,21,26,.78);
    color: #a1a6af;
    text-align: center;
}

@keyframes next-artists-spin {
    to { transform: rotate(360deg); }
}

/* Página de comprobación /artistas.
   Todo va encapsulado para no pisar la Custom Page existente. */
.next-artists-module-page {
    --bg: #07080a;
    --card: #12151a;
    --border: rgba(255,255,255,.09);
    --text: #ffffff;
    --muted: #a1a6af;
    --accent: #00e5ff;
    --accent2: #8b5cf6;
    position: relative;
    min-height: 100vh;
    margin: -15px;
    padding: 70px 24px 90px;
    overflow: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 15%, rgba(0,229,255,.11), transparent 32%),
        radial-gradient(circle at 80% 18%, rgba(139,92,246,.13), transparent 35%),
        linear-gradient(180deg, #090a0d, #07080a);
}

.next-artists-module-container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.next-artists-module-header {
    max-width: 800px;
    margin: 0 auto 55px;
    text-align: center;
}

.next-artists-module-eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: 800;
}

.next-artists-module-header h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -2px;
}

.next-artists-module-header h1 span {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.next-artists-module-header p {
    margin: 25px auto 0;
    color: var(--muted);
    font-size: 18px;
}

.next-artists-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.next-artists-module-page .next-artist-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    border: 1px solid var(--border);
    border-radius: 16px;
}

.next-artists-module-page .next-artist-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #0c0e11;
}

.next-artists-module-page .next-artist-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.next-artists-module-page .next-artist-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px 25px 30px;
}

.next-artists-module-page .next-artist-accent {
    display: block;
    width: 38px;
    height: 2px;
    margin-bottom: 16px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.next-artists-module-page .next-artist-info h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
}

.next-artists-module-page .next-artist-info p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Administración */
.next-artists-admin-thumb {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.08);
}

.next-artists-admin-preview {
    display: block;
    width: 180px;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.10);
}

@media (max-width: 900px) {
    .next-artists-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .next-artists-module-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .next-artists-module-page {
        margin: -10px;
        padding: 55px 14px 70px;
    }
}


/* Ajustes visuales del panel de administración en modo oscuro */
.next-artists-admin .panel-heading .btn,
.next-artists-admin .panel-body .btn {
    border-radius: 8px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.next-artists-admin .btn-default {
    background: #1b232d;
    border-color: rgba(255,255,255,.14);
    color: #eef3f8;
}

.next-artists-admin .btn-default:hover,
.next-artists-admin .btn-default:focus,
.next-artists-admin .btn-default:active,
.next-artists-admin .btn-default.active {
    background: #243140;
    border-color: rgba(0,229,255,.35);
    color: #ffffff;
    box-shadow: none;
}

.next-artists-admin .btn-default .fa,
.next-artists-admin .btn-default i {
    color: inherit;
}

.next-artists-admin .btn-primary {
    box-shadow: none;
}

.next-artists-admin .btn-primary:hover,
.next-artists-admin .btn-primary:focus,
.next-artists-admin .btn-primary:active,
.next-artists-admin .btn-primary.active {
    box-shadow: none;
}

.next-artists-admin .text-end .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
}

.next-artists-admin .text-end .btn + .btn {
    margin-left: 6px;
}

.next-artists-admin .text-end .btn .fa,
.next-artists-admin .text-end .btn i {
    line-height: 1;
}

.next-artists-admin input[type="file"] {
    color: #e8edf3;
}

.next-artists-admin .help-block {
    color: #aeb6c2;
}
