/**
 * Единые стили карточек и виджетов для всего проекта
 * Этап 1.2: Карточки/Виджеты
 * 
 * Использованы лучшие стили:
 * - Glass эффект: из Dashboard
 * - Shine эффект: из Groups
 * - Color вариации: blue, purple, green, amber
 */

/* ==================== БАЗОВЫЙ GLASS ЭФФЕКТ ==================== */

.glass {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ==================== COLOR ВАРИАЦИИ GLASS ==================== */

.glass-blue {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(59, 130, 246, 0.05) 100%
    );
    border-color: rgba(59, 130, 246, 0.2);
}

.glass-blue:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.2);
}

.glass-purple {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(139, 92, 246, 0.05) 100%
    );
    border-color: rgba(139, 92, 246, 0.2);
}

.glass-purple:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.2);
}

.glass-green {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.1) 0%, 
        rgba(16, 185, 129, 0.05) 100%
    );
    border-color: rgba(16, 185, 129, 0.2);
}

.glass-green:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 12px 48px rgba(16, 185, 129, 0.2);
}

.glass-amber {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.1) 0%, 
        rgba(245, 158, 11, 0.05) 100%
    );
    border-color: rgba(245, 158, 11, 0.2);
}

.glass-amber:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 12px 48px rgba(245, 158, 11, 0.2);
}

.glass-red {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.1) 0%, 
        rgba(239, 68, 68, 0.05) 100%
    );
    border-color: rgba(239, 68, 68, 0.2);
}

.glass-red:hover {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 12px 48px rgba(239, 68, 68, 0.2);
}

.glass-cyan {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.1) 0%, 
        rgba(6, 182, 212, 0.05) 100%
    );
    border-color: rgba(6, 182, 212, 0.2);
}

.glass-cyan:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 12px 48px rgba(6, 182, 212, 0.2);
}

/* ==================== КАРТОЧКИ С SHINE ЭФФЕКТОМ ==================== */

.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
}

.card > * {
    position: relative;
    z-index: 2;
}

/* ==================== ВИДЖЕТЫ ==================== */

.widget {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.widget-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.widget-content {
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== СТАТИСТИЧЕСКИЕ КАРТОЧКИ ==================== */

.stat-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* ==================== КАРТОЧКИ ЗАДАЧ/СОБЫТИЙ ==================== */

.task-card,
.event-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.task-card::before,
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
    pointer-events: none;
}

.task-card:hover,
.event-card:hover {
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.task-card:hover::before,
.event-card:hover::before {
    left: 100%;
}

.task-card > *,
.event-card > * {
    position: relative;
    z-index: 2;
}

/* ==================== AI INSIGHT БЛОКИ ==================== */

.ai-insight-block {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(118, 75, 162, 0.1) 100%
    );
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ai-insight-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
    pointer-events: none;
}

.ai-insight-block:hover::before {
    left: 100%;
}

.ai-insight-block:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.ai-insight-block > * {
    position: relative;
    z-index: 2;
}

/* ==================== АДАПТИВНОСТЬ ==================== */

@media (max-width: 768px) {
    .widget {
        padding: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .task-card,
    .event-card {
        padding: 12px;
    }
}

