/* Enhanced Trust Score Card - Sidebar Version */

.trust-score-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border: 2px solid #e0e6f2;
    border-radius: 10px;
    margin-top: 12px;
}

/* Score Header */
.score-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(53, 157, 72, 0.2);
}

.score-value {
    font-size: 28px;
    font-weight: 700;
    color: #359d48;
    line-height: 1;
}

.score-stars {
    font-size: 16px;
    color: #ffc107;
    letter-spacing: 2px;
}

/* Summary Stats - Compact */
.score-summary-compact {
    display: flex;
    justify-content: space-around;
    gap: 6px;
    font-size: 11px;
    color: #666;
    padding: 6px 0;
}

.rating-count {
    font-weight: 600;
    color: #333;
}

.rating-type {
    color: #999;
}

/* Breakdown - Sidebar Version */
.score-breakdown-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 0;
    border-top: 2px solid rgba(53, 157, 72, 0.2);
    border-bottom: 2px solid rgba(53, 157, 72, 0.2);
}

.breakdown-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
}

.breakdown-mini.give-section {
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.breakdown-mini.receive-section {
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.breakdown-mini-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.breakdown-mini-label i {
    font-size: 12px;
}

.give-section .breakdown-mini-label i {
    color: #f44336;
}

.receive-section .breakdown-mini-label i {
    color: #2196f3;
}

.breakdown-mini-score {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: center;
}

.score-num {
    font-size: 14px;
    font-weight: 700;
    color: #359d48;
}

.count-badge {
    font-size: 10px;
    background: rgba(53, 157, 72, 0.1);
    color: #359d48;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 600;
}

/* Recent Transaction - Compact */
.recent-transaction-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border-left: 3px solid #359d48;
    font-size: 11px;
}

.recent-label {
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.5px;
}

.recent-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tx-type {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 2px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.tx-type.give {
    background: rgba(244, 67, 54, 0.2);
    color: #d32f2f;
}

.tx-type.receive {
    background: rgba(33, 150, 243, 0.2);
    color: #1976d2;
}

.tx-user {
    flex: 1;
    color: #333;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-rating-compact {
    font-size: 11px;
    color: #ffc107;
    letter-spacing: 1px;
}

/* Score Label */
.score-label-compact {
    text-align: center;
    font-size: 10px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover Effects */
.trust-score-card:hover {
    box-shadow: 0 2px 8px rgba(53, 157, 72, 0.12);
    border-color: #359d48;
    transition: all 0.3s ease;
}



/* Mobile Responsive */
@media (max-width: 480px) {
    .trust-score-card {
        padding: 12px;
        gap: 8px;
    }
    
    .score-value {
        font-size: 24px;
    }
    
    .score-stars {
        font-size: 14px;
    }
}

/* Widget Breakdown - Grid Version */
.score-breakdown-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 0;
    margin: 10px 0;
}

.widget-trust-score .breakdown-mini {
    padding: 8px;
    gap: 3px;
}

.widget-trust-score .breakdown-mini-label {
    font-size: 10px;
    gap: 3px;
}

.widget-trust-score .breakdown-mini-label i {
    font-size: 11px;
}

.widget-trust-score .breakdown-mini-score {
    gap: 3px;
}

.widget-trust-score .score-num {
    font-size: 13px;
}

.widget-trust-score .count-badge {
    font-size: 9px;
    padding: 1px 3px;
}

