/**
 * GD WP Social Reviews Enhancements - Frontend Styles
 */

/* Star Ratings */
.gd-stars {
    display: inline-flex;
    gap: 2px;
    --gd-star-color: #f5a623;
}

.gd-star {
    color: var(--gd-star-color);
    line-height: 1;
}

.gd-star--empty {
    opacity: 0.3;
}

/* Star sizes */
.gd-stars--small .gd-star {
    font-size: 14px;
}

.gd-stars--medium .gd-star {
    font-size: 18px;
}

.gd-stars--large .gd-star {
    font-size: 24px;
}

/* Source Icons */
.gd-source-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.gd-source-icon svg {
    display: block;
}

/* Review Card Base Styles (optional - use with GenerateBlocks) */
.gd-review-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gd-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.gd-reviewer-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.gd-reviewer-info {
    flex: 1;
    min-width: 0;
}

.gd-reviewer-name {
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.gd-reviewer-title {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.3;
}

.gd-review-rating {
    margin-bottom: 12px;
}

.gd-review-text {
    line-height: 1.6;
    color: #333;
}

.gd-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
}

.gd-review-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Grid layout helper */
.gd-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Slider/Carousel helper */
.gd-reviews-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
}

.gd-reviews-slider .gd-review-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .gd-review-card {
        background: #1a1a1a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .gd-reviewer-title {
        color: #999;
    }

    .gd-review-text {
        color: #ddd;
    }

    .gd-review-footer {
        border-top-color: #333;
        color: #777;
    }
}
