/* ==========================================================================
   Moduł: AMFR Artist Card
   Plik: /css/artist-card.css
   Wersja: 3.1.0-LTS
   Data utworzenia: 23.08.2026
   Platforma: AMFR Core Presentation Layer
   Obsługiwane platformy: WWW, PWA, Universal Client
   Status: ACTIVE
   Opis: Arkusz stylów dla uniwersalnego komponentu kaflowego Artist Card w ekosystemie AMFR.
   ========================================================================== */

/* ==========================================================================
   Base Component & Variables Scope
   ========================================================================== */

.amfr-artist-card {
    --amfr-card-bg: #121212;
    --amfr-card-bg-hover: #181818;
    --amfr-gold: #d4af37;
    --amfr-gold-light: #f0cf63;
    --amfr-gold-glow: rgba(212, 175, 55, 0.25);
    --amfr-border-gold: rgba(212, 175, 55, 0.55);
    --amfr-white: #ffffff;
    --amfr-gray-light: #b0b0b0;
    --amfr-gray-dark: #666666;

    position: relative;
    width: 220px;
    flex: 0 0 220px;
    background: var(--amfr-card-bg);
    border: 1px solid var(--amfr-border-gold);
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   States & Interactive Hover / Focus / Active
   ========================================================================== */

.amfr-artist-card:hover {
    border-color: var(--amfr-gold);
    box-shadow: 0 0 16px var(--amfr-gold-glow);
    background: var(--amfr-card-bg-hover);
    transform: translateY(-2px);
}

.amfr-artist-card:focus-within {
    outline: none;
    border-color: var(--amfr-gold);
    box-shadow: 0 0 0 2px var(--amfr-gold-glow);
}

/* ==========================================================================
   Position Badge (Optional)
   ========================================================================== */

.amfr-artist-card__position {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    background: rgba(10, 10, 10, 0.88);
    border: 1px solid var(--amfr-border-gold);
    border-radius: 6px;
    color: var(--amfr-gold);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Links & Interactivity
   ========================================================================== */

.amfr-artist-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
    outline: none;
}

.amfr-artist-card__link:focus-visible {
    outline: 2px solid var(--amfr-gold);
    outline-offset: 2px;
    border-radius: 6px;
}

.amfr-artist-card__link--inactive {
    cursor: default;
    pointer-events: none;
}

/* ==========================================================================
   Avatar Container & Avatar (Visual Focal Point)
   ========================================================================== */

.amfr-artist-card__avatar-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid var(--amfr-border-gold);
    margin: 4px auto 12px;
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: border-color 0.2s ease;
}

.amfr-artist-card:hover .amfr-artist-card__avatar-container {
    border-color: var(--amfr-gold);
}

.amfr-artist-card__avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.amfr-artist-card:hover .amfr-artist-card__avatar {
    transform: scale(1.04);
}

/* ==========================================================================
   Content Area & Typography
   ========================================================================== */

.amfr-artist-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    flex-grow: 1;
}

.amfr-artist-card__name {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--amfr-white);
    margin: 0 0 8px;
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    transition: color 0.2s ease;
}

.amfr-artist-card__link:hover .amfr-artist-card__name {
    color: var(--amfr-gold-light);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   Genres & Tags
   ========================================================================== */

.amfr-artist-card__genres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 0 0 10px;
    width: 100%;
    max-height: 2.4rem;
    overflow: hidden;
}

.amfr-artist-card__genre-tag {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1;
    color: var(--amfr-gray-light);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 3px 6px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */

.amfr-artist-card__stat {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.amfr-artist-card__stat-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.72rem;
    color: var(--amfr-gray-light);
    line-height: 1.1;
    text-transform: lowercase;
}

.amfr-artist-card__stat-value {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--amfr-gold);
    line-height: 1.1;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 700px) {
    .amfr-artist-card {
        width: 190px;
        flex: 0 0 190px;
        padding: 10px;
    }

    .amfr-artist-card__name {
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .amfr-artist-card {
        width: min(42vw, 165px);
        flex: 0 0 min(42vw, 165px);
        padding: 8px;
        border-radius: 10px;
    }

    .amfr-artist-card__avatar-container {
        margin-bottom: 8px;
    }

    .amfr-artist-card__name {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .amfr-artist-card__genre-tag {
        font-size: 0.64rem;
        padding: 2px 5px;
    }

    .amfr-artist-card__stat-label,
    .amfr-artist-card__stat-value {
        font-size: 0.68rem;
    }
}
