/* Backend Styles for Custom Post Types */

/* Song Single Page Styles */
.song-single {
    padding: 2rem 0;
}

.song-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.song-info {
    flex: 1;
}

.song-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.song-artist {
    font-size: 1.2rem;
    color: var(--color-primary-bright);
    margin-bottom: 0.5rem;
}

.song-duration {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.song-cover {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-black-30);
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-player-section {
    margin-bottom: 3rem;
}

.song-player {
    background: var(--color-gray-800);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.song-player audio {
    width: 100%;
    border-radius: 10px;
}

.player-info {
    margin-top: 1rem;
}

.access-info {
    text-align: center;
}

.access-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.5rem;
}

.access-badge.free {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.access-badge.semi-pro {
    background: var(--overlay-purple-20);
    color: var(--color-primary-bright);
    border: 1px solid var(--color-primary-bright);
}

.access-badge.pro {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.no-access {
    background: var(--color-gray-800);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.no-access p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.no-access .button {
    background: var(--color-primary-bright);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.no-access .button:hover {
    background: var(--color-primary-violet);
    transform: translateY(-2px);
}

.song-lyrics {
    background: var(--color-gray-800);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.song-lyrics h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.lyrics-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-line;
}

.song-content {
    background: var(--color-gray-800);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.related-songs {
    margin-top: 3rem;
}

.related-songs h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.related-songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-song-item {
    background: var(--color-gray-800);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.related-song-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-black-30);
}

.related-song-item a {
    text-decoration: none;
    color: inherit;
}

.related-song-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.related-song-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Artist Single Page Styles */
.artist-single {
    padding: 2rem 0;
}

.artist-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.artist-info {
    flex: 1;
}

.artist-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.artist-genre {
    font-size: 1.2rem;
    color: var(--color-primary-bright);
    margin-bottom: 1rem;
}

.artist-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.artist-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-black-30);
}

.artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-social {
    background: var(--color-gray-800);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.artist-social h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-gray-700);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-link.telegram {
    background: #0088cc;
    color: white;
}

.social-link.youtube {
    background: #ff0000;
    color: white;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-black-30);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.artist-songs,
.artist-albums {
    margin-top: 3rem;
}

.artist-songs h3,
.artist-albums h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.songs-grid,
.albums-grid {

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.song-item,
.album-item {
    background: var(--color-gray-800);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.song-item:hover,
.album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-black-30);
}

.song-item a,
.album-item a {
    text-decoration: none;
    color: inherit;
}

.song-item img,
.album-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.song-item h4,
.album-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.song-duration,
.album-year {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Album Single Page Styles */
.album-single {
    padding: 2rem 0;
}

.album-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.album-info {
    flex: 1;
}



.album-release-date,
.album-genre,
.album-tracks {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.album-cover {
    flex-shrink: 0;
    width: 200px;
    height: 137px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-black-30);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-content {
    margin-bottom: 3rem;
}

.album-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.album-access-info {
    margin-bottom: 2rem;
}

.album-songs {
    margin-top: 3rem;
}

.album-songs h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--color-gray-800);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.song-item:hover {
    background: var(--color-gray-700);
    transform: translateY(-2px);
}

.song-info {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
}

.song-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.song-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.song-title a:hover {
    color: var(--color-primary-bright);
}

.song-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.song-access {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-button {
    background: var(--color-primary-bright);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: var(--color-primary-violet);
    transform: scale(1.1);
}

.play-button i {
    font-size: 1.2rem;
}

.access-locked {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.no-songs {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-songs h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Archive Page Styles */
.archive-header {
    background: var(--color-gray-800);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.filter-section {
    background: var(--color-gray-800);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-filter {
    flex: 1;
    min-width: 200px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-600);
    border-radius: 10px;
    background: var(--color-gray-700);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary-bright);
    box-shadow: 0 0 0 2px var(--overlay-purple-20);
}

.artist-filter {
    min-width: 150px;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-600);
    border-radius: 10px;
    background: var(--color-gray-700);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary-bright);
}

.featured-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary-bright);
}

.songs-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.song-card {
    background: var(--color-gray-800);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-black-30);
}

.song-card-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.song-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.song-card:hover .song-card-image img {
    transform: scale(1.05);
}

.song-placeholder {
    width: 100%;
    height: 200px;
    background: var(--color-gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-primary-bright);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.play-button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary-bright);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.song-card:hover .play-button {
    opacity: 1;
}

.play-button:hover {
    background: var(--color-primary-violet);
    transform: scale(1.1);
}

.play-button.playing {
    background: var(--color-primary-violet);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--overlay-purple-70);
    }

    70% {
        box-shadow: 0 0 0 10px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.song-card-info {
    margin-top: 1rem;
}

.song-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.song-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.song-card-title a:hover {
    color: var(--color-primary-bright);
}

.song-card-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.song-card-duration {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.song-card-access {
    margin-top: 1rem;
}

.access-indicator {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.access-indicator.free {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.access-indicator.semi-pro {
    background: var(--overlay-purple-20);
    color: var(--color-primary-bright);
}

.access-indicator.pro {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.access-indicator.no-access {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.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;
    width: 40px;
    height: 40px;
    background: var(--color-gray-800);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-wrapper .page-numbers a:hover {
    background: var(--color-primary-bright);
    color: white;
    transform: translateY(-2px);
}

.pagination-wrapper .page-numbers .current {
    background: var(--color-primary-bright);
    color: white;
    font-weight: 600;
}

.no-songs {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-gray-800);
    border-radius: 15px;
    margin: 2rem 0;
}

.no-songs h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.no-songs p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {

    .song-header,
    .artist-header,
    .album-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .song-cover,
    .artist-image,
    .album-cover {
        width: 165px;
        height: 113px;
        align-self: center;
    }

    .song-title,
    .artist-title,
    .album-title {
        font-size: 18px !important;
    }

    /* استایل‌های .albums-grid برای popular albums section در homepage.css تعریف شده */
    .related-songs-grid,
    .songs-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 10px;
        width: 239%;
        justify-content: flex-start;
        align-items: center;
        flex-direction: row;
        padding: 0px !important;
        padding-bottom: 0px !important;
    }

    .social-links {
        justify-content: center;
    }

    .social-link {
        flex: 1;
        min-width: 120px;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-filter,
    .artist-filter {
        min-width: auto;
    }

    .songs-archive-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .song-card-info {
        text-align: center;
    }

    .song-card-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {

    .song-header,
    .artist-header,
    .album-header {
        gap: 1rem;
    }

    .song-player,
    .album-content,
    .artist-social {
        padding: 1rem;
    }

    /* استایل‌های .albums-grid برای popular albums section در homepage.css تعریف شده */
    .related-songs-grid,
    .songs-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 10px;
        width: 239%;
        justify-content: flex-start;
        align-items: center;
        flex-direction: row;
        padding: 0px !important;
        padding-bottom: 0px !important;
    }

    .social-links {
        flex-direction: column;
    }

    .social-link {
        justify-content: center;
    }

    .songs-archive-grid {
        grid-template-columns: 1fr;
    }

    .pagination-wrapper .page-numbers {
        gap: 0.25rem;
    }

    .pagination-wrapper .page-numbers a,
    .pagination-wrapper .page-numbers span {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}