/* ===================================================================
   FOLLOWED ARTISTS MODULE - RESPONSIVE DESIGN
   World-class design meets flawless mobile experience! 🚀
   =================================================================== */

.fc-followed-artists { 
    margin: 40px 0; 
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Prevent horizontal overflow */
    box-sizing: border-box;
}

.fc-followed-artists-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap; /* Allow wrapping on very small screens */
}

.fc-title { 
    font-size: 22px; 
    font-weight: 700; 
    margin: 0;
    flex: 1;
    min-width: 0; /* Allow text to wrap properly */
}

.fc-subtitle { 
    color: #777; 
    margin: 8px 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.fc-actions {
    flex-shrink: 0;
}

.fc-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent grid overflow */
}

.fc-artist-card { 
    position: relative; 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 14px; 
    padding: 16px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    transition: transform .2s ease, box-shadow .2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent card overflow */
}

.fc-artist-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 24px rgba(0,0,0,0.06); 
}

.fc-avatar { 
    width: 72px; 
    height: 72px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-bottom: 10px;
    flex-shrink: 0;
}

.fc-name { 
    font-weight: 600; 
    margin: 4px 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-followers { 
    font-size: 12px; 
    color: #888;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-badge { 
    position: absolute; 
    top: -6px; 
    right: -6px; 
    background: #ff3b3b; 
    color: #fff; 
    padding: 4px 8px; 
    border-radius: 999px; 
    font-size: 12px; 
    box-shadow: 0 6px 16px rgba(255,59,59,0.35);
    z-index: 2;
}

.fc-card-actions { 
    margin-top: 12px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    width: 100%;
}

.fc-card-actions .button { 
    width: 100%;
    box-sizing: border-box;
}

.fc-empty {
    text-align: center;
    color: #777;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS - Mobile-First Approach
   =================================================================== */

/* Tablet portrait and smaller */
@media (max-width: 768px) {
    .fc-followed-artists {
        margin: 30px 0;
        padding: 0 10px; /* Add side padding */
    }
    
    .fc-followed-artists-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .fc-actions {
        width: 100%;
    }
    
    .fc-actions .button {
        width: 100%;
        text-align: center;
    }
    
    .fc-title {
        font-size: 20px;
    }
    
    .fc-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

/* Mobile landscape and smaller */
@media (max-width: 600px) {
    .fc-followed-artists {
        margin: 20px 0;
        padding: 0 5px; /* Tighter side padding */
    }
    
    .fc-title {
        font-size: 18px;
    }
    
    .fc-grid {
        grid-template-columns: repeat(2, 1fr); /* Always 2 columns on mobile */
        gap: 10px;
    }
    
    .fc-artist-card {
        padding: 12px;
    }
    
    .fc-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }
    
    .fc-name {
        font-size: 14px;
    }
    
    .fc-followers {
        font-size: 11px;
    }
}

/* Very small mobile screens */
@media (max-width: 480px) {
    .fc-followed-artists {
        padding: 0;
        margin: 15px 0;
    }
    
    .fc-title {
        font-size: 16px;
    }
    
    .fc-grid {
        gap: 8px;
    }
    
    .fc-artist-card {
        padding: 10px;
        border-radius: 10px;
    }
    
    .fc-avatar {
        width: 50px;
        height: 50px;
        margin-bottom: 6px;
    }
    
    .fc-name {
        font-size: 13px;
        margin: 2px 0;
    }
    
    .fc-followers {
        font-size: 10px;
    }
    
    .fc-badge {
        padding: 2px 6px;
        font-size: 10px;
        top: -4px;
        right: -4px;
    }
}

/* Ultra-small screens (very narrow phones) */
@media (max-width: 320px) {
    .fc-grid {
        grid-template-columns: 1fr 1fr; /* Ensure exactly 2 columns */
        gap: 6px;
    }
    
    .fc-artist-card {
        padding: 8px;
    }
    
    .fc-avatar {
        width: 45px;
        height: 45px;
    }
}


