/* recall.css - Стили для страницы отзывов */

/* Основные стили для страницы отзывов */
.recall-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recall-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.recall-scan-wrapper {
    flex-shrink: 0;
}

.recall-scan-container {
    width: 280px;
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-md);
}

.recall-scan-container:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.recall-scan {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.recall-text {
    flex: 1;
    min-width: 0;
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.recall-text p {
    margin-bottom: 1rem;
}

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

.scan-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
    transform: translateY(10px);
}

.recall-scan-container:hover .scan-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для модального окна с изображением */
.modal.image-modal {
    background-color: rgba(15, 19, 31, 0.95);
    backdrop-filter: blur(10px);
}

.modal.image-modal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 95vw;
    max-height: 95vh;
    margin: 2% auto;
}

.modal.image-modal .modal-header {
    background: var(--bg-card);
    border-bottom: 2px solid var(--border-light);
    padding: 1.5rem 2rem;
}

.modal.image-modal .modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal.image-modal .modal-body {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.modal-image {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

/* Анимации для модального окна */
.modal.image-modal {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.modal.image-modal.active {
    opacity: 1;
}

.modal.image-modal .modal-content {
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal.image-modal.active .modal-content {
    transform: scale(1);
}

/* Улучшенные тени и границы */
.recall-scan-container {
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.recall-scan-container:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xl);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .content-card .image-style-align-left,
    .content-card .image-style-align-right {
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }

    .recall-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .recall-scan-container {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .recall-scan-wrapper {
        order: -1;
    }

    .modal-image {
        max-width: 95vw;
        max-height: 70vh;
    }

    .modal.image-modal .modal-content {
        margin: 10% auto;
    }

    .modal.image-modal .modal-header {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .recall-scan-container {
        max-width: 100%;
    }

    .modal.image-modal .modal-content {
        margin: 5% auto;
        max-width: 98vw;
    }

    .modal.image-modal .modal-body {
        padding: 0.5rem;
    }

    .modal.image-modal .modal-header {
        padding: 1rem;
    }

    .modal.image-modal .modal-header h3 {
        font-size: 1.1rem;
    }
}

/* Стили для светлой темы */
@media (prefers-color-scheme: light) {
    .modal.image-modal {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .modal.image-modal .modal-header {
        background: var(--bg-primary);
    }

    .scan-hint {
        background: linear-gradient(transparent, rgba(0,0,0,0.7));
    }
}

.content-card img {
    max-width: 100% !important;
    height: auto !important;
}

.content-card figure.image {
    max-width: 100%;
    margin: 1rem auto;
    text-align: center;
}

.content-card figure.image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}