/**
 * Single Google Review - Public Styles
 * Matches parent plugin styling (Widget Google Reviews)
 */

/* Review Container */
.sgr-review {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Business Header (optional) */
.sgr-business-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sgr-business-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.sgr-business-info {
    flex: 1;
}

.sgr-business-name {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.sgr-business-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.sgr-business-link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}

.sgr-business-link:hover {
    text-decoration: underline;
}

/* Review Header */
.sgr-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.sgr-author-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sgr-author-photo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sgr-author-placeholder {
    background: #fb8e28;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.sgr-author-details {
    flex: 1;
    min-width: 0;
}

.sgr-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.sgr-author-name a {
    color: #1a1a1a;
    text-decoration: none;
}

.sgr-author-name a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.sgr-review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Star Rating */
.sgr-stars,
.rpi-stars {
    display: inline-flex;
    gap: 2px;
    color: #fb8e28;
    font-size: 16px;
    line-height: 1;
}

.sgr-star {
    color: #fb8e28;
}

.sgr-star-full {
    color: #fb8e28;
}

.sgr-star-half {
    color: #fb8e28;
    opacity: 0.5;
}

.sgr-star-empty {
    color: #ddd;
}

.sgr-rating-text {
    font-size: 14px;
    color: #5f6368;
}

.sgr-review-date {
    font-size: 13px;
    color: #5f6368;
}

/* Google Link */
.sgr-google-link {
    color: #5f6368;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sgr-google-link:hover {
    background-color: #f1f3f4;
}

/* Review Content */
.sgr-review-content {
    margin-top: 12px;
}

.sgr-review-text {
    color: #3c4043;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Review Images */
.sgr-review-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.sgr-review-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.sgr-review-image:hover {
    transform: scale(1.05);
}

/* Owner Reply */
.sgr-owner-reply {
    background: #f8f9fa;
    border-left: 3px solid #fb8e28;
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 4px;
}

.sgr-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sgr-reply-header strong {
    font-size: 13px;
    color: #1a1a1a;
}

.sgr-reply-date {
    font-size: 12px;
    color: #5f6368;
}

.sgr-reply-text {
    font-size: 13px;
    color: #3c4043;
    line-height: 1.6;
}

/* Review Footer */
.sgr-review-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e4e8;
}

.sgr-google-badge {
    font-size: 12px;
    color: #5f6368;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Error Message */
.sgr-error {
    background: #fef7f7;
    border: 1px solid #dc3232;
    border-radius: 4px;
    padding: 12px 15px;
    color: #dc3232;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sgr-review {
        padding: 15px;
    }
    
    .sgr-author-photo {
        width: 40px;
        height: 40px;
    }
    
    .sgr-review-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .sgr-business-header {
        flex-direction: column;
        text-align: center;
    }
    
    .sgr-business-logo {
        width: 50px;
        height: 50px;
    }
    
    .sgr-review-image {
        width: 100px;
        height: 100px;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .sgr-review {
        background: #1a1a1a;
        border-color: #333;
        color: #e8e8e8;
    }
    
    .sgr-author-name,
    .sgr-author-name a {
        color: #e8e8e8;
    }
    
    .sgr-review-text {
        color: #d1d1d1;
    }
    
    .sgr-owner-reply {
        background: #2a2a2a;
    }
    
    .sgr-business-header {
        background: #2a2a2a;
        border-color: #333;
    }
}
