/**
 * Playlist Row Component Styles
 *
 * Card-specific styles for playlist cards.
 * Container styles come from scroll_row.css.
 * Scoped with .pr-* prefix to avoid conflicts.
 */

/* Playlist Card */
.pr-card {
    flex: 0 0 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

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

/* Card Image (Album Grid Container) */
.pr-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-tertiary);
    overflow: hidden;
}

/* 2x2 Album Grid */
.pr-album-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
    gap: 1px;
    background: var(--border-primary);
}

.pr-album-slot {
    background: var(--bg-tertiary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-album-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder for missing album art */
.pr-album-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.pr-album-placeholder svg {
    width: 32px;
    height: 32px;
    color: var(--text-tertiary);
    opacity: 0.5;
}

/* Card Content */
.pr-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pr-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-card-count {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pr-card {
        flex: 0 0 160px;
    }

    .pr-card-content {
        padding: 10px;
    }

    .pr-card-name {
        font-size: 13px;
    }

    .pr-card-count {
        font-size: 11px;
    }

    .pr-album-placeholder svg {
        width: 24px;
        height: 24px;
    }
}
