.artists-section {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    max-height: auto;
    height: auto;
    width: 90%;
    align-content: center;
    margin: auto;
    background-image: url(../../../images/artists/artists-background.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 30px;
}



/* --------------------------- */

.about-wrapper {
    display: flex;
    margin: 30px auto;
    flex-direction: column;
    flex: 1;
    height: auto;
}

.about-wrapper h2 {
    color: yellow !important;
}

/* ----------------------------- */
/* گرید برای عکس‌های هنرمندان */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    grid-auto-rows: minmax(20px, auto);
    gap: 4px;
    padding: 0 10px;
    flex: 1;
    overflow: hidden;
    align-content: center;


}

.artist-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 8px 25px rgba(82, 74, 74, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 30, 50, 0.4);
    /* display: flex; */
    justify-content: center;
    align-items: center;
}

.artist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ابعاد مختلف برای جایگاه‌ها */
.ratio-11 {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1/1;
}

.ratio-43 {
    grid-column: span 2;
    grid-row: span 3;
    aspect-ratio: 3/4;
}

.ratio-34 {
    grid-column: span 3;
    grid-row: span 2;
    aspect-ratio: 4/3;
}

.ratio-169 {
    grid-column: span 4;
    grid-row: span 2;
    aspect-ratio: 16/9;
}

.ratio-916 {
    grid-column: span 2;
    grid-row: span 4;
    aspect-ratio: 9/16;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 1.2s ease;
}

.image-container .current {
    opacity: 1;
    z-index: 2;
    transform: translateX(0);
}

.image-container .next {
    opacity: 0;
    z-index: 1;
}

/* انیمیشن‌های ورود و خروج */
.slide-in-right {
    transform: translateX(100%);
}

.slide-in-left {
    transform: translateX(-100%);
}

.slide-out-left {
    transform: translateX(-100%);
}

.slide-out-right {
    transform: translateX(100%);
}

.frame-move-right {
    transform: translateX(10px);
}

.frame-move-left {
    transform: translateX(-10px);
}

.artist-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 15px;
    z-index: 3;
    transition: all 0.3s ease;
}

.artist-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #fff;
}

.artist-category {
    font-size: 0.9rem;
    color: #d0d0d0;
    display: block;
    margin-bottom: 3px;
}

.artist-artist {
    font-size: 0.85rem;
    color: #a0a0a0;
}


@keyframes pulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 1100px) {
    .artists-grid {
        grid-template-columns: repeat(14, 1fr);
    }

    .ratio-169 {
        grid-column: span 3;
    }

    .ratio-916 {
        grid-column: span 2;
        grid-row: span 3;
    }
}

@media (max-width: 768px) {

    .mobile-invisible {
        display: none;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .artists-grid {
        grid-template-columns: repeat(6, 2fr);
        gap: 5px;
    }

    .artist-item {
        grid-column: span 2 !important;
        grid-row: span 2 !important;
        aspect-ratio: 1/1 !important;
    }


}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artists-section {
    animation: fadeIn 1.2s ease forwards;
}

/* اسکلتون لودینگ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid #6e48aa;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* فوتور */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    color: #888;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}