/* 🎯 Session Management UI Styles */
/* Enhanced learning interface with session-based progression */

/* Session Overview Cards */
.session-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 1rem;
}

.session-category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
}

.session-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2), 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

.session-category-card.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #059669;
}

.session-category-card.in-progress {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #d97706;
}

.session-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.session-category-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
}

.session-category-card.completed .session-category-icon {
    background: rgba(255, 255, 255, 0.2);
}

.session-category-card.in-progress .session-category-icon {
    background: rgba(255, 255, 255, 0.2);
}

.session-category-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.session-category-card.completed .session-category-info h3,
.session-category-card.in-progress .session-category-info h3 {
    color: white;
}

.session-category-arabic {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
    font-family: 'Noto Sans Arabic', sans-serif;
}

.session-category-card.completed .session-category-arabic,
.session-category-card.in-progress .session-category-arabic {
    color: rgba(255, 255, 255, 0.9);
}

.session-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.session-stat {
    text-align: center;
}

.session-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.session-category-card.completed .session-stat-number,
.session-category-card.in-progress .session-stat-number {
    color: white;
}

.session-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.session-category-card.completed .session-stat-label,
.session-category-card.in-progress .session-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.session-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.session-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.session-category-card.completed .session-progress-fill {
    background: linear-gradient(90deg, #ffffff 0%, #f3f4f6 100%);
}

.session-category-card.in-progress .session-progress-fill {
    background: linear-gradient(90deg, #ffffff 0%, #f9fafb 100%);
}

.session-next-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.session-category-card.completed .session-next-action {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.session-category-card.in-progress .session-next-action {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Session Selection Interface */
.session-selection {
    margin: 2rem 0;
}

.session-selection-header {
    text-align: center;
    margin-bottom: 2rem;
}

.session-selection-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.session-selection-subtitle {
    color: #64748b;
    font-size: 1rem;
}

.session-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.session-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.session-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.session-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8fafc;
}

.session-item.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #059669;
}

.session-item.current {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-color: #1d4ed8;
}

.session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.session-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.session-item.completed .session-number,
.session-item.current .session-number {
    color: white;
}

.session-status-icon {
    font-size: 1.25rem;
}

.session-details {
    margin-bottom: 1rem;
}

.session-word-count {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.session-item.completed .session-word-count,
.session-item.current .session-word-count {
    color: rgba(255, 255, 255, 0.9);
}

.session-difficulty {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #e2e8f0;
    color: #475569;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.session-item.completed .session-difficulty {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.session-item.current .session-difficulty {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.session-time-estimate {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.session-item.completed .session-time-estimate,
.session-item.current .session-time-estimate {
    color: rgba(255, 255, 255, 0.8);
}

/* Session Controls */
.session-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.session-control-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #3b82f6;
    background: white;
    color: #3b82f6;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.session-control-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.session-control-btn.primary {
    background: #3b82f6;
    color: white;
}

.session-control-btn.primary:hover {
    background: #1d4ed8;
}

.session-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Session Progress Indicator */
.session-progress-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin: 1rem 0;
}

.session-progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #3b82f6 0deg, #3b82f6 0deg, #e2e8f0 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1e293b;
    position: relative;
}

.session-progress-info {
    flex: 1;
}

.session-progress-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.session-progress-subtitle {
    color: #64748b;
    font-size: 0.875rem;
}

/* Enhanced Visual Effects */
.session-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px 20px 0 0;
}

.session-category-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    border-radius: 50%;
}

.session-category-card:hover::after {
    width: 300px;
    height: 300px;
}

/* Enhanced Icon Styling */
.session-category-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 16px rgba(79, 172, 254, 0.3);
    transition: all 0.3s ease;
}

.session-category-card:hover .session-category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(79, 172, 254, 0.4);
}

/* Enhanced Progress Animation */
.session-progress-fill {
    position: relative;
    overflow: hidden;
}

.session-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 25%, 
        rgba(255, 255, 255, 0.3) 25%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 50%, 
        transparent 75%, 
        rgba(255, 255, 255, 0.3) 75%
    );
    background-size: 20px 20px;
    animation: progress-shine 2s linear infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

/* Enhanced Entry Animations */
.session-category-card {
    animation: slideInUp 0.6s ease-out;
}

.session-category-card:nth-child(1) { animation-delay: 0.1s; }
.session-category-card:nth-child(2) { animation-delay: 0.2s; }
.session-category-card:nth-child(3) { animation-delay: 0.3s; }
.session-category-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Enhanced Next Action Button */
.session-next-action {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(250, 112, 154, 0.3);
    position: relative;
    overflow: hidden;
}

.session-next-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.session-next-action:hover::before {
    width: 200px;
    height: 200px;
}

.session-next-action:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(250, 112, 154, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .session-overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .session-category-card {
        padding: 1.5rem;
    }
    
    .session-category-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .session-list {
        grid-template-columns: 1fr;
    }
    
    .session-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .session-control-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .session-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}