/* OVZ Quotes - Генератор слов поддержки */

.ovz-quotes-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Caveat', 'Bad Script', cursive;
}

.ovz-quotes-slider {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.ovz-quote-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.ovz-quote-slide.active {
    display: block;
    opacity: 1;
}

/* Карточка цитаты с фоном крафтовой бумаги */
.ovz-quote-card {
    position: relative;
    background-color: #d4c4a8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    padding: 40px 30px 30px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Fallback фон - градиент имитирующий крафтовую бумагу */
@supports not (background-image: url("image.webp")) {
    .ovz-quote-card {
        background-image: linear-gradient(135deg, #e8dcca 0%, #d4c4a8 50%, #c9b896 100%) !important;
    }
}

/* Декоративная рамка */
.ovz-quote-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid rgba(139, 115, 85, 0.3);
    border-radius: 12px;
    pointer-events: none;
}

/* Логотип в правом верхнем углу */
.ovz-quote-logo {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 10;
}

.ovz-quote-logo img {
    max-height: 60px;
    width: auto;
    max-width: 120px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.ovz-quote-logo img:hover {
    opacity: 1;
}

/* Контент цитаты */
.ovz-quote-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 20px 40px;
    position: relative;
    z-index: 5;
}

.ovz-quote-text {
    font-size: 32px;
    line-height: 1.4;
    color: #3d3d3d;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ovz-quote-text .highlight {
    color: #c45c26;
    font-weight: 700;
    position: relative;
    display: inline;
}

/* Декоративная подчёркивающая линия для выделенного текста */
.ovz-quote-text .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(196, 92, 38, 0.4), transparent);
}

/* Автор цитаты */
.ovz-quote-author {
    text-align: center;
    font-size: 22px;
    color: #6b5b4f;
    margin-top: 20px;
    font-style: italic;
}

/* Футер карточки */
.ovz-quote-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
    position: relative;
    z-index: 5;
}

.ovz-brand-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.ovz-brand-desc {
    display: block;
    font-size: 14px;
    color: #a0856a;
    font-weight: 400;
}

/* Навигационные стрелки - НЕОМОРФИЗМ */
.ovz-quotes-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #f5f0e8 0%, #e8e0d5 100%);
    border: 1px solid rgba(139, 115, 85, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Эффект неоморфизма - выпуклость */
    box-shadow:
        8px 8px 16px rgba(139, 115, 85, 0.15),
        -8px -8px 16px rgba(255, 255, 255, 0.8),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5),
        inset -2px -2px 4px rgba(139, 115, 85, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
}

/* Тонкие элегантные стрелки */
.ovz-quotes-nav svg {
    width: 24px;
    height: 24px;
    stroke: #8b7355;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

/* Эффект при наведении - "вдавливание" */
.ovz-quotes-nav:hover {
    background: linear-gradient(145deg, #e8e0d5 0%, #f5f0e8 100%);
    box-shadow:
        4px 4px 8px rgba(139, 115, 85, 0.1),
        -4px -4px 8px rgba(255, 255, 255, 0.6),
        inset 4px 4px 8px rgba(139, 115, 85, 0.15),
        inset -4px -4px 8px rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(0.98);
}

.ovz-quotes-nav:hover svg {
    stroke: #c45c26;
    stroke-width: 2;
}

/* Эффект при нажатии */
.ovz-quotes-nav:active {
    box-shadow:
        inset 6px 6px 12px rgba(139, 115, 85, 0.2),
        inset -6px -6px 12px rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(0.95);
}

/* Сдвиг стрелки при наведении */
.ovz-quotes-prev:hover svg {
    transform: translateX(-3px);
}

.ovz-quotes-next:hover svg {
    transform: translateX(3px);
}

/* Позиционирование - отодвинуты от карточки */
.ovz-quotes-prev {
    left: -70px;
}

.ovz-quotes-next {
    right: -70px;
}

/* Превью для навигации */
.ovz-quotes-previews {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 115, 85, 0.3) transparent;
}

.ovz-quotes-previews::-webkit-scrollbar {
    height: 6px;
}

.ovz-quotes-previews::-webkit-scrollbar-track {
    background: transparent;
}

.ovz-quotes-previews::-webkit-scrollbar-thumb {
    background: rgba(139, 115, 85, 0.3);
    border-radius: 3px;
}

.ovz-quote-preview {
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.6;
}

.ovz-quote-preview:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.ovz-quote-preview.active {
    opacity: 1;
    transform: translateY(-5px);
}

.ovz-preview-card {
    width: 100px;
    height: 70px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ovz-preview-text {
    font-size: 11px;
    color: #5a4a3a;
    text-align: center;
    line-height: 1.3;
    font-family: 'Caveat', cursive;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Точки индикаторы */
.ovz-quotes-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.ovz-quotes-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(139, 115, 85, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.ovz-quotes-dot:hover {
    background: rgba(139, 115, 85, 0.5);
}

.ovz-quotes-dot.active {
    background: #c45c26;
    transform: scale(1.2);
}

/* Адаптивность для планшетов - стрелки ближе */
@media (max-width: 900px) {
    .ovz-quotes-prev {
        left: -20px;
    }

    .ovz-quotes-next {
        right: -20px;
    }

    .ovz-quotes-nav {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 768px) {
    .ovz-quotes-container {
        padding: 15px;
    }

    .ovz-quotes-slider {
        min-height: 400px;
    }

    .ovz-quote-card {
        min-height: 350px;
        padding: 30px 20px 25px;
    }

    .ovz-quote-logo img {
        max-height: 45px;
        max-width: 90px;
    }

    .ovz-quote-content {
        padding: 50px 15px 30px;
    }

    .ovz-quote-text {
        font-size: 26px;
    }

    .ovz-quote-author {
        font-size: 18px;
    }

    /* Стрелки еще ближе на планшетах */
    .ovz-quotes-prev {
        left: -10px;
    }

    .ovz-quotes-next {
        right: -10px;
    }

    .ovz-quotes-nav {
        width: 42px;
        height: 42px;
    }

    .ovz-quotes-nav svg {
        width: 20px;
        height: 20px;
    }

    .ovz-preview-card {
        width: 80px;
        height: 55px;
    }

    .ovz-preview-text {
        font-size: 10px;
    }
}

/* Адаптивность для мобильных - стрелки скрыты */
@media (max-width: 480px) {
    .ovz-quotes-container {
        padding: 10px;
    }

    .ovz-quotes-slider {
        min-height: 350px;
    }

    .ovz-quote-card {
        min-height: 300px;
        padding: 25px 15px 20px;
        border-radius: 12px;
    }

    .ovz-quote-card::before {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .ovz-quote-logo {
        top: 15px;
        right: 15px;
    }

    .ovz-quote-logo img {
        max-height: 35px;
        max-width: 70px;
    }

    .ovz-quote-content {
        padding: 40px 10px 25px;
    }

    .ovz-quote-text {
        font-size: 22px;
        line-height: 1.35;
    }

    .ovz-quote-author {
        font-size: 16px;
        margin-top: 15px;
    }

    .ovz-brand-name {
        font-size: 14px;
    }

    .ovz-brand-desc {
        font-size: 12px;
    }

    /* СКРЫТИЕ СТРЕЛОК НА МОБИЛЬНЫХ */
    .ovz-quotes-nav {
        display: none !important;
    }

    .ovz-quotes-previews {
        gap: 10px;
        margin-top: 15px;
    }

    .ovz-preview-card {
        width: 65px;
        height: 45px;
    }

    .ovz-preview-text {
        font-size: 9px;
    }

    .ovz-quotes-dots {
        margin-top: 15px;
        gap: 8px;
    }

    .ovz-quotes-dot {
        width: 8px;
        height: 8px;
    }

    .ovz-autoplay-progress {
        height: 3px;
        border-radius: 0 0 12px 12px;
    }
}

/* Индикатор прогресса автоплея */
.ovz-autoplay-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(196, 92, 38, 0.2);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    z-index: 10;
}

.ovz-autoplay-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e67e45, #c45c26);
    width: 0%;
    border-radius: 0 2px 2px 0;
    transition: width 0.1s linear;
}

.ovz-autoplay-progress-bar.active {
    animation: progressBar linear forwards;
}

@keyframes progressBar {
    from { width: 0%; }
    to { width: 100%; }
}

/* Анимация для смены слайдов */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ovz-quote-slide.active .ovz-quote-content {
    animation: fadeIn 0.5s ease-out;
}

/* Эффект свайпа для мобильных */
.ovz-quotes-slider.swiping {
    cursor: grabbing;
}

.ovz-quotes-slider {
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}
