﻿.category-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin: 15px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    }

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        border-color: var(--primary-color);
    }

.category-icon-large {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.category-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

    .category-stats .stat {
        text-align: center;
    }

        .category-stats .stat .number {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--primary-color);
        }

        .category-stats .stat .label {
            font-size: 0.8rem;
            color: #666;
        }

.word-item {
    background: rgba(79, 70, 229, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

    .word-item:hover {
        background: rgba(79, 70, 229, 0.1);
        transform: translateX(5px);
    }

    .word-item.learned {
        border-left-color: var(--success-color);
        background: rgba(16, 185, 129, 0.05);
    }

        .word-item.learned:hover {
            background: rgba(16, 185, 129, 0.1);
        }

.difficulty-badge {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 10px;
}

.difficulty-1 {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.difficulty-2 {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.difficulty-3 {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.difficulty-4 {
    background: rgba(147, 51, 234, 0.2);
    color: #7c2d12;
}

.difficulty-5 {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
}

.category-progress-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.category-card:hover .category-progress-container .progress-bar-modern {
    animation: progressGlow 2s ease-in-out infinite alternate;
}

@@keyframes progressGlow {
    0% {
        box-shadow: 0 0 5px rgba(79, 70, 229, 0.3);
    }

    100% {
        box-shadow: 0 0 15px rgba(79, 70, 229, 0.6);
    }
}
