/**
 * Instructor Marquee Styles
 *
 * @package Masteryio_Instructors_Extension
 */

/* Marquee Container */
.mie-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    background: none;
}

/* Marquee Track */
.mie-marquee-track {
    display: flex;
    gap: 30px;
    animation: marquee-scroll 30s linear infinite;
    will-change: transform;
}

/* Pause on hover */
.mie-marquee-container[data-pause="true"] .mie-marquee-track:hover {
    animation-play-state: paused;
}

/* Marquee Item */
.mie-marquee-item {
    flex-shrink: 0;
    width: 280px;
    box-shadow: 0 .05rem 2.8rem rgba(160, 160, 160, 0.1);
    border-radius: 8px;
}

/* Marquee Card */
.mie-marquee-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.mie-marquee-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Avatar */
.mie-marquee-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
}

.mie-marquee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info */
.mie-marquee-info {
    flex: 1;
    min-width: 0;
}

.mie-marquee-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mie-marquee-title {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty State */
.mie-marquee-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
}

/* Animation */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Reverse direction */
.mie-marquee-container[data-direction="right"] .mie-marquee-track {
    animation-direction: reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .mie-marquee-item {
        width: 240px;
    }
    
    .mie-marquee-card {
        padding: 16px;
        gap: 12px;
    }
    
    .mie-marquee-avatar {
        width: 56px;
        height: 56px;
    }
    
    .mie-marquee-name {
        font-size: 15px;
    }
    
    .mie-marquee-title {
        font-size: 13px;
    }
}
