/**
 * Saniservice Local SEO - Frontend Styles
 */

/* Rating Widget */
.slseo-rating-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.slseo-rating-full {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    display: inline-block;
}

.slseo-rating-score {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.slseo-rating-stars {
    font-size: 24px;
    margin: 10px 0;
}

.slseo-rating-count {
    font-size: 14px;
    opacity: 0.9;
}

.slseo-rating-compact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.slseo-rating-compact .slseo-rating-stars {
    font-size: 16px;
    margin: 0;
}

/* Stars */
.slseo-star {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.slseo-star.filled {
    color: #ffc107;
}

.slseo-rating-compact .slseo-star {
    color: #ddd;
}

.slseo-rating-compact .slseo-star.filled {
    color: #ffc107;
}

/* FAQ Widget Styles */
.slseo-faq-widget {
    max-width: 800px;
    margin: 0 auto;
}

.slseo-faq-item {
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

.slseo-faq-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    transition: background 0.2s;
}

.slseo-faq-toggle:hover {
    background: #f6f7f7;
}

.slseo-faq-toggle[aria-expanded="true"] {
    background: #f6f7f7;
}

.slseo-faq-question {
    flex: 1;
    padding-right: 15px;
}

.slseo-faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: #666;
}

.slseo-faq-toggle[aria-expanded="true"] .slseo-faq-icon {
    transform: rotate(180deg);
}

.slseo-faq-answer {
    padding: 0 20px 20px;
    background: #f6f7f7;
    color: #50575e;
    line-height: 1.7;
}

.slseo-faq-answer p:first-child {
    margin-top: 0;
}

.slseo-faq-answer p:last-child {
    margin-bottom: 0;
}

/* Reviews Widget Styles */
.slseo-reviews-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
}

.slseo-reviews-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.slseo-reviews-summary .slseo-reviews-score {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.slseo-reviews-summary .slseo-reviews-stars {
    font-size: 24px;
    margin: 10px 0;
}

.slseo-reviews-summary .slseo-reviews-count {
    font-size: 14px;
    opacity: 0.9;
}

/* Grid Layout */
.slseo-reviews-grid .slseo-reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* List Layout */
.slseo-reviews-list .slseo-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slseo-review-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.slseo-review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.slseo-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.slseo-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slseo-reviewer-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.slseo-reviewer-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.slseo-reviewer-info {
    display: flex;
    flex-direction: column;
}

.slseo-reviewer-name {
    font-weight: 600;
    color: #1d2327;
}

.slseo-review-date {
    font-size: 13px;
    color: #888;
}

.slseo-review-rating {
    font-size: 16px;
}

.slseo-review-rating .slseo-star {
    color: #ddd;
}

.slseo-review-rating .slseo-star.filled {
    color: #ffc107;
}

.slseo-review-body {
    color: #50575e;
    line-height: 1.6;
    font-size: 15px;
}

.slseo-reviews-footer {
    text-align: center;
    margin-top: 30px;
}

.slseo-reviews-link {
    display: inline-block;
    padding: 12px 24px;
    background: #1a73e8;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.slseo-reviews-link:hover {
    background: #1557b0;
    color: #fff;
    transform: translateY(-1px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .slseo-reviews-grid .slseo-reviews-list {
        grid-template-columns: 1fr;
    }
    
    .slseo-reviews-summary .slseo-reviews-score {
        font-size: 36px;
    }
    
    .slseo-review-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .slseo-faq-toggle {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* Print Styles */
@media print {
    .slseo-faq-answer {
        display: block !important;
    }
    
    .slseo-faq-icon {
        display: none;
    }
    
    .slseo-reviews-footer {
        display: none;
    }
}
