/**
 * Дополнительные стили для улучшенного отображения результатов психологического теста
 * Включает стили для персонализированных блоков и подсветки критических моментов
 */

/* Общий контейнер для визуальных улучшений */
.visual-enhancements-container {
    margin: 20px 0;
    max-width: 100%;
    font-family: 'Roboto', Arial, sans-serif;
}

/* Стили для блока критического несовпадения языков любви */
.critical-mismatch-block {
    margin: 15px 0;
    padding: 15px;
    background-color: rgba(255, 235, 235, 0.6);
    border-left: 4px solid #ff4136;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.critical-mismatch-title {
    font-weight: 600;
    color: #d32f2f;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.mismatch-content {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Стили для визуализации несовпадения языков любви */
.mismatch-visual {
    margin: 12px 0;
}

.mismatch-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    border-radius: 15px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    background-color: #f0f0f0;
}

.you-side, .him-side {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    min-width: 30px;
}

.you-side {
    background: linear-gradient(to right, #ff75a0, #ff4778);
    justify-content: flex-end;
    color: white;
}

.him-side {
    background: linear-gradient(to right, #4778ff, #75a0ff);
    justify-content: flex-start;
    color: white;
}

.bar-label, .bar-value {
    font-size: 0.8rem;
    padding: 0 8px;
    z-index: 1;
    font-weight: 600;
}

.mismatch-tips {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Стили для персонализированных рекомендаций удалены */

/* Стили для блоков с ключевыми болевыми точками удалены - дубликат */

/* Анимация для привлечения внимания к конверсионной кнопке */
@keyframes gentle-pulse {
    0% { transform: scale(1); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
    50% { transform: scale(1.03); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
    100% { transform: scale(1); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
}

.conversion-cta {
    animation: gentle-pulse 3s infinite;
}

/* Стили для блока детализированной интерпретации */
.detailed-interpretation-block {
    background-color: #fff;
    border-left: 5px solid #3498db;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.detailed-interpretation-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.detailed-interpretation-title {
    background-color: rgba(52, 152, 219, 0.1);
    color: #444;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detailed-interpretation-content {
    padding: 20px;
}

.detailed-description {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.detailed-recommendations {
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 4px;
    padding: 15px;
}

.detailed-recommendations h4 {
    color: #333;
    font-size: 17px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}

.recommendations-content {
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .critical-mismatch-block,
    .detailed-interpretation-block {
        padding: 12px 10px;
        margin: 12px 0;
    }
    
    .critical-mismatch-title,
    .detailed-interpretation-title {
        font-size: 1rem;
    }
    
    .detailed-description {
        font-size: 14px;
    }
    
    .recommendations-content {
        font-size: 14px;
    }
}

/* Персонализированный промо-блок с подарками */
.personalized-promo-wrapper {
    background: linear-gradient(135deg, #fff5f8 0%, #fef9fc 100%);
    border: 2px solid #ed5565;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(237, 85, 101, 0.15);
    position: relative;
    overflow: hidden;
}

.personalized-promo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ed5565, #ff6b7a, #ed5565);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.promo-header h3 {
    color: #ed5565;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-align: center;
    line-height: 1.3;
}

.promo-subtitle {
    color: #666;
    font-size: 16px;
    text-align: center;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.promo-text p {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.promo-text p:last-child {
    margin-bottom: 0;
}

.promo-highlight {
    background: linear-gradient(135deg, #ed5565, #ff6b7a);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 15px 0;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
}

.gift-announcement {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ed5565;
    border-radius: 15px;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(237, 85, 101, 0.1);
}

.gift-icon {
    font-size: 32px;
    margin-right: 15px;
    animation: giftPulse 2s ease-in-out infinite;
}

@keyframes giftPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.gift-text {
    flex: 1;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
}

.gift-text strong {
    color: #ed5565;
    font-weight: 700;
}

.personalized-course-btn {
    background: linear-gradient(135deg, #ed5565, #ff6b7a);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 35px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(237, 85, 101, 0.3);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.personalized-course-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.personalized-course-btn:hover::before {
    left: 100%;
}

.personalized-course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 85, 101, 0.4);
}

.personalized-course-btn:active {
    transform: translateY(0);
}

.personalized-course-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.personalized-course-btn:hover i {
    transform: translateX(3px);
}

.urgency-text {
    color: #ed5565;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin: 15px 0 20px 0;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-info {
    text-align: center;
    padding: 15px;
    background: rgba(237, 85, 101, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(237, 85, 101, 0.1);
}

.course-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* Активное состояние персонализированного промо-блока */
.personalized-promo-active {
    animation: promoSlideIn 0.5s ease-out;
}

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

/* Скрываем старый контент конверсии когда активен новый промо */
.personalized-promo-active .conversion-content,
.personalized-promo-active .course-offer {
    display: none !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .personalized-promo-wrapper {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .promo-header h3 {
        font-size: 20px;
    }
    
    .promo-subtitle {
        font-size: 14px;
    }
    
    .promo-text p {
        font-size: 14px;
    }
    
    .promo-highlight {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .gift-announcement {
        padding: 12px 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .gift-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .personalized-course-btn {
        padding: 16px 25px;
        font-size: 16px;
    }
}

/* Резиновая верстка отзывов */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Улучшенные hover-эффекты для отзывов */
.testimonial-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid transparent;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 62, 108, 0.03) 0%, 
        rgba(108, 99, 255, 0.03) 30%, 
        rgba(255, 62, 108, 0.02) 60%, 
        rgba(108, 99, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 62, 108, 0.05) 0%, 
        rgba(108, 99, 255, 0.08) 100%);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

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

.testimonial-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 62, 108, 0.12);
    border-color: rgba(255, 62, 108, 0.1);
}

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

.testimonial-avatar {
    transition: all 0.4s ease;
}

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

.testimonial-card:hover .testimonial-avatar img {
    transform: scale(1.1);
}

.testimonial-name {
    transition: color 0.3s ease;
}

.testimonial-card:hover .testimonial-name {
    color: #FF3E6C;
}

.testimonial-rating {
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-rating {
    color: #FFD700;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.testimonial-text {
    transition: color 0.3s ease;
}

.testimonial-card:hover .testimonial-text {
    color: #2d3748;
}

/* Адаптивная верстка */
@media (max-width: 900px) {
    .testimonials-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
        gap: 15px;
    }
    
    .testimonial-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .testimonial-name {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .testimonial-avatar {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .testimonials-container {
        gap: 16px;
    }
    
    .testimonial-card {
        padding: 16px;
        gap: 12px;
    }
    
    .testimonial-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .testimonial-name {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }
}
