/* ============================================
   COURSE CATEGORY SHORTCODES STYLES
   ============================================ */

/* ========================================
   Category List Styles
   ======================================== */
.course-category-list .list-group-item {
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.course-category-list .list-group-item:hover {
    border-left-color: #3498db;
    background: #f8f9fa;
}

.course-category-list .list-group-item a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.course-category-list .list-group-item a:hover {
    color: #3498db;
}

.course-category-list .badge {
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
}

.category-list-bullets,
.category-list-numbered {
    list-style-position: inside;
    padding-left: 0;
}

.category-list-bullets li,
.category-list-numbered li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.category-list-bullets li a,
.category-list-numbered li a {
    color: #2c3e50;
    text-decoration: none;
    margin-left: 10px;
}

.category-list-bullets li a:hover,
.category-list-numbered li a:hover {
    color: #3498db;
}

/* ========================================
   Category Grid Cards
   ======================================== */
.course-category-grid .category-grid-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.course-category-grid .category-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon {
    font-size: 36px;
    color: white;
}

.category-grid-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.category-desc {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.category-count {
    color: #95a5a6;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* ========================================
   Category Featured Cards
   ======================================== */
.course-category-cards .category-featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
}

.course-category-cards .category-featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-card-header {
    padding: 40px 20px;
    text-align: center;
    position: relative;
    color: white;
}

.category-big-icon {
    font-size: 48px;
    opacity: 0.9;
    display: block;
    margin-bottom: 15px;
}

.category-card-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.category-card-body {
    padding: 25px 20px;
}

.category-card-body p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #95a5a6;
    font-size: 0.9rem;
}

.category-stats i {
    margin-right: 5px;
}

/* ========================================
   Category Tabs
   ======================================== */
.course-category-tabs {
    margin: 30px 0;
}

.course-category-tabs .nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.course-category-tabs .nav-link {
    color: #7f8c8d;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    transition: all 0.3s;
}

.course-category-tabs .nav-link:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

.course-category-tabs .nav-link.active {
    color: #3498db;
    background: transparent;
    border-bottom-color: #3498db;
}

.course-category-tabs .nav-link i {
    margin-right: 8px;
}

.tab-course-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-align: center;
}

.tab-course-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.tab-course-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.tab-course-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tab-course-card .price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* ========================================
   Category Filter Buttons
   ======================================== */
.category-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #7f8c8d;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #3498db;
    color: #3498db;
    background: #ecf7fd;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.filter-btn i {
    margin-right: 6px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .category-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .category-icon {
        font-size: 28px;
    }
    
    .category-grid-card h4 {
        font-size: 1.1rem;
    }
    
    .category-card-header {
        padding: 30px 15px;
    }
    
    .category-big-icon {
        font-size: 36px;
    }
    
    .category-card-header h3 {
        font-size: 1.25rem;
    }
    
    .course-category-tabs .nav-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .category-filter-buttons {
        justify-content: flex-start;
    }
    
    .filter-btn {
        flex: 1 1 45%;
    }
}

/* ========================================
   Animation Classes
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-grid-card,
.category-featured-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Stagger animation for multiple cards */
.category-grid-card:nth-child(1) { animation-delay: 0.1s; }
.category-grid-card:nth-child(2) { animation-delay: 0.2s; }
.category-grid-card:nth-child(3) { animation-delay: 0.3s; }
.category-grid-card:nth-child(4) { animation-delay: 0.4s; }
.category-grid-card:nth-child(5) { animation-delay: 0.5s; }
.category-grid-card:nth-child(6) { animation-delay: 0.6s; }
