.page-artists-index,
.page-artists-show,
.page-artists-admin {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'Baloo 2';
    src: url("../fonts/Baloo2-VariableFont_wght.ttf") format('truetype');
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: 'Itim';
    src: url("../fonts/Itim-Regular.ttf") format('truetype');
    font-weight: 100;
    font-display: normal;
}
h1 {
    font-family: 'Baloo 2';
    font-weight: 800;
    color:#16f1d3
}
h2, h3 {
    font-family: 'Baloo 2';
    font-weight: 700;
}
h4, p, span, li, a, div {
    font-family: 'Itim', cursive;
    font-weight: 100;
}

/* Artists module typography (scoped only to artists pages) */
.page-artists-index h1,
.page-artists-index h2,
.page-artists-show h1,
.page-artists-show h2,
.page-artists-admin h1,
.page-artists-admin h2 {
    font-family: 'Baloo 2', cursive;
}

.page-artists-index p,
.page-artists-index span,
.page-artists-index li,
.page-artists-index a,
.page-artists-index div,
.page-artists-index th,
.page-artists-index td,
.page-artists-index label,
.page-artists-index input,
.page-artists-index select,
.page-artists-index textarea,
.page-artists-index button,
.page-artists-show p,
.page-artists-show span,
.page-artists-show li,
.page-artists-show a,
.page-artists-show div,
.page-artists-show th,
.page-artists-show td,
.page-artists-show label,
.page-artists-show input,
.page-artists-show select,
.page-artists-show textarea,
.page-artists-show button,
.page-artists-admin p,
.page-artists-admin span,
.page-artists-admin li,
.page-artists-admin a,
.page-artists-admin div,
.page-artists-admin th,
.page-artists-admin td,
.page-artists-admin label,
.page-artists-admin input,
.page-artists-admin select,
.page-artists-admin textarea,
.page-artists-admin button {
    font-family: 'Itim', cursive;
    font-weight: 100;
}

.artists-page-wrap {
    padding: 130px 0 70px;
    color: #e7ffe7;
}

.artists-page-head h1 {
    color: #7dff9f;
    margin-bottom: 8px;
}

.artists-page-head p {
    color: #b4d8b6;
}

.artists-admin-link {
    margin-top: 15px;
}

.btn-neon-admin {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: linear-gradient(90deg, #16f1d3, #0ff);
    color: #0a0f2c;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(22, 241, 211, 0.6);
    transition: 0.25s ease;
}

.btn-neon-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(22, 241, 211, 0.9);
}

.artists-filters {
    margin: 24px 0;
}

.artists-filters-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto auto auto;
    gap: 12px;
}

.artists-input,
.artists-select {
    width: 100%;
    border: 1px solid rgba(125, 255, 159, 0.45);
    border-radius: 10px;
    background: rgba(12, 24, 17, 0.85);
    color: #eaffef;
    padding: 10px 12px;
}

.artists-quill-editor {
    min-height: 180px;
}

.artists-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #7dff9f;
    background: linear-gradient(180deg, #64f48f 0%, #35c765 100%);
    color: #06140c;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 16px;
    transition: 0.2s ease;
}

.artists-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(80, 255, 128, 0.35);
}

.artists-btn-secondary {
    background: #10231a;
    color: #c8ffd5;
}

.artists-btn-danger {
    background: #7b1a1a;
    border-color: #cf4747;
    color: #fff;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.artist-card {
    background: transparent;
    border: 0;
    border-radius: 14px;
    overflow: visible;
    min-height: 390px;
    perspective: 1200px;
}

.artist-card-flip {
    position: relative;
    width: 100%;
    min-height: 390px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.2, 0.76, 0.2, 1);
}

.artist-card-flip.is-flipped {
    transform: rotateY(180deg);
}

.artist-card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(6, 16, 12, 0.9);
    border: 1px solid rgba(125, 255, 159, 0.3);
    cursor: pointer;
}

.artist-card-face-back {
    transform: rotateY(180deg);
    padding: 0;
}

.artist-card-back-actions {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.artist-flip-btn {
    border: 1px solid rgba(30, 240, 211, 0.55);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(30, 240, 211, 0.2), rgba(16, 255, 240, 0.17));
    color: #bbfff6;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 11px;
    cursor: pointer;
    line-height: 1;
}

.artist-card-face-front .artist-flip-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
}

.artist-card-cover {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    height: 100%;
}

.artist-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.artist-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(3, 8, 6, 0.05) 10%, rgba(4, 18, 11, 0.92) 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: none;
}

.artist-card-overlay-name {
    color: #f3fff5;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(30, 243, 210, 0.28);
}

.artist-card-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.28), inset 0 0 10px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(3px);
}

.artist-card-chip.is-band {
    background: linear-gradient(135deg, rgba(255, 225, 110, 0.94), rgba(255, 193, 48, 0.94));
    color: #261900;
}

.artist-card-chip.is-singer {
    background: linear-gradient(135deg, rgba(30, 240, 211, 0.94), rgba(18, 170, 255, 0.9));
    color: #071c2a;
}

.artist-card:hover .artist-card-overlay,
.artist-card:focus-within .artist-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.artist-card:hover .artist-card-cover img,
.artist-card:focus-within .artist-card-cover img {
    transform: scale(1.04);
}

.artist-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
}

.artist-type-badge.is-band {
    background: #ffdf65;
    color: #1f1800;
}

.artist-type-badge.is-singer {
    background: #6fbeff;
    color: #041726;
}

.artists-empty {
    grid-column: 1 / -1;
    background: rgba(17, 31, 24, 0.8);
    border: 1px solid rgba(124, 255, 159, 0.24);
    border-radius: 12px;
    padding: 18px;
}

.artists-pagination {
    margin-top: 24px;
    padding: 24px 0 8px;
    display: flex;
    justify-content: center;
}

/* Reuse Arhiva Teme pagination look */
.artists-pagination .pagination-nav {
    width: 100%;
    max-width: 800px;
}

.artists-pagination .pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.artists-pagination .pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(22, 241, 211, 0.1);
    border: 2px solid #16f1d3;
    border-radius: 10px;
    color: #16f1d3;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.artists-pagination .pagination-btn:hover:not(.disabled) {
    background: rgba(22, 241, 211, 0.2);
    box-shadow: 0 0 20px rgba(22, 241, 211, 0.4);
    transform: translateY(-2px);
}

.artists-pagination .pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(22, 241, 211, 0.3);
}

.artists-pagination .pagination-arrow {
    font-size: 1.2rem;
    line-height: 1;
}

.artists-pagination .pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.artists-pagination .pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(22, 241, 211, 0.05);
    border: 1px solid rgba(22, 241, 211, 0.3);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.artists-pagination .pagination-number:hover {
    background: rgba(22, 241, 211, 0.15);
    border-color: #16f1d3;
    box-shadow: 0 0 15px rgba(22, 241, 211, 0.3);
    color: #16f1d3;
}

.artists-pagination .pagination-number.active {
    background: linear-gradient(135deg, #16f1d3 0%, #0ea89a 100%);
    border-color: #16f1d3;
    color: #081418;
    font-weight: 900;
    box-shadow: 0 0 25px rgba(22, 241, 211, 0.6);
    cursor: default;
}

.artists-pagination .pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    font-size: 1.2rem;
}

.artist-back-link {
    color: #8dffad;
    text-decoration: none;
}

.artist-section-kicker {
    margin-top: 14px;
    margin-bottom: 10px;
    color: #c0edcb;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.artist-hero-card {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 24px;
    margin-top: 16px;
    background: rgba(8, 18, 13, 0.9);
    border: 1px solid rgba(125, 255, 159, 0.3);
    border-radius: 16px;
    padding: 20px;
}

.artist-hero-cover img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.artist-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.artist-type-inline {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
}

.artist-type-inline.is-band {
    background: #ffdf65;
    color: #1f1800;
}

.artist-type-inline.is-singer {
    background: #6fbeff;
    color: #041726;
}

.artist-info-pill {
    background: rgba(125, 255, 159, 0.15);
    border: 1px solid rgba(125, 255, 159, 0.4);
    border-radius: 999px;
    padding: 4px 10px;
}

.artist-hero-links {
    display: flex;
    gap: 16px;
}

.artist-hero-links a {
    color: #8ef3a9;
    text-decoration: none;
    font-weight: 700;
}

.artist-content-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.artist-profile-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
}

.artist-description-card,
.artist-info-card,
.artists-admin-card {
    background: rgba(8, 18, 13, 0.9);
    border: 1px solid rgba(125, 255, 159, 0.26);
    border-radius: 14px;
    padding: 16px;
}

.artist-description-text {
    color: #d5ead8;
    line-height: 1.65;
}

/* Keep Artists summary on project typography while preserving rich formatting */
.artist-description-text.ql-editor {
    font-family: 'Itim', cursive;
    font-size: 1rem;
    line-height: 1.65;
    color: #d5ead8;
    font-weight: 100;
}

.artist-description-text.ql-editor p,
.artist-description-text.ql-editor ul,
.artist-description-text.ql-editor ol,
.artist-description-text.ql-editor li,
.artist-description-text.ql-editor blockquote,
.artist-description-text.ql-editor span,
.artist-description-text.ql-editor a,
.artist-description-text.ql-editor div {
    font-family: 'Itim', cursive;
    font-weight: 100;
    color: inherit;
}

.artist-description-card h2,
.artist-description-text.ql-editor h1,
.artist-description-text.ql-editor h2,
.artist-description-text.ql-editor h3,
.artist-description-text.ql-editor h4,
.artist-description-text.ql-editor h5,
.artist-description-text.ql-editor h6 {
    font-family: 'Baloo 2', cursive;
}

.artist-description-card h2 {
    font-weight: 700;
}

.artist-info-card table {
    width: 100%;
    border-collapse: collapse;
}

.artist-info-card th,
.artist-info-card td {
    padding: 9px 0;
    border-bottom: 1px solid rgba(125, 255, 159, 0.2);
    text-align: left;
    vertical-align: top;
}

.artist-info-card th {
    color: #9dc7a5;
    width: 42%;
}

.artist-discography-wrap {
    margin-top: 26px;
}

.artist-discography-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.album-card {
    position: relative;
    min-height: 390px;
    perspective: 1200px;
    background: transparent;
    border: 0;
}

.album-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 390px;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.2, 0.76, 0.2, 1);
}

.album-card.is-flipped .album-card-inner {
    transform: rotateY(180deg);
}

.album-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    background: rgba(8, 17, 13, 0.95);
    border: 1px solid rgba(125, 255, 159, 0.24);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.album-face-front {
    z-index: 2;
}

.album-face-back {
    transform: rotateY(180deg);
    padding: 0;
    justify-content: flex-start;
    gap: 0;
}

.album-cover {
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-meta {
    padding: 12px;
    padding-bottom: 56px;
}

.album-meta h3 {
    margin: 0;
    font-size: 16px;
}

.album-meta p {
    margin: 6px 0 0;
    color: #b9d1be;
}

.album-flip-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(22, 241, 211, 0.55);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(24, 255, 216, 0.22), rgba(0, 255, 255, 0.2));
    color: #bcfff5;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.album-flip-btn:hover {
    box-shadow: 0 0 14px rgba(22, 241, 211, 0.38);
    transform: translateY(-1px);
}

.album-flip-btn-back {
    position: absolute;
    right: 12px;
    bottom: 12px;
}

.album-zoom-btn {
    position: absolute;
    right: 12px;
    bottom: 50px;
    border: 1px solid rgba(79, 255, 156, 0.62);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(31, 221, 136, 0.25), rgba(15, 255, 112, 0.22));
    color: #d8ffe5;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.album-zoom-btn:hover {
    box-shadow: 0 0 14px rgba(60, 255, 154, 0.4);
    transform: translateY(-1px);
}

.album-zoom-icon {
    width: 10px;
    height: 10px;
    border: 2px solid #6bffb7;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.album-zoom-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 2px;
    background: #6bffb7;
    right: -5px;
    bottom: -2px;
    transform: rotate(45deg);
    border-radius: 2px;
}

.album-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(2, 8, 10, 0.78);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.album-zoom-frame {
    position: relative;
    width: min(50vw, 980px);
    height: min(50vh, 760px);
    background: #06120c;
    border: 1px solid rgba(79, 255, 156, 0.45);
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(36, 234, 130, 0.25);
    overflow: hidden;
}

.album-zoom-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #030b07;
}

.album-zoom-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(79, 255, 156, 0.6);
    border-radius: 50%;
    background: rgba(10, 22, 16, 0.82);
    color: #d9ffe7;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.artists-admin-wrap .artists-admin-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.artists-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.artists-admin-table-wrap {
    overflow-x: auto;
}

.artists-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.artists-admin-table th,
.artists-admin-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid rgba(125, 255, 159, 0.16);
}

.artists-admin-form {
    display: grid;
    gap: 10px;
}

.artists-admin-form-inline {
    margin-bottom: 12px;
    grid-template-columns: 2fr 120px 150px 1fr auto;
    align-items: center;
}

.artists-errors,
.artists-flash {
    margin-bottom: 14px;
    border-radius: 10px;
    padding: 12px 14px;
}

.artists-errors {
    background: rgba(194, 42, 42, 0.16);
    border: 1px solid rgba(235, 76, 76, 0.5);
}

.artists-flash {
    background: rgba(54, 180, 96, 0.16);
    border: 1px solid rgba(114, 242, 157, 0.45);
}

.album-edit-row {
    margin-top: 8px;
}

@media (max-width: 1199px) {
    .artists-grid,
    .artist-discography-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .artists-filters-row {
        grid-template-columns: 1fr 1fr;
    }

    .artist-hero-card,
    .artist-content-grid,
    .artist-profile-grid,
    .artists-admin-grid {
        grid-template-columns: 1fr;
    }

    .artists-admin-form-inline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .artists-page-wrap {
        padding-top: 110px;
    }

    .artists-grid,
    .artist-discography-grid {
        grid-template-columns: 1fr;
    }

    .artist-card-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(180deg, rgba(3, 8, 6, 0.08) 12%, rgba(4, 18, 11, 0.86) 100%);
    }

    .artist-card-cover {
        width: 100%;
        height: 100%;
    }

    .artist-card,
    .artist-card-flip {
        min-height: 360px;
    }

    .artist-card-cover img {
        object-fit: cover;
        background: transparent;
    }

    .artist-card-flip.is-flipped .artist-card-face-front {
        visibility: hidden;
    }
    .artist-card-flip:not(.is-flipped) .artist-card-face-back {
        visibility: hidden;
    }

    .artist-card-face-back .artist-card-overlay {
        opacity: 1;
        transform: none;
        background: linear-gradient(180deg, rgba(3, 8, 6, 0.06) 8%, rgba(4, 18, 11, 0.88) 100%);
    }

    .album-card,
    .album-card-inner {
        min-height: 360px;
    }

    .album-zoom-btn,
    .album-zoom-modal {
        display: none !important;
    }

    .artists-pagination .pagination-wrapper {
        gap: 10px;
    }

    .artists-pagination .pagination-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .artists-pagination .pagination-text {
        display: none;
    }

    .artists-pagination .pagination-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .artists-pagination .pagination-dots {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .artists-pagination .pagination-wrapper {
        gap: 6px;
    }

    .artists-pagination .pagination-btn {
        padding: 8px 12px;
    }

    .artists-pagination .pagination-arrow {
        font-size: 1rem;
    }

    .artists-pagination .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .artists-pagination .pagination-dots {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .artist-card-flip,
    .album-card-inner {
        transition: none;
    }
}

