/* Exam Set Card Component Styles */
/* Styles specifically for ExamSetCard component */

.examset-card {
    border: 1px solid var(--edtt-color-border-default);
    border-radius: var(--edtt-border-radius-lg);
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
    background-color: var(--edtt-color-bg-card);
}

.examset-card:hover {
    box-shadow: var(--edtt-shadow-md);
}

.examset-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--edtt-border-radius-lg);
    transition: filter 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.examset-thumbnail:hover {
    filter: brightness(0.8);
}

.examset-thumbnail-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.examset-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.examset-card:hover .examset-play-overlay {
    opacity: 1;
}

.examset-play-button {
    width: 60px;
    height: 60px;
    background: var(--edtt-color-bg-default);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--edtt-color-primary);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px var(--edtt-color-bg-default);
    transform: scale(0.8);
}

.examset-card:hover .examset-play-button {
    transform: scale(1);
}

.examset-play-button:hover {
    transform: scale(1.1);
}

.examset-play-button i {
    font-size: var(--edtt-font-size-lg);
    line-height: 1;
    color: var(--edtt-color-text-default);
    margin-left: 3px;
}

.examset-grade-badge {
    background: var(--edtt-color-bg-default);
    color: var(--edtt-color-text-default);
    border-radius: 50px;
    font-size: var(--edtt-font-size-xs);
    font-weight: 500;
    padding: 2px 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.examset-badge-container {
    top: 0;
    padding: 0.75rem;
    z-index: 20;
}

.examset-content {
    flex: 1;
    height: 100%;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.examset-text-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.examset-title {
    font-size: var(--edtt-font-size-h6);
    font-weight: 500;
    color: var(--edtt-color-text-default);
    margin-bottom: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.examset-title a {
    color: var(--edtt-color-text-default);
    text-decoration: none;
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.examset-title:hover a {
    color: var(--edtt-color-text-primary);
}

.examset-subtitle {
    font-size: var(--edtt-font-size-sm);
    color: var(--edtt-color-text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.examset-stats {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
}

.examset-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    flex-shrink: 0;
}

.examset-stat-icon {
    width: 16px !important;
    height: 16px !important;
    color: var(--edtt-color-text-secondary);
    flex-shrink: 0;
}

.examset-stat-text {
    display: flex;
    gap: 5px;
    align-items: center;
}

.examset-stat-number {
    font-weight: 500;
    color: var(--edtt-color-text-primary);
    font-size: var(--edtt-font-size-sm);
    line-height: 1.2;
    white-space: nowrap;
}

.examset-stat-label {
    font-size: var(--edtt-font-size-xs);
    color: var(--edtt-color-text-muted);
    line-height: 1.2;
    white-space: nowrap;
}

/* Animation */
.examset-fade-in {
    animation: examsetFadeIn 0.5s ease-in-out;
}

@keyframes examsetFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .examset-content {
        padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    }
    
    .examset-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .examset-content {
        padding: 0.5rem;
    }
    
    .examset-stats {
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .examset-stat-item {
        gap: 6px;
        min-width: 70px;
    }
}

@media (max-width: 768px) {
    .examset-card {
        height: auto;
        margin-bottom: 1rem;
    }

    .examset-card .row {
        flex-direction: column;
    }
    
    .examset-content {
        padding: 1rem;
        height: auto;
        min-height: 120px;
    }
    
    .examset-stats {
        gap: 24px;
        margin-top: 0.5rem;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .examset-title {
        white-space: normal;
        line-height: 1.3;
        overflow: visible;
        text-overflow: clip;
    }
    
    .examset-title a {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .examset-subtitle {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

@media (max-width: 576px) {
    .examset-card {
        margin-bottom: 0.75rem;
    }
    
    .examset-content {
        padding: 0.75rem;
        min-height: 100px;
    }
    
    .examset-stats {
        gap: 16px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .examset-stat-item {
        gap: 8px;
        min-width: 60px;
        flex: 0 0 auto;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .examset-stats {
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .examset-stat-item {
        gap: 6px;
        min-width: auto;
        width: 100%;
    }
    
    .examset-stat-text {
        flex-direction: row;
        gap: 4px;
        align-items: center;
    }
    
    .examset-stat-number {
        font-size: var(--edtt-font-size-sm);
    }
    
    .examset-stat-label {
        font-size: var(--edtt-font-size-xs);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .examset-card,
    .examset-thumbnail,
    .examset-play-overlay,
    .examset-play-button {
        transition: none;
    }
    
    .examset-fade-in {
        animation: none;
    }
}