/**
 * Стили для галереи профиля с Swiper
 */

/* Основной слайдер */
.profile-gallery-main {
    border-radius: 12px;
    overflow: hidden;
}

.profile-gallery-main .swiper-slide {
    width: 100%;
    height: auto;
}

.profile-gallery-main .swiper-slide img {
    border-radius: 0;
}

/* Кнопки навигации */
.profile-gallery-prev,
.profile-gallery-next {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-gallery-prev:hover,
.profile-gallery-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.profile-gallery-prev:after,
.profile-gallery-next:after {
    display: none;
}

.profile-gallery-prev {
    left: 16px;
}

.profile-gallery-next {
    right: 16px;
}

/* Пагинация */
.profile-gallery-pagination {
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: auto !important;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.profile-gallery-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.profile-gallery-pagination .swiper-pagination-bullet-active {
    background: #FF6B6B;
    transform: scale(1.2);
}

/* Миниатюры */
.profile-gallery-thumbs {
    padding: 0;
}

.profile-gallery-thumbs .swiper-slide {
    width: auto;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-gallery-thumbs .swiper-slide-thumb-active div {
    border-color: #FF6B6B !important;
    transform: scale(1.05);
}

.profile-gallery-thumbs .swiper-slide:hover div {
    border-color: #FF6B6B;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-gallery-main {
        border-radius: 8px;
    }
    
    .profile-gallery-prev,
    .profile-gallery-next {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        font-size: 16px;
    }
    
    .profile-gallery-prev {
        left: 12px;
    }
    
    .profile-gallery-next {
        right: 12px;
    }
    
    .profile-gallery-pagination {
        bottom: 12px !important;
    }
    
    .profile-gallery-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
    
    .profile-gallery-thumbs .swiper-slide div {
        width: 4rem !important;
        height: 4rem !important;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .profile-gallery-prev,
    .profile-gallery-next {
        width: 36px;
        height: 36px;
        margin-top: -18px;
        font-size: 14px;
    }
    
    .profile-gallery-prev {
        left: 8px;
    }
    
    .profile-gallery-next {
        right: 8px;
    }
    
    .profile-gallery-pagination {
        bottom: 8px !important;
    }
    
    .profile-gallery-thumbs .swiper-slide div {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }
}

/* Анимация загрузки изображений */
.profile-gallery-main .swiper-slide img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-gallery-main .swiper-slide img.loaded {
    opacity: 1;
}

/* Эффект увеличения при hover на миниатюрах */
.profile-gallery-thumbs .swiper-slide div {
    overflow: hidden;
    position: relative;
}

.profile-gallery-thumbs .swiper-slide img {
    transition: transform 0.3s ease;
}

.profile-gallery-thumbs .swiper-slide:hover img {
    transform: scale(1.1);
}

/* Плавная анимация для счетчика */
.profile-gallery-main .swiper-slide .absolute.bottom-4.right-4 {
    transition: opacity 0.3s ease;
}

/* Стили для полноэкранного просмотра (опционально) */
.profile-gallery-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
}

.profile-gallery-fullscreen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-gallery-fullscreen img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

/* Лоадер для изображений */
.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FF6B6B;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


.bg-secondary {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

/* Стили для профиля */

/* Декоративные элементы */
.profile-header-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, transparent 50%);
    border-radius: 50%;
    margin-right: -60px;
    margin-top: -60px;
    pointer-events: none;
}

/* Кнопка избранного с улучшенными эффектами */
.favorite-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.favorite-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.6s;
}

.favorite-btn:hover::before {
    left: 100%;
}

.favorite-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.favorite-btn.active {
    background: linear-gradient(135deg, #FF4757 0%, #FF6B6B 100%);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ID профиля с анимацией */
.profile-id {
    transition: all 0.3s ease;
    position: relative;
}

.profile-id:hover {
    color: #FF6B6B !important;
    transform: translateX(5px);
}

.profile-id i {
    transition: all 0.3s ease;
}

.profile-id:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* Кнопка телефона с градиентом и анимацией */
.phone-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 50%, #FFA8A8 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.phone-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s;
}

.phone-btn:hover::before {
    left: 100%;
}

.phone-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.6);
}

.phone-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Анимация иконки телефона */
.phone-btn i {
    transition: all 0.4s ease;
}

.phone-btn:hover i {
    animation: phone-ring 0.6s ease-in-out;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Кнопки мессенджеров с улучшенными hover-эффектами */
.messenger-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.messenger-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.messenger-btn:hover::before {
    width: 200%;
    height: 200%;
}

.messenger-btn span,
.messenger-btn i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* WhatsApp специфичные стили */
.whatsapp-btn::before {
    background: #25D366;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover i {
    animation: bounce 0.6s ease-in-out;
}

/* Telegram специфичные стили */
.telegram-btn::before {
    background: #229ED9;
}

.telegram-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(34, 158, 217, 0.4);
}

.telegram-btn:hover i {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Карточки параметров с улучшенными эффектами */
.param-card {
    background: linear-gradient(135deg, #1f2937 0%, #192e4b 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.param-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.param-card:hover::before {
    opacity: 1;
}

.param-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.param-card .param-icon {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    transition: all 0.4s ease;
}

.param-card:hover .param-icon {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 107, 107, 0.2) 100%);
    transform: scale(1.1) rotate(5deg);
}

.param-card:hover .param-icon i {
    color: #FF6B6B !important;
    transform: scale(1.1);
}

/* Рейтинг звезды с анимацией */
.rating-stars i {
    transition: all 0.3s ease;
    color: #FFD700;
}

.rating-stars:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* Плавное появление элементов */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .profile-header-decoration {
        width: 80px;
        height: 80px;
        margin-right: -40px;
        margin-top: -40px;
    }
    
    .favorite-btn:hover {
        transform: scale(1.05) rotate(3deg);
    }
    
    .phone-btn:hover,
    .messenger-btn:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .param-card:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

.video-slider-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.video-preview-swiper .video-card > .p-4,
.video-slider-section > div.container > div:first-child {
    display: none;
}