/* ===== One Moment Typography Styles ===== */

/* ПВЗ Виджет - Модальное окно */
.pvz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pvz-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.pvz-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85%;
    max-height: 800px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

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

.pvz-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.pvz-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1) rotate(90deg);
}

.pvz-modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .pvz-modal-content {
        width: 95%;
        height: 90%;
        max-height: none;
        border-radius: 16px;
    }

    .pvz-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* Кнопка выбора ПВЗ */
.btn-pvz {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

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

.btn-pvz:hover::before {
    width: 300px;
    height: 300px;
}

.btn-pvz:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

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

/* Секция next-day доставки */
.nextday-section {
    animation: fadeInUp 0.3s ease-out;
}

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

/* Анимация появления уведомлений */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Стили для iframe виджета */
.pvz-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Лоадер для кнопки ПВЗ */
.btn-pvz:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-pvz:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Улучшенный вид для опций доставки с ПВЗ */
.delivery-option.pvz-option {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
}

.delivery-option.pvz-option:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
}

/* Дополнительная анимация для плавного скролла */
html {
    scroll-behavior: smooth;
}

/* Улучшение читаемости текста на темном фоне */
@media (prefers-color-scheme: dark) {
    .pvz-modal-content {
        background: #1a1a1b;
        color: #ffffff;
    }
}

/* Защита от случайного выделения текста при двойном клике */
.pvz-modal-close,
.btn-pvz {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Стили для лоадера в виджете */
.pvz-widget-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 18px;
    color: #666;
}

/* Прогресс-бар (если понадобится) */
.pvz-progress {
    width: 100%;
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.pvz-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
    animation: progressSlide 1.5s ease-in-out infinite;
}

@keyframes progressSlide {
    to {
        left: 100%;
    }
}

/* ========================================
   PORTFOLIO GALLERY STYLES
   ======================================== */

.portfolio-splide .splide__arrow {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    width: 3rem;
    height: 3rem;
}

.portfolio-splide .splide__arrow:hover {
    opacity: 1;
}

.portfolio-splide .splide__pagination__page {
    background: rgba(255, 255, 255, 0.3);
}

.portfolio-splide .splide__pagination__page.is-active {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.portfolio-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.3);
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
}

.portfolio-image-wrapper img {
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image-wrapper img {
    transform: scale(1.05);
}

/* Portfolio Modal */
#portfolioModal {
    animation: fadeIn 0.3s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   CLIENTS SLIDER STYLES
   ======================================== */

.clients-splide .splide__arrow {
    display: none; /* Убираем стрелки для clients */
}

.client-card img {
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.client-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-card {
        padding: 1rem;
    }

    .portfolio-image-wrapper img {
        height: 200px;
    }

    .client-card {
        padding: 1rem;
    }

    .portfolio-splide .splide__arrow {
        width: 2.5rem;
        height: 2.5rem;
    }
}
