/* ---------------------------------------
   CREATOR CARD (PAGE SPECIFIC)
--------------------------------------- */

/* GRID */
.bv-archive--creators .bv-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

/* Falls Grid-Items Wrapper sind */
.bv-archive--creators .bv-archive-grid > * {
    display: flex;
    min-width: 0;
    height: 100%;
}

/* Falls die Card direkt im Grid liegt oder in einem Wrapper steckt */
.bv-archive--creators .bv-archive-grid > .bv-card--creator,
.bv-archive--creators .bv-archive-grid > * > .bv-card--creator {
    width: 100%;
    height: 100%;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .bv-archive--creators .bv-archive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .bv-archive--creators .bv-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .bv-archive--creators .bv-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* CARD */
.bv-card--creator {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    min-height: 220px;
    padding: var(--bv-page-spacing);
    background: var(--bv-card-bg);
    border: 1px solid var(--bv-border-subtle);
    border-radius: var(--bv-card-radius);
    box-shadow: var(--bv-card-shadow);
    color: var(--bv-text-primary);
    box-sizing: border-box;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.bv-card--creator:hover {
    transform: translateY(-2px);
    border-color: var(--bv-border-contrast-soft);
    box-shadow: var(--bv-shadow-elevated);
}

/* Externe Cards visuell angleichen */
.bv-card--creator.is-external {
    background: var(--bv-card-bg);
    border: 1px solid var(--bv-border-subtle);
}

/* Optional Featured */
.bv-card--creator.is-featured {
    border-color: var(--bv-accent-border-soft);
    box-shadow: 0 0 0 1px var(--bv-accent-soft), var(--bv-card-shadow);
}

/* CARD CONTENT */
.bv-card-content--creator {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.bv-card-content--creator:hover,
.bv-card-content--creator:focus,
.bv-card-content--creator:active {
    color: inherit !important;
    text-decoration: none;
}

/* HEADER */
.bv-creator-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
}

.bv-creator-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--bv-radius-pill);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--bv-border-subtle);
    background: var(--bv-surface-soft);
}

/* META */
.bv-creator-card__meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.bv-creator-card__name {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    font-family: var(--bv-font-family);
    font-weight: var(--bv-font-weight-semibold);
    font-size: var(--bv-font-size-base);
    line-height: var(--bv-line-height-tight);
    color: var(--bv-heading-color);
    word-break: break-word;
}

.bv-creator-card__nameText {
    min-width: 0;
    flex: 1;
}

.bv-creator-card__handle {
    font-family: var(--bv-font-family);
    font-size: var(--bv-font-size-xs);
    line-height: var(--bv-line-height-base);
    color: var(--bv-text-muted);
    word-break: break-word;
}

/* Primary Link */
.bv-creator-card__primaryLink {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bv-creator-card__primaryLink:hover,
.bv-creator-card__primaryLink:focus,
.bv-creator-card__primaryLink:active,
.bv-creator-card__primaryLink:visited {
    color: inherit !important;
    text-decoration: none !important;
    outline: none;
    box-shadow: none;
}

/* BADGES */
.bv-creator-card__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
    max-width: 55%;
}

/* Neue Channel-Zeile */
.bv-creator-card__channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 6px;
    min-height: 40px;
}

.bv-creator-card__badge,
.bv-creator-card__channels .bv-creator-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    font-family: var(--bv-font-family);
    font-size: var(--bv-font-size-xs);
    font-weight: var(--bv-font-weight-medium);
    line-height: 1;
    border-radius: var(--bv-radius-sm);
    background: var(--bv-surface-chip);
    border: 1px solid var(--bv-border-subtle);
    color: var(--bv-text-secondary);
    white-space: nowrap;
}

/* Badge-Link neutralisieren */
.bv-creator-card__badgeLink {
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.bv-creator-card__badgeLink:hover,
.bv-creator-card__badgeLink:focus,
.bv-creator-card__badgeLink:active,
.bv-creator-card__badgeLink:visited {
    text-decoration: none !important;
    outline: none;
    box-shadow: none;
}

.bv-creator-card__badgeLink:hover,
.bv-creator-card__badgeLink:focus,
.bv-creator-card__badgeLink:active {
    border-color: var(--bv-accent-border-soft);
    background: var(--bv-accent-soft);
    color: var(--bv-white) !important;
    transform: translateY(-1px);
}

/* STATS */
.bv-creator-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    min-height: 52px;
    align-items: flex-start;
}

/* Platzhalter für externe Cards */
.bv-creator-card__stats:empty {
    display: block;
    visibility: hidden;
}

.bv-creator-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--bv-font-family);
    font-size: var(--bv-font-size-sm);
    color: var(--bv-text-secondary);
}

.bv-creator-stat strong {
    font-size: var(--bv-font-size-base);
    font-weight: var(--bv-font-weight-semibold);
    line-height: var(--bv-line-height-tight);
    color: var(--bv-heading-color);
}

.bv-creator-stat em {
    font-style: normal;
    font-size: var(--bv-font-size-xs);
    color: var(--bv-text-muted);
}

/* CTA */
.bv-creator-card__cta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--bv-border-subtle);
    display: flex;
    align-items: stretch;
    min-height: 44px;
    box-sizing: border-box;
    font-family: var(--bv-font-family);
    font-size: var(--bv-font-size-sm);
    color: var(--bv-text-secondary);
}

/* EXTERNER CTA-LINK exakt wie interne CTA-Zeile */
.bv-creator-card__ctaLink {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    gap: 12px;
    width: 100%;
    min-width: 0;
    height: 100%;
    color: inherit;
    text-decoration: none;
    background: none;
    border: 0;
    outline: 0;
    cursor: pointer;
}

.bv-creator-card__ctaText {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
}

.bv-creator-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    line-height: 1;
    color: var(--bv-accent);
    transition: transform 0.2s ease, color 0.2s ease;
}

.bv-creator-card__ctaLink:hover,
.bv-creator-card__ctaLink:focus,
.bv-creator-card__ctaLink:active,
.bv-creator-card__ctaLink:visited {
    color: inherit !important;
    text-decoration: none !important;
    background: none;
    border: 0;
    outline: 0;
    box-shadow: none;
}

.bv-creator-card__arrow {
    color: var(--bv-accent);
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Einheitliche Interaktion */
.bv-card--creator:hover .bv-creator-card__arrow,
.bv-creator-card__cta:hover .bv-creator-card__arrow,
.bv-creator-card__ctaLink:hover .bv-creator-card__arrow,
.bv-creator-card__ctaLink:focus .bv-creator-card__arrow {
    transform: translateX(4px);
    color: var(--bv-accent-bright);
}

.bv-card--creator:hover .bv-creator-card__cta,
.bv-creator-card__cta:hover {
    border-top-color: var(--bv-border-contrast-soft);
}

.bv-creator-card__cta:hover .bv-creator-card__ctaText,
.bv-creator-card__ctaLink:hover .bv-creator-card__ctaText,
.bv-creator-card__ctaLink:focus .bv-creator-card__ctaText {
    color: var(--bv-text-primary);
}

/* ---------------------------------------
   CREATOR FILTER
--------------------------------------- */

.bv-archive-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    font-family: var(--bv-font-family);
    font-size: var(--bv-font-size-sm);
    font-weight: var(--bv-font-weight-medium);
    color: var(--bv-btn-text);
    background: var(--bv-btn-bg);
    border: 1px solid var(--bv-btn-border);
    border-radius: var(--bv-btn-radius);
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.bv-archive-filter-reset:hover,
.bv-archive-filter-reset:focus {
    border-color: var(--bv-btn-border-hover);
    color: var(--bv-white) !important;
    background: var(--bv-surface-soft);
    text-decoration: none;
    transform: translateY(-1px);
}

.bv-archive-filter-reset:active {
    transform: translateY(0);
}

button.bv-archive-filter-reset {
    appearance: none;
    -webkit-appearance: none;
}

/* RESPONSIVE DETAIL */
@media (max-width: 768px) {
    .bv-card--creator {
        min-height: 200px;
        padding: 14px;
    }

    .bv-creator-card__head {
        gap: 10px;
        min-height: 52px;
    }

    .bv-creator-card__avatar {
        width: 44px;
        height: 44px;
    }

    .bv-creator-card__stats {
        gap: 12px;
        margin-top: 12px;
        min-height: 46px;
    }

    .bv-creator-card__cta {
        padding-top: 10px;
        min-height: 40px;
    }

    .bv-creator-card__badges {
        max-width: 50%;
    }

    .bv-creator-card__channels {
        gap: 6px;
        margin-top: 12px;
        min-height: 36px;
    }

    .bv-archive-filter-reset {
        min-height: 42px;
        padding: 0 12px;
    }
}

@media (max-width: 500px) {
    .bv-creator-card__name {
        flex-direction: column;
        align-items: flex-start;
    }

    .bv-creator-card__badges {
        max-width: 100%;
        justify-content: flex-start;
    }

    .bv-creator-card__channels {
        justify-content: flex-start;
    }
}