/* ==================== Artist Page Layout ==================== */

.artist-page-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    padding: 2rem;
}

/* ==================== Artist Sidebar ==================== */

.artist-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.artist-header-section {
    background: var(--color-bg-card);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.artist-header-section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.artist-header-avatar {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #22c55e;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.2);
    animation: fadeInScale 0.6s ease-out;
}

.artist-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-header-info h1 {
    color: var(--color-text-main);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0 0 0;
    line-height: 1.3;
    animation: fadeInScale 0.6s ease-out 0.1s backwards;
}

.verified-header {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 1rem;
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out 0.2s backwards;
}

.artist-followers {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
    animation: fadeInScale 0.6s ease-out 0.3s backwards;
}

/* Artist Stats in Sidebar */
.artist-stats {
    display: flex;
    width: 100%;
    gap: 0;
    background: var(--color-bg-secondary);
    border-radius: 0.75rem;
    overflow: hidden;
    animation: fadeInScale 0.6s ease-out 0.4s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
    padding: 0.8rem 0.5rem;
    border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    color: #22c55e;
    font-size: 1.2rem;
    font-weight: 700;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

body.light-theme .stat-value {
    color: #059669;
}

/* Follow and Share Buttons */
.action-buttons {
    display: flex;
    gap: 0.8rem;
    width: 100%;
    flex-direction: column;
    animation: fadeInScale 0.6s ease-out 0.5s backwards;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.2rem;
    border-radius: 0.75rem;
    border: none;
    font-family: 'Vazir';
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
    background: var(--color-bg-secondary);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
    transform: translateY(-2px);
}

/* Rating Container */
.rating-container {
    background: var(--color-bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    text-align: center;
    animation: fadeInScale 0.6s ease-out 0.6s backwards;
}

.rating-header {
    margin-bottom: 1rem;
}

.rating-title {
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.rating-stars {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin: 1rem 0;
}

.star {
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.star:hover,
.star.active {
    color: #fbbf24;
    transform: scale(1.2) rotate(15deg);
}

.total-votes {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Share Container */
.share-container {
    background: var(--color-bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    animation: fadeInScale 0.6s ease-out 0.7s backwards;
}

.share-header {
    margin-bottom: 1rem;
    text-align: center;
}

.share-title {
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0;
}

.share-btn:hover {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #ffffff;
    border-color: #22c55e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

/* ==================== Main Content Area ==================== */

.artist-main-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ==================== Sections ==================== */

.section {
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-text-main);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.section-title svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* Bio Section */
.bio-section {
    background: var(--color-bg-card);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--color-border);
}

.bio-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bio-content p {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
}

.bio-highlights {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.2rem;
    background: var(--color-bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
}

.highlight-icon {
    font-size: 1.1rem;
    color: #22c55e;
}

.highlight-text {
    color: var(--color-text-main);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Songs Section */
.songs-table {
    background: var(--color-bg-card);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.song-row {
    display: grid;
    grid-template-columns: 40px 60px 1fr 2fr 120px 40px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
}

.song-row:last-child {
    border-bottom: none;
}

.song-row:hover {
    background: var(--color-bg-secondary);
}

.song-row-number {
    color: var(--color-text-muted);
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.song-row-cover {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.song-row-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.song-row-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0;
}

.song-row-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

.song-row-album {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.song-row-duration {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.song-row-actions {
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    justify-content: center;
}

.song-row:hover .song-row-actions {
    opacity: 1;
}

/* Album Cards */
.albums-grid,
.similar-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.album-card,
.artist-card {
    background: var(--color-bg-card);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.album-card:hover,
.artist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #22c55e;
}

.album-card-cover,
.artist-card-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.album-card-content,
.artist-card-content {
    padding: 1rem;
}

.album-card-content h3,
.artist-card-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0 0 0.3rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card-info,
.artist-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.artist-card-followers {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.verified-badge {
    color: #22c55e;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* ==================== Animations ==================== */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Responsive Design ==================== */

@media (max-width: 1024px) {
    .artist-page-container {
        grid-template-columns: 300px 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .artist-header-avatar {
        width: 160px;
        height: 160px;
    }

    .artist-header-info h1 {
        font-size: 1.3rem;
    }

    .albums-grid,
    .similar-artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .artist-page-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .artist-sidebar {
        position: relative;
        top: auto;
    }

    .artist-header-section {
        padding: 1.5rem;
    }

    .artist-header-avatar {
        width: 140px;
        height: 140px;
    }

    .artist-header-info h1 {
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .song-row {
        grid-template-columns: 35px 50px 1fr 80px 35px;
    }

    .song-row-album {
        display: none;
    }

    .albums-grid,
    .similar-artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }

    .section {
        margin-bottom: 1.5rem;
    }

    .bio-section {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .artist-page-container {
        padding: 0.5rem;
    }

    .artist-sidebar {
        order: -1;
    }

    .artist-header-section {
        padding: 1rem;
    }

    .artist-header-avatar {
        width: 120px;
        height: 120px;
    }

    .artist-header-info h1 {
        font-size: 1rem;
    }

    .verified-header {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .artist-followers {
        font-size: 0.8rem;
    }

    .artist-stats {
        flex-direction: row;
        gap: 0;
    }

    .stat-item {
        padding: 0.6rem 0.4rem;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .stat-label {
        font-size: 0.55rem;
    }

    .action-buttons {
        flex-direction: row;
        gap: 0.6rem;
    }

    .btn-primary,
    .btn-secondary {
        flex: 1;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .rating-stars {
        gap: 0.3rem;
    }

    .star {
        font-size: 1.4rem;
    }

    .share-btn {
        width: 40px;
        height: 40px;
    }

    .song-row {
        grid-template-columns: 30px 45px 1fr 30px;
    }

    .song-row-duration {
        display: none;
    }

    .albums-grid,
    .similar-artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.8rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .bio-highlights {
        flex-direction: column;
        gap: 0.8rem;
    }

    .bio-section {
        padding: 1rem;
    }
}

@media (max-width: 360px) {
    .artist-header-avatar {
        width: 100px;
        height: 100px;
    }

    .artist-header-info h1 {
        font-size: 0.9rem;
    }

    .stat-item {
        padding: 0.5rem 0.3rem;
    }

    .stat-value {
        font-size: 0.8rem;
    }

    .share-buttons {
        gap: 0.6rem;
    }

    .share-btn {
        width: 38px;
        height: 38px;
    }

    .song-row {
        grid-template-columns: 25px 40px 1fr;
    }

    .song-row-duration,
    .song-row-actions {
        display: none;
    }

    .albums-grid,
    .similar-artists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
