/* ===== BOREDOM BUSTER WIDGET ===== */

/* Виджет на главной странице */
.boredom-buster-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5);
    }
}

.widget-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.widget-icon {
    font-size: 48px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.widget-text {
    flex: 1;
    color: white;
}

.widget-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.widget-text p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    color: white;
}

.btn-glow {
    animation: buttonGlow 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5);
    }
}

/* Модалка выбора настроения */
.mood-selector-modal {
    padding: 40px 30px;
}

.mood-selector-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.mood-selector-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.mood-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.mood-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mood-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.mood-card:hover::before {
    opacity: 1;
}

.mood-card.lazy {
    border-color: #a78bfa;
}

.mood-card.lazy:hover {
    background: linear-gradient(135deg, #a78bfa15 0%, #8b5cf615 100%);
}

.mood-card.active {
    border-color: #34d399;
}

.mood-card.active:hover {
    background: linear-gradient(135deg, #34d39915 0%, #10b98115 100%);
}

.mood-card.social {
    border-color: #f59e0b;
}

.mood-card.social:hover {
    background: linear-gradient(135deg, #f59e0b15 0%, #f9731615 100%);
}

.mood-card.creative {
    border-color: #ec4899;
}

.mood-card.creative:hover {
    background: linear-gradient(135deg, #ec489915 0%, #f4337015 100%);
}

.mood-emoji {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.mood-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.mood-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Контейнер рекомендаций */
.motivation-phrase {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 12px;
    animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

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

.suggestion-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.suggestion-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
}

.suggestion-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.suggestion-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.suggestion-difficulty {
    font-size: 12px;
    color: #f59e0b;
}

.btn-lucky {
    width: 100%;
    margin-top: 16px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-lucky:hover {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.btn-lucky i {
    margin-right: 8px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .widget-content {
        flex-direction: column;
        text-align: center;
    }
    
    .widget-icon {
        font-size: 36px;
    }
    
    .widget-text h3 {
        font-size: 20px;
    }
    
    .widget-text p {
        font-size: 14px;
    }
    
    .btn-glow {
        width: 100%;
    }
    
    .mood-options {
        grid-template-columns: 1fr;
    }
    
    .mood-selector-title {
        font-size: 24px;
    }
    
    .suggestion-card {
        flex-direction: column;
        text-align: center;
    }
    
    .suggestion-icon {
        font-size: 32px;
    }
}

/* Темная тема */
[data-theme="dark"] .boredom-buster-widget {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .mood-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mood-card:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .suggestion-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .suggestion-card:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
