/**
 * Style frontendu dla Cytaty z animacją
 */

.cza-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    overflow: hidden;
}

.cza-slider-container {
    position: relative;
    min-height: 200px;
}

.cza-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateX(20px);
}

.cza-slide.cza-slide-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Animacje */
.cza-slide[data-animation-type="fade"] {
    transform: none;
}

.cza-slide[data-animation-type="slide"] {
    transform: translateX(100%);
}

.cza-slide[data-animation-type="slide"].cza-slide-active {
    transform: translateX(0);
}

.cza-slide[data-animation-type="zoom"] {
    transform: scale(0.8);
}

.cza-slide[data-animation-type="zoom"].cza-slide-active {
    transform: scale(1);
}

.cza-slide[data-animation-type="none"] {
    transition: none;
}

/* Treść cytatu */
.cza-quote-content {
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
    text-align: center;
    padding: 20px;
}

/* Nawigacja */
.cza-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cza-nav-prev,
.cza-nav-next {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    color: #333;
    font-size: 32px;
    line-height: 1;
}

.cza-nav-prev:hover,
.cza-nav-next:hover {
    color: #2271b1;
    transform: scale(1.2);
}

.cza-nav-prev:focus,
.cza-nav-next:focus {
    outline: 2px solid #2271b1;
    outline-offset: 4px;
}

.cza-nav-prev:disabled,
.cza-nav-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Style strzałek */
.cza-navigation-minimal .cza-nav-prev,
.cza-navigation-minimal .cza-nav-next {
    font-size: 48px;
    font-weight: 300;
}

.cza-navigation-simple .cza-nav-prev,
.cza-navigation-simple .cza-nav-next {
    font-size: 36px;
}

.cza-navigation-modern .cza-nav-prev svg,
.cza-navigation-modern .cza-nav-next svg,
.cza-navigation-rounded .cza-nav-prev svg,
.cza-navigation-rounded .cza-nav-next svg {
    display: block;
    width: 32px;
    height: 32px;
}

/* Wskaźniki (dots) */
.cza-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cza-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.cza-dot:hover {
    background: #999;
    transform: scale(1.2);
}

.cza-dot.cza-dot-active {
    background: #2271b1;
    width: 14px;
    height: 14px;
}

/* Czytaj więcej / Accordion */
.cza-read-more-wrapper {
    display: inline;
}

.cza-read-more-link {
    color: #2271b1;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    font-size: 0.88em;
    line-height: 1.2;
    white-space: nowrap;
}

.cza-read-more-link:hover,
.cza-read-more-link:focus {
    color: #135e96;
}

.cza-read-more-link:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Ostatni fragment skrótu + link w jednym wierszu */
.cza-short-content p:last-child,
.cza-short-content div:last-child,
.cza-short-content blockquote:last-child,
.cza-short-content h1:last-child,
.cza-short-content h2:last-child,
.cza-short-content h3:last-child,
.cza-short-content h4:last-child,
.cza-short-content h5:last-child,
.cza-short-content h6:last-child {
    display: inline;
    margin-bottom: 0;
}

/* Responsywność */
@media (max-width: 768px) {
    .cza-slider-wrapper {
        padding: 20px 10px;
    }
    
    .cza-quote-content {
        font-size: 1em;
        padding: 15px;
    }
    
    .cza-nav-prev,
    .cza-nav-next {
        font-size: 24px;
    }
    
    .cza-navigation-minimal .cza-nav-prev,
    .cza-navigation-minimal .cza-nav-next {
        font-size: 36px;
    }
    
    .cza-navigation-simple .cza-nav-prev,
    .cza-navigation-simple .cza-nav-next {
        font-size: 28px;
    }
}

/* Dostępność */
@media (prefers-reduced-motion: reduce) {
    .cza-slide {
        transition: none !important;
    }
}
