/**
 * Archive artist Styles
 * Styles for archive-melodica_artist.php template
 *
 * @package Melodica
 */

.artists-set {
    /* width: 15% !important; */
}

@media screen and (max-width: 768px) {
    .artists-set {
        width: 50% !important;
    }
}


.artists-main-content {
    width: 100%;
}

/* artist Archive Grid */
.artists-grid-artist {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    /* overflow-x: auto !important; */
    /* overflow-y: hidden !important; */
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-bottom: 10px;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    justify-items: center;
    align-self: center;
    justify-self: center;
    padding-bottom: 100px !important;
}

.artists-grid-artist.loading {
    position: relative;
}

.artists-grid-artist.loading::after {
    content: ' ';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .25);
    border-radius: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* artists Grid (بدون suffix - از homepage.css) */
.artists-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    overflow-x: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    justify-items: center;
    align-self: center;
    justify-self: center;
    padding: 25px;
    padding-bottom: 100px !important;
}

.artists-grid.loading {
    position: relative;
}

.artists-grid.loading::after {
    content: ' ';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .25);
    border-radius: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* artist Card */
.artist-card-artist {
    background: var(--color-primary-violet);
    border: 0px solid var(--color-gray-700);
    border-radius: 18px;
    padding: 12px;
    width: calc(25% - .94rem);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, z-index 0s;
    width: 236px !important;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.artist-card-artist:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    z-index: 100;
}

/* artist Card (بدون suffix - از homepage.css) */
.artist-card {
    background: var(--color-primary-violet);
    border: 0px solid var(--color-gray-700);
    border-radius: 18px;
    padding: 12px;
    width: calc(25% - .94rem);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    width: 224px !important;
    position: relative;
}

.artist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    z-index: 100;
}

/* artist Cover */
.artist-cover-artist {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1;
}

.artist-cover-artist img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.artist-card-artist:hover .artist-cover-artist img {
    transform: scale(1.05);
}

/* artist Cover (بدون suffix - از homepage.css) */
.artist-cover {
    position: relative;
    display: block;
    border-radius: 50%;
    /* overflow: hidden; */
    width: 100%;
    aspect-ratio: 1;
}

.artist-cover img {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.artist-card-artist:hover .artist-cover img,
.artist-cover:hover img {
    transform: scale(1.05);
}

/* artist Overlay */
.artist-overlay-artist {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* .artist-card-artist:hover .artist-overlay-artist {
    opacity: 1;
} */

/* artist Overlay (بدون suffix - از homepage.css) */
.artist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* .artist-card-artist:hover .artist-overlay,
.artist-cover:hover .artist-overlay {
 
} */

/* Play Button */
.play-btn-artist {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn-artist:hover {
    background: white;
    transform: scale(1.1);
}

.play-btn-artist svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

/* Play Button (بدون suffix - از homepage.css) */
.play-btn {
    position: absolute;
    bottom: 12px;
    right: 155px !important;
    background: var(--color-primary-violet);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
    .play-btn {
        right: 90px !important;
    }
}

.play-btn:hover {
    background: var(--color-purple);
    transform: scale(1.1);
    box-shadow: 0 6px 16px var(--shadow-purple-40);
}

.play-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--color-purple);
}

.play-btn svg path {
    fill: var(--color-purple) !important;
}

/* artist Info */
.artist-info-artist {
    padding: 10px 0;
}

.artist-title-artist {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.artist-artist-artist {
    font-size: 0.9rem;
    color: #cccccc;
    margin: 0;
}

/* artist Info (بدون suffix - از homepage.css) */
.artist-info-artist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-content: center;
    align-items: center;
}

.artist-title {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: right;
}

.artist-artist {
    color: var(--text-third);
    font-size: .9rem;
    text-align: right;
}

/* artist Actions */
.artist-actions-artist {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.artist-like-btn-artist,
.artist-download-btn-artist,
.artist-more-btn-artist {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-like-btn-artist:hover,
.artist-download-btn-artist:hover,
.artist-more-btn-artist:hover {
    background: rgba(255, 255, 255, 0.1);
}

.artist-like-btn-artist svg,
.artist-download-btn-artist svg,
.artist-more-btn-artist svg {
    width: 18px;
    height: 18px;
}

/* artist Actions (بدون suffix - از homepage.css) */
.artist-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0px;
    margin-top: 2px;
    flex-wrap: nowrap;
    position: relative;
}

.artist-actions button,
.artist-actions a {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    border: 1px solid var(--color-gray-600) !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
    text-decoration: none !important;
    color: inherit !important;
}

.artist-actions button:hover,
.artist-actions a:hover {
    transform: translateY(-1px) !important;
}

/* دکمه‌های Actions بدون -artist */
.artist-like-btn,
.artist-download-btn,
.artist-more-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.artist-like-btn:hover,
.artist-download-btn:hover,
.artist-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.artist-like-btn svg,
.artist-download-btn svg,
.artist-more-btn svg {
    width: 18px;
    height: 18px;
}

/* Liked state */
.artist-like-btn.liked {
    background: var(--overlay-purple-20);
}

.artist-like-btn.liked:hover {
    background: var(--overlay-purple-30);
}

/* Disabled state */
.artist-like-btn:disabled,
.artist-like-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Processing state */
.artist-like-btn.processing {
    opacity: 0.7;
    pointer-events: none;
}

/* Duration Overlay */
.duration-overlay-artist {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Duration Overlay (بدون suffix - از homepage.css) */
.duration-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .artist-card-artist {
        width: calc(33.333% - .84rem);
    }

    .artist-card {
        width: calc(33.333% - .84rem);
    }
}

@media (max-width: 768px) {
    .artists-grid-artist {
        grid-template-columns: repeat(2, 1fr);
        /* overflow-x: auto; */
        flex-wrap: wrap;
        padding-bottom: 8px;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        display: flex;
        justify-content: center;
    }

    .artist-card-artist {
        width: 185px !important;
        min-width: 190px;
        flex-shrink: 0;
        background: var(--color-primary-deep) !important;
        box-shadow: 0 0px 5px rgb(35 35 35 / 81%);
    }

    .artist-card {
        width: 185px !important;
        min-width: 190px;
        flex-shrink: 0;
        background: var(--color-primary-deep) !important;
        box-shadow: 0 0px 5px rgb(35 35 35 / 81%);
    }

    .artist-cover img {
        aspect-ratio: 1;
    }

    .artist-actions button,
    .artist-actions a {
        width: 32px;
        height: 32px;
    }

    .pagination-wrapper .page-numbers {
        gap: 0.25rem;
    }

    .pagination-wrapper .page-numbers a,
    .pagination-wrapper .page-numbers span {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .artist-card-artist {
        width: 160px !important;
        min-width: 160px;
    }

    .artist-card {
        width: 160px !important;
        min-width: 160px;
    }

    .artist-title-artist {
        font-size: 1rem;
    }

    .artist-title {
        font-size: 1rem;
    }

    .artist-artist-artist {
        font-size: 0.8rem;
    }

    .artist-artist {
        font-size: 0.8rem;
    }

    .pagination-wrapper .page-numbers {
        gap: 0.25rem;
    }

    .pagination-wrapper .page-numbers a,
    .pagination-wrapper .page-numbers span {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
        padding: 0 8px;
    }
}

/* ========================================
   Pagination
   ======================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.pagination-wrapper .page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-wrapper .page-numbers li {
    margin: 0;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--color-primary-violet);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid var(--color-gray-600);
}

.pagination-wrapper .page-numbers a:hover {
    background: var(--color-purple);
    color: white;
    transform: translateY(-2px);
    border-color: var(--color-purple);
    box-shadow: 0 4px 12px var(--shadow-purple-30);
}

.pagination-wrapper .page-numbers .current {
    background: var(--color-purple);
    color: white;
    font-weight: 600;
    border-color: var(--color-purple);
    box-shadow: 0 4px 12px var(--shadow-purple-30);
}

.pagination-wrapper .page-numbers .prev,
.pagination-wrapper .page-numbers .next {
    padding: 0 16px;
}

/* Archive Page Sidebar Styles */
.search-filters-sidebar-artist {
    padding: 0px !important;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-content: flex-start;
    align-items: flex-start;
    width: 23%;
}

@media screen and (max-width: 768px) {
    .search-filters-sidebar-artist {
        width: 100%;
    }
}

.archive-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

/* Search Input */
.search-input-wrapper-artist {
    display: flex;
    align-items: center;
    background-color: var(--color-primary-violet);
    border-radius: 12px;
    width: 290px;
    padding: 5px;
    position: relative;
}

.search-btn-artist {
    background-color: var(--color-purple) !important;
    border: none;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: absolute;
    left: 5px;
    color: var(--color-purple) !important;
}

.search-btn-artist:hover {
    background-color: var(--color-purple) !important;
    opacity: 0.9;
}

.search-btn-artist svg {
    color: var(--color-purple) !important;
}

.search-btn-artist svg rect {
    fill: var(--color-purple) !important;
}

.search-btn-artist svg path {
    fill: var(--color-dark-bg) !important;
}

.search-input-artist {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 10px 15px;
    font-size: 16px;
    width: 100%;
}

.search-input-artist::placeholder {
    color: #888888;
}

.search-input-artist:focus {
    outline: none;
}

/* Search Results Dropdown */
.search-results-artist {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary-deep);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--overlay-purple-20);
}

.search-result-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-left: 12px;
}

.search-result-info h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.search-result-info p {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
}

.search-loading,
.search-error,
.no-search-results {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Archive Page Title */
.archive-page-title {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

/* Filter Section */
.filter-section-artist {
    width: 100%;
}

.filter-title-artist {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

/* Custom Dropdown */
.custom-dropdown-artist {
    position: relative;
    width: 100%;
}

.dropdown-toggle-artist {
    width: 100%;
    background: var(--color-primary-violet);
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-toggle-artist:hover {
    /* background: rgba(152, 0, 245, 0.3); */
}

.selected-text-artist {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.dropdown-toggle-artist svg {
    transition: transform 0.3s ease;
}

.custom-dropdown-artist.open .dropdown-toggle-artist svg {
    transform: rotate(180deg);
}

.dropdown-menu-artist {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    /* background: var(--color-primary-deep); */
    border-radius: 12px;
    padding: 0px;
    list-style: none;
    /* margin: 0; */
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.custom-dropdown-artist.open .dropdown-menu-artist {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-artist {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    background: var(--color-primary-violet);
}

.dropdown-item-artist:hover {
    /* background: rgba(152, 0, 245, 0.2); */
    color: var(--text-primary);
}

.dropdown-item-artist.active {
    background: var(--color-primary-violet);
    color: var(--text-primary);
    font-weight: 600;
}

/* Radio Button Style inside Dropdown */
.radio-custom-artist {
    width: 20px;
    height: 20px;
    border: 2px solid #D2D2D2;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
    flex-shrink: 0;
    display: flex;
    align-content: center;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.radio-custom-artist.checked {
    border-color: var(--color-purple) !important;
}

.radio-custom-artist.checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--color-purple) !important;
    border-radius: 50%;
}

.radio-custom-artist.checked svg {
    display: none;
}

.radio-custom-artist.checked svg circle {
    fill: var(--color-purple) !important;
}
}

/* ========================================
   Archive artist Dropdown Menu (سه نقطه)
   ======================================== */
.artist-actions .dropdown-container {
    position: relative;
}
/* 
.artist-card-artist:hover .dropdown-container,
.artist-card:hover .dropdown-container {
    z-index: 999999999999991000;
} */

.archive-artist-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: #030C24;
    border-radius: 12px !important;
    padding: 8px !important;
    min-width: 180px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 10000 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--overlay-purple-30) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-container:hover .archive-artist-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

.archive-artist-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.archive-artist-dropdown-item:hover {
    background: var(--overlay-purple-20);
    color: #FFFFFF;
    text-decoration: none;
}

.archive-artist-dropdown-item svg {
    flex-shrink: 0;
}