/**
 * Study Skills Integration - Enhanced CSS
 * Modern, intuitive styling for Study Skills recommendations
 * 
 * @version 1.0.0
 * @date 2026-02-17
 */

/* Study Skills Card */
.study-skills-card {
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.study-skills-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Sidebar Card - Enhanced */
.study-skills-sidebar-card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

/* Study Skills Header */
.study-skills-header {
    background: #ffffff;
    color: #1e293b;
    padding: 1rem;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.study-skills-header h6 {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: #1e293b !important; /* Force dark color in header */
}

.study-skills-header small {
    font-size: 0.75rem;
    opacity: 0.95;
    color: #64748b; /* Force muted color for subtitle */
}

/* Gradient Header (legacy support) */
.bg-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Study Skills Intro */
.study-skills-intro {
    background: linear-gradient(to bottom, #f8f9ff, #ffffff);
    border-bottom: 1px solid #e8edff;
}

.study-skills-intro small {
    line-height: 1.5;
    display: block;
}

.study-skills-intro .fa-lightbulb {
    font-size: 0.9rem;
}

/* List Items */
.study-skills-card .list-group-item {
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.study-skills-card .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.study-skills-card .list-group-item:hover .fa-arrow-right {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* Badges */
.study-skills-card .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* Study Skills Items */
.study-skills-item {
    color: #2d3748;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f4;
    position: relative;
    padding: 0.5rem 0; /* Added vertical padding to the item itself */
}

.study-skills-item:last-child {
    border-bottom: none;
}

.study-skills-item:hover {
    background: linear-gradient(to right, #f8f9ff, #ffffff);
}

.study-skills-item:hover .study-skills-arrow {
    transform: translateX(4px);
    color: #667eea;
}

/* Study Skills Icon Wrapper */
.study-skills-icon-wrapper {
    width: 40px; /* Increased size slightly */
    height: 40px; /* Increased size slightly */
    border-radius: 10px; /* Adjusted radius */
    background: #f0f4ff; /* Lighter background */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem; /* Larger icon */
    color: #5a67d8; /* Slightly darker purple for contrast */
    margin-right: 1.5rem !important; /* Force larger margin (24px) */
}

/* Study Skills Title */
.study-skills-title {
    font-size: 0.95rem; /* Slightly larger */
    color: #1a202c;
    line-height: 1.4;
    font-weight: 700; /* Bolder */
    margin-bottom: 0.25rem;
}

/* Study Skills Meta */
.study-skills-meta {
    font-size: 0.75rem;
    color: #718096;
    display: flex;
    align-items: center;
}

/* Study Skills Arrow */
.study-skills-arrow {
    font-size: 0.75rem;
    color: #cbd5e0;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

/* Study Skills Footer */
.study-skills-footer {
    background: #f8fafc;
    border-top: 1px solid #f0f0f4;
}

/* Compact List (legacy support) */
.compact-study-skills {
    font-size: 0.9rem;
}

.compact-study-skills a {
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.compact-study-skills a:hover {
    background-color: #f0f0f0;
}

/* Difficulty Colors */
.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

/* Progress Indicators */
.badge.bg-primary {
    background-color: #667eea !important;
}

/* Card Footer */
.study-skills-card .card-footer {
    border-top: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
}

/* Category Icons */
.study-skills-card h6 i {
    opacity: 0.7;
}

/* Toggle Button */
.study-skills-card #toggle-study-skills {
    border: none;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s;
}

.study-skills-card #toggle-study-skills:hover {
    transform: scale(1.1);
}

/* Inline Alert Style */
.alert-info.study-skills-alert {
    border-left: 4px solid #667eea;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.05), rgba(102, 126, 234, 0.02));
}

.alert-info.study-skills-alert .fa-brain {
    color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .study-skills-card .list-group-item {
        padding: 0.75rem 0.5rem;
    }
    
    .study-skills-card h5 {
        font-size: 1rem;
    }
    
    .study-skills-card .badge {
        font-size: 0.65rem;
    }
    
    /* Sidebar card responsive */
    .study-skills-sidebar-card .study-skills-item {
        padding: 0.75rem !important;
    }
    
    .study-skills-icon-wrapper {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .study-skills-title {
        font-size: 0.8rem;
    }
    
    .study-skills-header h6 {
        font-size: 0.85rem;
    }
    
    .study-skills-intro {
        padding: 0.5rem 0.75rem !important;
    }
    
    .study-skills-intro small {
        font-size: 0.7rem;
    }
}

/* Dashboard Widget */
.rounded-circle.bg-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animation for appearance */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.study-skills-card {
    animation: slideInUp 0.5s ease-out;
}

/* Hover effects for module links */
.study-skills-card .fw-bold {
    color: #212529;
    transition: color 0.2s;
}

.study-skills-card .list-group-item:hover .fw-bold {
    color: #667eea;
}

/* Category section separation */
.study-skills-card hr {
    margin: 0;
    opacity: 0.1;
}

.study-skills-card .p-3 {
    padding: 1.25rem !important;
}

/* Collapse transition */
#study-skills-content {
    transition: all 0.3s ease;
}

/* Icon colors */
.text-primary {
    color: #667eea !important;
}

/* Badge spacing */
.study-skills-card .badge + .badge {
    margin-left: 0.25rem;
}
