/* Trending Artists Styles - Updated for Taxonomy Links */

.trending-artists-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.trending-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px 20px;
    justify-items: center;
    align-items: start;
}

/* Column variations */
.trending-artists-container[data-columns="2"] .trending-artists-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 500px;
}

.trending-artists-container[data-columns="3"] .trending-artists-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    max-width: 700px;
}

.trending-artists-container[data-columns="4"] .trending-artists-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    max-width: 900px;
}

.trending-artists-container[data-columns="5"] .trending-artists-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-width: 1100px;
}

.trending-artists-container[data-columns="6"] .trending-artists-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    max-width: 1200px;
}

/* Artist Item */
.trending-artist-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 100%;
    max-width: 180px;
}

.trending-artist-item:hover {
    transform: translateY(-5px);
}

/* Image Wrapper */
.trending-artist-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #06801e 100%);
    transition: transform 0.3s ease;
}

.trending-artist-image-wrapper:hover {
    transform: scale(1.05);
}

/* Image */
.trending-artist-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
}

.trending-artist-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.trending-artist-image-wrapper:hover .trending-artist-img {
    transform: scale(1.1);
}

/* Placeholder */
.trending-artist-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.trending-artist-placeholder-content {
    text-align: center;
}

.trending-artist-placeholder-icon {
    font-size: 40px;
    opacity: 0.7;
}

/* Overlay */
.trending-artist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trending-artist-image-wrapper:hover .trending-artist-overlay {
    opacity: 1;
}

/* Social Links */
.trending-artist-social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.trending-artist-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.trending-artist-social:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.trending-artist-social.spotify:hover {
    background: #1DB954;
}

.trending-artist-social.apple-music:hover {
    background: #FA243C;
}

.trending-artist-social.youtube:hover {
    background: #FF0000;
}

.trending-artist-social.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.trending-artist-social-icon {
    font-size: 14px;
    line-height: 1;
}

/* Artist Name and Genre Info */
.trending-artist-name {
    width: 100%;
    margin-top: 5px;
}

.trending-artist-name-link,
.trending-artist-name-text {
    color: #333;
    text-decoration: none;
    font-family: Poppins, Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    display: block;
    transition: color 0.3s ease;
}

.trending-artist-name-link:hover {
    color: #06801e;
}

.trending-artist-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Genre Info for Taxonomy Links */
.trending-artist-genre-info {
    margin-top: 4px;
}

.artist-genre-label {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.trending-artist-item:hover .artist-genre-label {
    background: #06801e;
    color: white;
}

/* Archive page styling */
.artists-archive-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #06801e 100%);
    color: white;
    border-radius: 10px;
}

.archive-title {
    font-size: 3em;
    margin-bottom: 10px;
}

.archive-description {
    font-size: 1.2em;
    opacity: 0.9;
}

.trending-artists-showcase,
.all-artists-section {
    margin-bottom: 60px;
}

.trending-artists-showcase h2,
.all-artists-section h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Artist Single Page Styles */
.artist-single-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.artist-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.artist-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.artist-featured-image {
    margin: 20px 0;
}

.artist-main-image {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.artist-genres {
    margin: 20px 0;
}

.genre-tag {
    display: inline-block;
    background: #06801e;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 0 5px;
    font-size: 0.9em;
}

.artist-social-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.artist-social-links-list {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-spotify { background: #1DB954; }
.social-apple_music { background: #FA243C; }
.social-youtube { background: #FF0000; }
.social-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
}

.related-trending-artists {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.related-trending-artists h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* No Results */
.trending-artists-no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

/* Loading State */
.trending-artists-loading {
    text-align: center;
    padding: 40px 20px;
}

.trending-artists-loading::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: trending-artists-spin 1s linear infinite;
}

@keyframes trending-artists-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .trending-artists-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 25px 15px;
    }
    
    .trending-artist-image-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
    }
    
    .trending-artist-name-link,
    .trending-artist-name-text {
        font-size: 14px;
    }
    
    .trending-artist-social {
        width: 28px;
        height: 28px;
    }
    
    .trending-artist-social-icon {
        font-size: 12px;
    }
    
    .trending-artist-placeholder-icon {
        font-size: 32px;
    }
    
    .artist-genre-label {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .archive-title {
        font-size: 2.2em;
    }
    
    .artist-title {
        font-size: 2em;
    }
    
    .artist-social-links-list {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .trending-artists-container {
        padding: 15px 0;
    }
    
    .trending-artists-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 20px 10px;
    }
    
    .trending-artist-image-wrapper {
        width: 90px;
        height: 90px;
        margin-bottom: 10px;
    }
    
    .trending-artist-name-link,
    .trending-artist-name-text {
        font-size: 13px;
    }
    
    .trending-artist-social {
        width: 24px;
        height: 24px;
    }
    
    .trending-artist-social-icon {
        font-size: 10px;
    }
    
    .trending-artist-placeholder-icon {
        font-size: 28px;
    }
    
    .artists-archive-page {
        padding: 12px;
    }
    
    .archive-header {
        padding: 30px 20px;
    }
    
    .archive-title {
        font-size: 1.8em;
    }
    
    .trending-artists-showcase h2,
    .all-artists-section h2 {
        font-size: 1.8em;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .trending-artist-name-link,
    .trending-artist-name-text {
        color: #000000;
    }
    
    .trending-artist-name-link:hover {
        color: #06801e;
    }
    
    .trending-artists-no-results {
        background: #2a2a2a;
        color: #ccc;
    }
    
    .artist-genre-label {
        background: #333;
        color: #ccc;
    }
    
    .trending-artist-item:hover .artist-genre-label {
        background: #06801e;
        color: white;
    }
}

/* Accessibility */
.trending-artist-social:focus,
.trending-artist-name-link:focus {
    outline: 2px solid #06801e;
    outline-offset: 2px;
}

/* Animation for loading new content */
.trending-artist-item.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for better UX */
.trending-artist-item {
    cursor: pointer;
}

.trending-artist-item:hover .trending-artist-name-link {
    color: #06801e;
}

/* Tag page and Genre page link styling */
.trending-artist-name-link[href*="tag/"] {
    position: relative;
}

.trending-artist-name-link[href*="tag/"]:after {
    content: "️";
    position: absolute;
    top: -2px;
    right: -15px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trending-artist-item:hover .trending-artist-name-link[href*="tag/"]:after {
    opacity: 0.6;
}

.trending-artist-name-link[href*="artist-genre"] {
    position: relative;
}

.trending-artist-name-link[href*="artist-genre"]:after {
    content: "🔗";
    position: absolute;
    top: -2px;
    right: -15px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trending-artist-item:hover .trending-artist-name-link[href*="artist-genre"]:after {
    opacity: 0.6;
}