/* CiteTrust Frontend Styles */

/* ── Grid / List Layouts ── */
.citetrust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.citetrust-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

/* ── Record Cards ── */
.citetrust-record,
.citetrust-product-card,
.citetrust-brand-card {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.15s;
}

.citetrust-record:hover,
.citetrust-product-card:hover,
.citetrust-brand-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.citetrust-record-label,
.citetrust-product-name,
.citetrust-brand-name {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
}

.citetrust-record-def,
.citetrust-product-desc {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 12px;
}

.citetrust-proof-points {
    margin: 8px 0 0;
    padding-left: 20px;
    color: #4a5568;
    font-size: 0.85rem;
}

.citetrust-proof-points li {
    margin-bottom: 4px;
}

.citetrust-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #edf2f7;
    color: #4a5568;
    margin-right: 6px;
}

.citetrust-sku {
    font-size: 0.75rem;
    color: #a0aec0;
    font-family: monospace;
}

/* ── FAQs ── */
.citetrust-faqs {
    margin: 20px 0;
}

.citetrust-faq {
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
}

.citetrust-faq h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
}

.citetrust-faq p {
    margin: 0;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── ACES Badge ── */
.citetrust-aces-badge {
    text-align: center;
    padding: 20px;
}

.citetrust-aces-score {
    width: 80px;
    height: 80px;
    border: 3px solid;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.citetrust-aces-sm .citetrust-aces-score { width: 56px; height: 56px; border-width: 2px; }
.citetrust-aces-lg .citetrust-aces-score { width: 120px; height: 120px; border-width: 4px; }

.citetrust-aces-grade {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.citetrust-aces-sm .citetrust-aces-grade { font-size: 1rem; }
.citetrust-aces-lg .citetrust-aces-grade { font-size: 2.5rem; }

.citetrust-aces-pct {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.8;
}

.citetrust-aces-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.citetrust-aces-powered {
    font-size: 0.65rem;
    color: #a0aec0;
    margin-top: 4px;
}

/* ── ACES Card ── */
.citetrust-aces-card {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    max-width: 360px;
}

.citetrust-aces-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.citetrust-aces-card-score {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.citetrust-aces-card-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
}

.citetrust-aces-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.citetrust-aces-dim {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.citetrust-aces-dim-label {
    flex: 0 0 90px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4a5568;
}

.citetrust-aces-dim-bar {
    flex: 1;
    height: 6px;
    background: #edf2f7;
    border-radius: 3px;
    overflow: hidden;
}

.citetrust-aces-dim-bar > div {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

.citetrust-aces-dim-val {
    flex: 0 0 36px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: right;
}

.citetrust-aces-card-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
    font-size: 0.65rem;
    color: #a0aec0;
    text-align: center;
}

/* ── Inline ACES ── */
.citetrust-aces-inline {
    font-weight: 700;
}

.citetrust-aces-inline.citetrust-aces-sm { font-size: 0.8rem; }
.citetrust-aces-inline.citetrust-aces-md { font-size: 1rem; }
.citetrust-aces-inline.citetrust-aces-lg { font-size: 1.25rem; }

/* ── Empty / Notice ── */
.citetrust-empty {
    padding: 24px;
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
}

.citetrust-notice {
    padding: 12px 16px;
    background: #fefce8;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #92400e;
}

.citetrust-notice a {
    color: #92400e;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .citetrust-grid {
        grid-template-columns: 1fr;
    }
}
