/**
 * REVIEWS & TESTIMONIALS SYSTEM
 * Style dla systemu opinii
 * ============================
 */

/* ===================================
   REVIEWS GRID
   =================================== */

.bsg-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.bsg-review-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.bsg-review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 107, 61, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.bsg-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.review-stars {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verified-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.review-date {
    color: #999;
    font-size: 13px;
}

.review-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
}

.review-content {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.review-author {
    padding-top: 15px;
    border-top: 2px solid rgba(255, 107, 61, 0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.review-author strong {
    color: #FF6B3D;
    font-size: 15px;
}

.review-company {
    color: #666;
    font-size: 13px;
}

/* ===================================
   REVIEWS CAROUSEL
   =================================== */

.bsg-reviews-carousel {
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.bsg-reviews-carousel .bsg-review-card {
    min-width: 350px;
    margin-right: 30px;
}

/* ===================================
   REVIEWS LIST
   =================================== */

.bsg-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 40px 0;
}

.bsg-reviews-list .bsg-review-card {
    display: flex;
    gap: 25px;
}

/* ===================================
   RATING WIDGET (średnia ocena)
   =================================== */

.bsg-rating-widget {
    background: linear-gradient(135deg, #fff3cd 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 25px 35px;
    text-align: center;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
    margin: 20px 0;
}

.rating-stars {
    font-size: 32px;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.rating-stars .star.full {
    color: #fbbf24;
}

.rating-stars .star.half {
    color: #fbbf24;
    opacity: 0.5;
}

.rating-stars .star.empty {
    color: #e5e7eb;
}

.rating-text {
    font-size: 18px;
    color: #78350f;
}

.rating-text strong {
    font-size: 24px;
    color: #FF6B3D;
}

/* ===================================
   REVIEW FORM
   =================================== */

.bsg-review-form-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 40px auto;
}

.bsg-review-form-container h3 {
    color: #FF6B3D;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.bsg-review-form-container > p {
    color: #666;
    margin: 0 0 30px 0;
}

.bsg-review-form .form-row {
    margin-bottom: 20px;
}

.bsg-review-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.bsg-review-form input[type="text"],
.bsg-review-form input[type="email"],
.bsg-review-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.bsg-review-form input:focus,
.bsg-review-form textarea:focus {
    outline: none;
    border-color: #FF6B3D;
    box-shadow: 0 0 0 3px rgba(255, 107, 61, 0.1);
}

.bsg-review-form textarea {
    resize: vertical;
    min-height: 120px;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s ease;
    margin: 0;
}

.star-rating-input label:hover {
    transform: scale(1.2);
}

.star-rating-input input[type="radio"]:checked ~ label {
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.submit-review-btn {
    background: linear-gradient(135deg, #FF6B3D, #FF8C5A);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 61, 0.3);
}

.submit-review-btn:hover {
    background: linear-gradient(135deg, #FF8C5A, #FF6B3D);
    box-shadow: 0 6px 25px rgba(255, 107, 61, 0.5);
    transform: translateY(-2px);
}

.submit-review-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================================
   DARK MODE REVIEWS
   =================================== */

@media (prefers-color-scheme: dark) {
    .bsg-review-card {
        background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
        border-color: rgba(255, 107, 61, 0.2);
    }
    
    .bsg-review-card::before {
        color: rgba(255, 107, 61, 0.05);
    }
    
    .review-title {
        color: #ffffff;
    }
    
    .review-content {
        color: rgba(255, 255, 255, 0.85);
    }
    
    .bsg-review-form-container {
        background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    }
    
    .bsg-review-form-container h3 {
        color: #FF8C5A;
    }
    
    .bsg-review-form label {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .bsg-review-form input,
    .bsg-review-form textarea {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .bsg-reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bsg-review-card {
        padding: 25px 20px;
    }
    
    .review-title {
        font-size: 18px;
    }
    
    .bsg-review-form-container {
        padding: 25px 20px;
    }
    
    .bsg-rating-widget {
        padding: 20px 25px;
    }
    
    .rating-stars {
        font-size: 24px;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .bsg-review-card,
    .submit-review-btn {
        transition: none;
    }
}

