/* ============================================
   Etsy Reviews Plugin — etsy-reviews.css
   The Mechanical Tail Company
   ============================================ */

.etsy-reviews-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.etsy-reviews-heading {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
}

/* Grid: 3 columns on desktop, 2 on tablet, 1 on mobile */
.etsy-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .etsy-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .etsy-reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.etsy-review-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

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

/* Stars */
.etsy-review-stars {
    color: #f5a623;
    font-size: 1.2em;
    letter-spacing: 2px;
    line-height: 1;
}

/* Review text — limit long reviews with a gentle clamp */
.etsy-review-text {
    font-size: 0.95em;
    line-height: 1.65;
    color: #444;
    margin: 0;
    /* Show max ~6 lines */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta: reviewer name + date */
.etsy-review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}

.etsy-review-reviewer {
    font-weight: 600;
    font-size: 0.85em;
    color: #333;
}

.etsy-review-date {
    font-size: 0.8em;
    color: #999;
}

.etsy-review-listing {
    font-size: 0.78em;
    color: #aaa;
    font-style: italic;
}

/* Attribution footer */
.etsy-reviews-attribution {
    text-align: center;
    font-size: 0.75em;
    color: #bbb;
    margin-top: 8px;
}

.etsy-reviews-attribution a {
    color: #f5a623;
    text-decoration: none;
}

.etsy-reviews-attribution a:hover {
    text-decoration: underline;
}

/* Dark background variant — add class "etsy-reviews-dark" to a wrapping div */
.etsy-reviews-dark .etsy-reviews-section {
    background: transparent;
}

.etsy-reviews-dark .etsy-review-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.etsy-reviews-dark .etsy-review-text,
.etsy-reviews-dark .etsy-reviewer,
.etsy-reviews-dark .etsy-reviews-heading {
    color: #eee;
}

.etsy-reviews-dark .etsy-review-date,
.etsy-reviews-dark .etsy-review-listing {
    color: rgba(255, 255, 255, 0.5);
}
