/**
 * Listen Row Component Styles
 *
 * Card-specific styles for gradient listen cards.
 * Scroll container styles provided by scroll_row.css.
 * Scoped with .lr-* prefix to avoid conflicts.
 */

/* ============================================
   SECTION MODIFIER
   Applied to scr-section via section_class option
   ============================================ */

.lr-section {
    /* Any section-level overrides if needed */
}

/* ============================================
   LISTEN CARD
   ============================================ */

.lr-card {
    flex: 0 0 180px;
    height: 130px;
    border-radius: var(--radius-xl, 16px);
    padding: 16px;
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.lr-card:active {
    transform: translateY(-2px);
}

/* ============================================
   CARD ICON
   ============================================ */

.lr-card-icon {
    width: 28px;
    height: 28px;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

.lr-card-icon svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   CARD CONTENT
   ============================================ */

.lr-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lr-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 0, 0, 0.3);
}

.lr-card-subtitle {
    font-size: 12px;
    font-weight: 500;
    /* Multi-line truncation (3 lines max) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   MOBILE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .lr-card {
        flex: 0 0 150px;
        height: 115px;
        padding: 12px;
    }

    .lr-card-icon {
        width: 24px;
        height: 24px;
    }

    .lr-card-title {
        font-size: 14px;
    }

    .lr-card-subtitle {
        font-size: 11px;
    }
}

/* ============================================
   SKELETON LOADING CARDS
   ============================================ */

.lr-card--skeleton {
    flex: 0 0 180px;
    height: 130px;
    border-radius: var(--radius-xl, 16px);
    background: var(--bg-secondary, #1a1a1a);
    position: relative;
    overflow: hidden;
}

.lr-card--skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    animation: lr-skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes lr-skeleton-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 768px) {
    .lr-card--skeleton {
        flex: 0 0 150px;
        height: 115px;
    }
}
