/**
 * ALW1 Review Card Grid Widget – Base Styles
 * Instance-specific overrides are generated as uid-scoped inline <style> inside render().
 * Naming: .alw1-rcg-{uid} scopes all rules to the widget instance.
 */

/* ── Wrapper ───────────────────────────────────────────────────── */
.alw1-rcg-wrapper { width: 100%; box-sizing: border-box; }

.alw1-rcg-grid { display: grid; gap: 24px; }

/* ── Card ─────────────────────────────────────────────────────── */
.alw1-rcg-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Gradient border accent on hover */
.alw1-rcg-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--alw1-rcg-hover-g1, #6366f1), var(--alw1-rcg-hover-g2, #a855f7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alw1-rcg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.alw1-rcg-card:hover::after { opacity: 1; }

/* ── Stars ─────────────────────────────────────────────────────── */
.alw1-rcg-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
    font-size: 16px;
}

/* ── Review Title ──────────────────────────────────────────────── */
.alw1-rcg-review-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}

/* ── Review Text ───────────────────────────────────────────────── */
.alw1-rcg-review-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 20px;
    flex: 1;
}

/* ── Author ────────────────────────────────────────────────────── */
.alw1-rcg-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.alw1-rcg-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}
.alw1-rcg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.alw1-rcg-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.alw1-rcg-author-role {
    font-size: 12px;
    color: #9ca3af;
    margin: 2px 0 0;
}
