/* Стили для плана обучения */

/* Анимации и переходы */
.week-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.week-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Прогресс-бары */
.progress-bar {
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Анимация появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Стили для сворачивания/разворачивания */
#plan-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

#toggle-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Карточки тренировок */
.training-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.training-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.training-card .arrow-icon {
    transition: transform 0.2s ease;
}

.training-card:hover .arrow-icon {
    transform: translateX(4px);
}

/* Статистика плана */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

/* Анимация чисел */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-number {
    animation: countUp 0.8s ease-out;
}

/* Модальные окна */
.modal-overlay {
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.modal-content {
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Индикаторы прогресса */
.progress-ring {
    transform: rotate(-90deg);
    transition: stroke-dashoffset 0.5s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .week-card {
        margin-bottom: 1rem;
    }
    
    .training-card {
        margin-bottom: 1rem;
    }
    
    #plan-content {
        padding: 1rem;
    }
}

/* Темная тема (если понадобится) */
@media (prefers-color-scheme: dark) {
    .week-card {
        background-color: #1f2937;
        border-color: #374151;
    }
    
    .training-card {
        background-color: #1f2937;
        border-color: #374151;
    }
}

/* Дополнительные эффекты */
.glow-effect {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Стили для состояния загрузки */
.loading-skeleton {
    background: #f0f0f0;
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Стили для успешных состояний */
.success-checkmark {
    animation: checkmarkPop 0.5s ease;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(45deg);
    }
    50% {
        transform: scale(1.2) rotate(45deg);
    }
    100% {
        transform: scale(1) rotate(45deg);
    }
}

/* Стили для интерактивных элементов */
.interactive-element {
    position: relative;
    overflow: hidden;
}

.interactive-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.interactive-element:active::before {
    width: 300px;
    height: 300px;
}

/* Стили для фонов */
.gradient-bg-1 {
    background: #22c55e;
}

.gradient-bg-2 {
    background: #34d399;
}

.gradient-bg-3 {
    background: #059669;
}

.gradient-bg-4 {
    background: #6ee7b7;
}

/* Стили для тени и глубины */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

/* Стили для текста */
.text-gradient {
    color: #22c55e;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Стили для кнопок */
.btn-primary {
    background: #22c55e;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: #34d399;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.4);
}

/* Стили для индикаторов прогресса */
.progress-indicator {
    position: relative;
    overflow: hidden;
}

.progress-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Стили для адаптивной типографики */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 0.875rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .text-responsive {
        font-size: 1rem;
    }
}

@media (min-width: 1025px) {
    .text-responsive {
        font-size: 1.125rem;
    }
}