/**
 * Clugston Reviews Widget Styles
 * @package Clugston_Elements
 * @version 1.0.0
 */

/* ========================================
   Section Container
   ======================================== */
.clugston-reviews-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #e8f0fc 0%, #f0f5fb 50%, #f8fafd 100%);
}

/* ========================================
   Header
   ======================================== */
.clugston-reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.clugston-reviews-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.clugston-title-bar {
    width: 60px;
    height: 4px;
    background: #ff5800;
    margin: 0 auto 16px;
    border-radius: 2px;
}

.clugston-reviews-subtitle {
    font-size: 1rem;
    color: #1a1a2e;
    margin: 0;
}

/* ========================================
   Slider Layout
   ======================================== */
.clugston-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Clip container hides overflow while padding allows shadow to show */
.clugston-slider-clip {
    overflow: hidden;
    padding: 20px 0;
    margin: -20px 0;
}

.clugston-swiper {
    overflow: visible !important;
}

.clugston-swiper .swiper-wrapper {
    align-items: stretch;
}

.clugston-swiper .swiper-slide {
    height: auto;
    overflow: visible;
    box-shadow: none !important;
    background: transparent !important;
}

/* ========================================
   Review Card
   ======================================== */
.clugston-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
}

.clugston-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, #ff5800 0%, #ff7a33 100%);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.clugston-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    -moz-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.clugston-card:hover::after {
    opacity: 1;
}

/* ========================================
   Quote Icon
   ======================================== */
.clugston-quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    color: #e2e8f0;
}

/* ========================================
   Stars
   ======================================== */
.clugston-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.clugston-star {
    width: 18px;
    height: 18px;
    color: #ff5800;
}

.clugston-star.empty {
    color: #e2e8f0;
}

/* ========================================
   Date
   ======================================== */
.clugston-card-date {
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 12px;
    display: block;
}

/* ========================================
   Review Text
   ======================================== */
.clugston-card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
    flex-grow: 1;
}

.clugston-text-short {
    display: inline;
}

.clugston-text-full {
    display: none;
}

.clugston-card-text.is-expanded .clugston-text-short {
    display: none;
}

.clugston-card-text.is-expanded .clugston-text-full {
    display: inline;
}

.clugston-read-more {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    color: #0019a9;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.clugston-read-more:hover {
    color: #ff5800;
}

/* ========================================
   Author
   ======================================== */
.clugston-author {
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.clugston-author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0019a9;
    margin: 0;
}

/* ========================================
   Navigation Buttons
   Background: #e8f0fc to #f0f5fb
   Buttons: darker blue-tinted variant
   Hover: 15% darker again
   ======================================== */
.clugston-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(180deg, #c8d8ec 0%, #d0e0f0 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0019a9;
    transition: background 0.3s ease;
    z-index: 10;
    padding: 0;
}

.clugston-nav:hover {
    background: linear-gradient(180deg, #a8c0d8 0%, #b8cce0 100%);
}

.clugston-nav.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.clugston-nav.swiper-button-disabled:hover {
    background: linear-gradient(180deg, #c8d8ec 0%, #d0e0f0 100%);
}

.clugston-nav-prev {
    left: 0;
}

.clugston-nav-next {
    right: 0;
}

.clugston-nav svg {
    width: 22px;
    height: 22px;
}

/* ========================================
   Pagination
   ======================================== */
.clugston-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.clugston-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    opacity: 1;
    border-radius: 50%;
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.clugston-pagination .swiper-pagination-bullet-active {
    background: #ff5800;
    transform: scale(1.3);
}

.clugston-pagination .swiper-pagination-bullet:hover:not(.swiper-pagination-bullet-active) {
    background: #0019a9;
}

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (max-width: 1024px) {
    .clugston-slider-wrapper {
        padding: 0 50px;
    }
    
    .clugston-nav {
        width: 44px;
        height: 44px;
    }
    
    .clugston-nav svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 768px) {
    .clugston-reviews-section {
        padding: 40px 16px;
    }
    
    .clugston-reviews-title {
        font-size: 1.75rem;
    }
    
    .clugston-slider-wrapper {
        padding: 0;
    }
    
    .clugston-card {
        padding: 20px;
    }
    
    .clugston-nav {
        display: none;
    }
    
    .clugston-pagination {
        margin-top: 20px;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Editor Preview
   ======================================== */
.clugston-editor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.clugston-editor-info {
    grid-column: 1 / -1;
    text-align: center;
    padding: 16px;
    background: #f0f4ff;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #0019a9;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .clugston-editor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .clugston-editor-grid {
        grid-template-columns: 1fr;
    }
}
