@keyframes searchNotification {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.profile-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.85), rgba(156, 39, 176, 0.85));
    color: white;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 15px;
    border: 3px solid rgba(255,255,255,0.3);
}

.profile-username {
    flex: 1;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
}

.profile-username-size {
    font-size: 16px;
    opacity: 0.9;
    font-weight: normal;
}

.action-buttons {
    display: flex;
    justify-content: center;
    padding: 10px;
    gap: 20px;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.action-btn.clicked {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dislike-btn {
    background: #2ed573;
    color: white;
}

.dislike-btn:hover:not(:disabled) {
    background: #25c75c;
    box-shadow: 0 6px 20px rgba(46, 213, 115, 0.4);
}

.like-btn {
    background: #ff4757;
    color: white;
}

.like-btn:hover:not(:disabled) {
    background: #ff3742;
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.skip-btn {
    background: #ffa502;
    color: white;
}

.skip-btn:hover:not(:disabled) {
    background: #e59400;
    box-shadow: 0 6px 20px rgba(255, 165, 2, 0.4);
}

.profile-info {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.info-item {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #333;
    text-align: justify;
}

.info-item strong {
    color: var(--primary-color);
}

.description-text {
    display: inline;
}

.show-more-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 5px;
    text-decoration: underline;
}

.show-more-btn:hover {
    color: #764ba2;
}

.no-users-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-users-message i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-users-message h3 {
    margin-bottom: 10px;
    color: #333;
}

.no-users-message p {
    color: #666;
}

/* Стили для галереи изображений */
.image-gallery {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

.photo-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 5;
}

/* Дополнительные анимации для обратной связи */
.swipe-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-feedback.dislike {
    color: #2ed573;
}

.swipe-feedback.like {
    color: #ff4757;
}

.swipe-feedback.skip {
    color: #ffa502;
}

/* Адаптивность */
@media (max-width: 480px) {
    .profile-card {
        margin: 10px;
    }

    .image-gallery {
        height: 400px;
    }

    .action-buttons {
        gap: 15px;
    }

    .action-btn {
        width: 50px;
        height: 50px;
    }

    .gallery-image {
        max-height: 400px;
    }
}










/* Анимации для свайпов */
.gallery-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
    will-change: transform; /* Оптимизация анимации */
}

/* Стили для галереи изображений */
.image-gallery {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: #f8f9fa;
    touch-action: pan-y; /* Улучшение работы с тач-событиями */
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

.photo-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 5;
}

/* Анимация для кнопок */
.action-btn.clicked {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Визуальная обратная связь при свайпе */
.swipe-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 4rem;
    font-weight: bold;
    z-index: 20;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.swipe-feedback.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.swipe-feedback.dislike {
    color: #2ed573;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-feedback.like {
    color: #ff4757;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-feedback.skip {
    color: #ffa502;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Активные состояния для обратной связи */
.swipe-feedback.dislike-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    color: #2ed573;
}

.swipe-feedback.like-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    color: #ff4757;
}

.swipe-feedback.skip-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    color: #ffa502;
}

/* Адаптивность */
@media (max-width: 480px) {
    .image-gallery {
        height: 400px;
    }

    .gallery-image {
        max-height: 400px;
    }

    .swipe-feedback {
        font-size: 3rem;
    }
}

/* Дополнительные эффекты для анимаций */
@keyframes flyAwayLeft {
    0% {
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-1000px) rotate(-30deg) scale(0.3);
        opacity: 0;
    }
}

@keyframes flyAwayRight {
    0% {
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(1000px) rotate(30deg) scale(0.3);
        opacity: 0;
    }
}

@keyframes collapseDown {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(100px) scale(0.5);
        opacity: 0.7;
    }
    100% {
        transform: translateY(1000px) scale(0.1);
        opacity: 0;
    }
}