/* ================================================
   M&M MERCH MARKETING - SEKCJA OPINII
   Główny kolor: #E52A89
   Tło sekcji: #FAFAFB
   Autor: ArkadyLand Arkadiusz Adamowicz
   ================================================ */

/* Reset i podstawy */
.mm-testimonials-section *,
.mm-testimonials-section *::before,
.mm-testimonials-section *::after {
    box-sizing: border-box;
}

/* Kontener sekcji */
.mm-testimonials-section {
    padding: 100px 20px;
    background-color: #FAFAFB;
    overflow: hidden;
}

.mm-testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ================================================
   SLIDER
   ================================================ */

.mm-testimonials-slider {
    position: relative;
    padding: 0 60px;
}

.mm-testimonials-wrapper {
    overflow: hidden;
}

.mm-testimonials-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   KARTA OPINII
   ================================================ */

.mm-testimonial-card {
    flex: 0 0 calc(33.333% - 17px);
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.mm-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(229, 42, 137, 0.12);
    border-color: rgba(229, 42, 137, 0.15);
}

/* Wyróżniona karta */
.mm-testimonial-featured {
    background: linear-gradient(135deg, #fff5f9 0%, #ffffff 100%);
    border-color: rgba(229, 42, 137, 0.15);
}

.mm-testimonial-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #E52A89 0%, #c71f73 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(229, 42, 137, 0.4);
}

.mm-testimonial-badge svg {
    color: #ffffff;
}

/* Ikona cytatu */
.mm-testimonial-quote {
    margin-bottom: 20px;
}

.mm-testimonial-quote svg {
    color: #E52A89;
    opacity: 0.25;
}

/* Treść */
.mm-testimonial-content {
    margin-bottom: 20px;
    min-height: 100px;
}

.mm-testimonial-text {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    margin: 0;
    font-style: italic;
}

/* Gwiazdki */
.mm-testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.mm-testimonial-stars .mm-star {
    color: #ddd;
    transition: color 0.2s ease;
}

.mm-testimonial-stars .mm-star.active {
    color: #F5A623;
}

/* Autor */
.mm-testimonial-author {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mm-testimonial-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

/* ================================================
   NAWIGACJA SLIDERA
   ================================================ */

.mm-testimonials-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.mm-testimonials-nav:hover {
    background: #E52A89;
    border-color: #E52A89;
    box-shadow: 0 8px 25px rgba(229, 42, 137, 0.3);
}

.mm-testimonials-nav svg {
    color: #333;
    transition: color 0.3s ease;
}

.mm-testimonials-nav:hover svg {
    color: #ffffff;
}

.mm-testimonials-prev {
    left: 0;
}

.mm-testimonials-next {
    right: 0;
}

.mm-testimonials-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mm-testimonials-nav:disabled:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.mm-testimonials-nav:disabled:hover svg {
    color: #333;
}

/* Dots */
.mm-testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

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

.mm-testimonials-dot:hover {
    background: #E52A89;
    opacity: 0.6;
}

.mm-testimonials-dot.active {
    background: #E52A89;
    transform: scale(1.3);
}

/* ================================================
   RESPONSYWNOŚĆ - KOLUMNY
   ================================================ */

/* 2 kolumny */
.mm-testimonials-slider[data-columns="2"] .mm-testimonial-card {
    flex: 0 0 calc(50% - 13px);
}

/* 1 kolumna */
.mm-testimonials-slider[data-columns="1"] .mm-testimonial-card {
    flex: 0 0 100%;
}

/* ================================================
   RESPONSYWNOŚĆ - BREAKPOINTS
   ================================================ */

@media (max-width: 1024px) {
    .mm-testimonials-section {
        padding: 80px 20px;
    }
    
    .mm-testimonials-title {
        font-size: 36px;
    }
    
    .mm-testimonials-slider {
        padding: 0 55px;
    }
    
    .mm-testimonial-card {
        flex: 0 0 calc(50% - 13px);
        padding: 30px 25px;
    }
    
    .mm-testimonial-content {
        min-height: 80px;
    }
}

@media (max-width: 768px) {
    .mm-testimonials-section {
        padding: 70px 15px;
    }
    
    .mm-testimonials-slider {
        padding: 0;
    }
    
    .mm-testimonials-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .mm-testimonials-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .mm-testimonials-track {
        gap: 15px;
        padding-bottom: 10px;
    }
    
    .mm-testimonial-card {
        flex: 0 0 calc(100% - 10px);
        min-width: calc(100% - 10px);
        padding: 30px 25px;
        scroll-snap-align: center;
    }
    
    .mm-testimonial-card:hover {
        transform: none;
    }
    
    .mm-testimonial-content {
        min-height: auto;
    }
    
    .mm-testimonials-nav {
        display: none;
    }
    
    .mm-testimonials-dots {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .mm-testimonials-section {
        padding: 50px 15px;
    }
    
    .mm-testimonial-card {
        padding: 25px 20px;
    }
    
    .mm-testimonial-text {
        font-size: 14px;
    }
    
    .mm-testimonial-name {
        font-size: 14px;
    }
    
    .mm-testimonials-dots {
        gap: 8px;
    }
    
    .mm-testimonials-dot {
        width: 8px;
        height: 8px;
    }
}

/* ================================================
   ANIMACJE
   ================================================ */

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

.mm-testimonials-section.mm-animated .mm-testimonials-slider {
    animation: mm-fadeInUp 0.6s ease forwards;
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

.mm-testimonials-nav:focus,
.mm-testimonials-dot:focus {
    outline: 2px solid #E52A89;
    outline-offset: 2px;
}

.mm-testimonials-nav:focus:not(:focus-visible),
.mm-testimonials-dot:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mm-testimonials-track {
        transition: none;
    }
    
    .mm-testimonial-card {
        transition: none;
    }
    
    .mm-testimonial-card:hover {
        transform: none;
    }
    
    .mm-testimonials-section.mm-animated .mm-testimonials-slider {
        animation: none;
        opacity: 1;
    }
}
