/**
 * Public-facing styles for SCS Testimonials
 *
 * @package    SCS_Testimonials
 * @subpackage SCS_Testimonials/assets/css
 */

/* Import Plus Jakarta Sans font */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Colors:
   Primary: #976045
   Secondary: #0E5C31
*/

/* Container - scoped to plugin only */
.scs-testimonials-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.scs-testimonials-wrapper h2.scs-testimonials-title {
    display: none !important;
}

/* Slider Container */
.scs-testimonials-slider-container {
    position: relative !important;
    overflow: hidden !important;
    padding: 0 60px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* Grid layout */
.scs-testimonials-grid {
    display: flex !important;
    width: 100% !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    transition: transform 0.5s linear !important;
    position: relative !important;
    left: 0 !important;
}

/* Individual testimonial card */
.scs-testimonial-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 40px 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.scs-testimonial-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Quote icon - removed to match design */
.scs-testimonial-card::before {
    content: none !important;
}

/* Person info section */
.scs-testimonial-person {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 5px !important;
}

.scs-testimonial-image,
.scs-testimonial-image-placeholder {
    display: none !important;
}

.scs-testimonial-details {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
}

.scs-testimonial-name {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0E5C31 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.scs-testimonial-role {
    display: inline-block !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    text-transform: capitalize !important;
    letter-spacing: normal !important;
    color: #976045 !important;
}

.scs-testimonial-role.role-student,
.scs-testimonial-role.role-parent,
.scs-testimonial-role.role-custom {
    background-color: transparent !important;
    color: #976045 !important;
}

/* Testimonial content wrapper */
.scs-testimonial-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.scs-testimonial-content p {
    margin: 0 !important;
}

/* Testimonial text wrapper for truncated content */
.scs-testimonial-text-wrapper {
    max-width: 900px !important;
    margin: 0 auto !important;
    text-align: center !important;
    position: relative !important;
    font-size: 0 !important;
}

/* Testimonial text */
.scs-testimonial-text {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    color: #333333 !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    font-style: normal !important;
    text-align: center !important;
    display: inline !important;
    width: auto !important;
}

.scs-testimonial-content > .scs-testimonial-text {
    max-width: 900px !important;
    margin: 0 auto !important;
    display: block !important;
}

.scs-read-more-btn {
    display: inline !important;
    color: #976045 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 20px !important;
    margin: 0 !important;
    font-style: normal !important;
    font-weight: 400 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    vertical-align: baseline !important;
    white-space: nowrap !important;
    text-transform: lowercase !important;
}

.scs-read-more-btn:hover {
    color: #0E5C31 !important;
}

/* Navigation Arrows */
.scs-testimonials-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    border: none !important;
    background: transparent !important;
    color: #976045 !important;
    font-size: 40px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.scs-testimonials-nav:hover {
    color: #0E5C31 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.scs-testimonials-nav.prev {
    left: 0 !important;
}

.scs-testimonials-nav.next {
    right: 0 !important;
}

.scs-testimonials-nav:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

/* Pagination Dots */
.scs-testimonials-pagination {
    display: none !important;
}

/* Modal Styles */
.scs-testimonial-modal {
    display: none !important;
    position: fixed !important;
    z-index: 99999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    animation: scsFadeIn 0.3s ease !important;
}

.scs-testimonial-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.scs-modal-content {
    background: #F7F5EE !important;
    background-color: #F7F5EE !important;
    margin: 0 !important;
    padding: 50px !important;
    border: none !important;
    width: 90% !important;
    max-width: 800px !important;
    position: relative !important;
    animation: scsSlideUp 0.3s ease !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.scs-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    color: #976045 !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
}

.scs-modal-close:hover {
    color: #0E5C31 !important;
    transform: rotate(90deg) !important;
}

.scs-modal-body {
    margin-top: 30px !important;
}

.scs-modal-body .scs-testimonial-text {
    font-size: 18px !important;
    line-height: 1.8 !important;
    margin-bottom: 30px !important;
}

.scs-modal-body .scs-testimonial-person {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: none !important;
}

.scs-modal-body .scs-testimonial-image,
.scs-modal-body .scs-testimonial-image-placeholder {
    display: none !important;
}

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

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

/* Responsive design */
@media screen and (max-width: 768px) {
    .scs-testimonials-slider-container {
        /* Keep container flush to avoid peeking */
        padding: 0 !important;
    }

    .scs-testimonial-card {
        /* Ensure content stays inside larger nav arrows on mobile */
        padding: 30px 64px !important; /* 64px ≈ arrow width (44px) + 8px inset + extra room */
        box-sizing: border-box !important;
    }

    /* Inset navigation arrows slightly while keeping them within container */
    .scs-testimonials-nav.prev {
        left: 8px !important;
    }
    .scs-testimonials-nav.next {
        right: 8px !important;
    }

    .scs-testimonial-text {
        font-size: 16px !important;
    }

    .scs-read-more-btn {
        font-size: 16px !important;
    }

    .scs-testimonials-nav {
        font-size: 36px !important;
        width: 44px !important;
        height: 44px !important;
    }

    .scs-testimonial-person {
        margin-top: 5px !important;
    }

    .scs-modal-content {
        padding: 40px 30px !important;
        width: 95% !important;
        max-height: 90vh !important;
    }

    .scs-modal-close {
        font-size: 28px !important;
        top: 15px !important;
        right: 15px !important;
    }

    .scs-testimonial-modal.show {
        padding: 10px !important;
    }
}

/* Alternative List Layout */
.scs-testimonials-list .scs-testimonials-grid {
    grid-template-columns: 1fr !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Slider Layout (if needed for future) */
.scs-testimonials-slider {
    position: relative !important;
}

/* No testimonials message */
.scs-no-testimonials {
    text-align: center !important;
    padding: 40px 20px !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #666666 !important;
    font-size: 16px !important;
}
