/**
 * Trust Network Public Styles
 * 
 * Frontend styling for trust network components
 */

/* Trust Chip Styles */
.em-event-bookings-meta a[href="#em-event-booking-form"] {
    display: none !important;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #0369a1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.trust-chip:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: #7dd3fc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.15);
}

.trust-chip-clickable {
    cursor: pointer;
}

.trust-chip-clickable:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Trust Chip Sizes */
.trust-chip-small {
    padding: 4px 8px;
    font-size: 0.75rem;
    gap: 4px;
}

.trust-chip-large {
    padding: 8px 16px;
    font-size: 1rem;
    gap: 12px;
}

/* Trust Badge in Chip */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.trust-badge-icon {
    font-size: 1.1em;
}

.trust-badge-name {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8em;
}

/* Trust Score in Chip */
.trust-score {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
}

.trust-score-value {
    font-weight: 700;
    color: #0c4a6e;
    font-size: 14px;
}

.trust-score-count {
    font-size: 11px;
    color: #666;
    margin-left: 4px;
    font-weight: normal;
}

.trust-score-label {
    font-size: 0.8em;
    opacity: 0.8;
}

/* Trust Details */
.trust-details {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-user-name {
    font-weight: 500;
}

.trust-info-icon {
    opacity: 0.6;
    font-size: 0.9em;
}

/* Know Em Button Styles */
.trust-know-em-container {
    display: inline-block;
    margin: 2px;
}

.trust-know-em-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 16px;
    font-size: 0.75rem;
    color: #0369a1;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    transform: translateY(-25px); /* Move button up by 25px */
}

.trust-know-em-btn:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: #7dd3fc;
    transform: translateY(-26px); /* -25px base + -1px hover effect */
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.15);
}

.trust-know-em-btn:active {
    transform: translateY(-25px); /* Keep at -25px when clicked */
    box-shadow: 0 1px 3px rgba(3, 105, 161, 0.1);
}

.trust-know-em-btn.trust-know-em-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}

.trust-know-em-btn.trust-know-em-disabled:hover {
    transform: none;
    box-shadow: none;
}

.trust-know-em-icon {
    font-size: 0.875em;
}

.trust-know-em-text {
    font-weight: 500;
}

.trust-know-em-loading {
    display: none;
}

.trust-know-em-btn.loading .trust-know-em-text {
    display: none;
}

.trust-know-em-btn.loading .trust-know-em-loading {
    display: inline-flex;
}

.trust-know-em-count {
    font-size: 0.65rem;
    color: #6b7280;
    margin-left: 4px;
}

.trust-know-em-feedback {
    font-size: 0.75rem;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 4px;
}

.trust-know-em-feedback.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.trust-know-em-feedback.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.trust-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: #0369a1;
    animation: trust-spin 1s ease-in-out infinite;
}

@keyframes trust-spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments for Know Em buttons */
@media (max-width: 768px) {
    .trust-know-em-btn {
        padding: 3px 6px;
        font-size: 0.7rem;
        gap: 3px;
    }
    
    .trust-know-em-icon {
        font-size: 0.8em;
    }
}

/* Badge Color Variations */
.trust-chip-bronze {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
    color: #92400e;
}

.trust-chip-silver {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #94a3b8;
    color: #475569;
}

.trust-chip-gold {
    background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.trust-chip-platinum {
    background: linear-gradient(135deg, #f3e8ff 0%, #c084fc 100%);
    border-color: #a855f7;
    color: #6b21a8;
}

/* Trust Panel Styles */
.trust-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 16px 0;
}

.trust-panel-unavailable {
    color: #6b7280;
    text-align: center;
    padding: 40px 24px;
    background: #f9fafb;
}

/* Trust Panel Header */
.trust-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.trust-score-display {
    text-align: center;
}

.trust-score-main {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0c4a6e;
    line-height: 1;
}

.trust-score-suffix {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 4px;
}

.trust-badge-display {
    text-align: center;
}

.trust-badge-display .trust-badge-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 4px;
}

.trust-badge-display .trust-badge-name {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.trust-badge-display .trust-badge-level {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Evidence Breakdown */
.trust-evidence-breakdown {
    margin-bottom: 24px;
}

.trust-evidence-breakdown h4 {
    margin: 0 0 12px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.trust-evidence-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trust-evidence-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.evidence-icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.evidence-label {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.evidence-count {
    font-size: 0.875rem;
    color: #6b7280;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 12px;
}

.evidence-score {
    font-weight: 600;
    color: #0c4a6e;
    font-size: 0.875rem;
}

/* Create Trust Link Button */
.trust-create-link {
    margin-bottom: 24px;
    text-align: center;
}

.trust-create-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trust-create-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Recent Trust Links */
.trust-recent-links h4 {
    margin: 0 0 12px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.trust-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trust-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.trust-link-user {
    font-weight: 500;
    color: #374151;
}

.trust-link-score {
    font-weight: 600;
    color: #0c4a6e;
    margin-right: 12px;
}

.trust-link-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.trust-links-more {
    text-align: center;
    padding: 8px;
    color: #6b7280;
    font-style: italic;
}

/* Trust Modal Styles */
.trust-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.trust-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.trust-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.trust-modal-backdrop.active .trust-modal {
    transform: scale(1);
}

.trust-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.trust-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.trust-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    line-height: 1;
}

.trust-modal-close:hover {
    color: #374151;
}

.trust-modal-body {
    padding: 24px;
}

/* Trust Form Styles */
.trust-form-section {
    margin-bottom: 24px;
}

.trust-form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.trust-evidence-options {
    display: grid;
    gap: 8px;
}

.trust-evidence-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trust-evidence-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.trust-evidence-option:has(input:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
}

.trust-evidence-checkbox {
    margin: 0;
}

.trust-evidence-icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.trust-evidence-label {
    flex: 1;
    font-weight: 500;
}

.trust-evidence-weight {
    font-size: 0.875rem;
    color: #6b7280;
}

.trust-form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* Form Actions */
.trust-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.trust-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.trust-btn-primary {
    background: #3b82f6;
    color: white;
}

.trust-btn-primary:hover {
    background: #2563eb;
}

.trust-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.trust-btn-secondary:hover {
    background: #e5e7eb;
}

/* Trust Requests */
.trust-requests {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin: 16px 0;
}

.trust-requests h3 {
    margin: 0 0 20px 0;
    color: #374151;
}

.trust-requests-empty {
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.trust-request-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fafafa;
}

.trust-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.trust-request-user {
    font-weight: 600;
    color: #374151;
}

.trust-request-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.trust-request-evidence {
    margin-bottom: 16px;
}

.trust-request-evidence strong {
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.trust-request-evidence ul {
    margin: 8px 0 0 0;
    padding: 0;
    list-style: none;
}

.trust-request-evidence li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.trust-request-actions {
    display: flex;
    gap: 8px;
}

.trust-confirm-btn {
    background: #10b981;
    color: white;
}

.trust-confirm-btn:hover {
    background: #059669;
}

.trust-decline-btn {
    background: #ef4444;
    color: white;
}

.trust-decline-btn:hover {
    background: #dc2626;
}

/* Trust Leaderboard */
.trust-leaderboard {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trust-leaderboard-title {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    text-align: center;
}

.trust-leaderboard-empty {
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.trust-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.trust-leaderboard-item:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.trust-leaderboard-item.rank-1 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.trust-leaderboard-item.rank-2 {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px solid #94a3b8;
}

.trust-leaderboard-item.rank-3 {
    background: linear-gradient(135deg, #fef7ed 0%, #fed7aa 100%);
    border: 2px solid #ea580c;
}

.trust-rank {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 60px;
}

.trust-rank-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
}

.trust-rank-icon {
    font-size: 1.5rem;
}

.trust-user-avatar img {
    border-radius: 50%;
}

.trust-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-user-name {
    font-weight: 600;
    color: #374151;
}

.trust-user-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
}

.trust-user-score {
    text-align: right;
}

.trust-user-score .trust-score-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0c4a6e;
}

.trust-user-score .trust-score-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.trust-leaderboard-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Trust Statistics */
.trust-statistics {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
}

.trust-statistics h3 {
    margin: 0 0 20px 0;
    color: #374151;
}

.trust-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.trust-stat-item {
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.trust-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0c4a6e;
    line-height: 1;
}

.trust-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 4px;
}

.trust-score-distribution h4 {
    margin: 0 0 16px 0;
    color: #374151;
}

.trust-distribution-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trust-distribution-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.distribution-range {
    width: 60px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.distribution-bar {
    flex: 1;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.distribution-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.3s ease;
}

.distribution-count {
    width: 40px;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

/* Error Messages */
.trust-error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 8px 0;
}

/* Loading States */
.trust-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: #6b7280;
}

.trust-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: trust-spin 1s linear infinite;
}

@keyframes trust-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .trust-panel {
        padding: 16px;
        margin: 8px 0;
    }
    
    .trust-panel-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .trust-evidence-options {
        grid-template-columns: 1fr;
    }
    
    .trust-form-actions {
        flex-direction: column;
    }
    
    .trust-btn {
        width: 100%;
    }
    
    .trust-stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-leaderboard-item {
        gap: 12px;
    }
    
    .trust-modal {
        width: 95%;
        margin: 20px;
    }
}

/* Trust Panel Modal Styles */
.trust-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.trust-modal-backdrop.show {
    opacity: 1;
}

.trust-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.trust-modal-backdrop.show .trust-modal {
    transform: scale(1);
}

.trust-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trust-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.trust-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.trust-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.trust-modal-body {
    padding: 24px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

/* Trust Score Summary */
.trust-score-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
}

.trust-score-main {
    text-align: center;
}

.trust-score-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0369a1;
    line-height: 1;
}

.trust-score-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 4px;
}

.trust-badge-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trust-badge-icon {
    font-size: 1.5rem;
}

.trust-badge-name {
    font-weight: 600;
    color: #374151;
}

/* Trust Connections Summary */
.trust-connections-summary {
    margin-bottom: 24px;
}

.trust-stat {
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.trust-stat-number {
    display: block;
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.trust-stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Trusted By Section */
.trusted-by-section h4 {
    margin: 0 0 16px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.trusted-by-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trusted-by-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.trusted-by-item:hover {
    background: #f3f4f6;
}

.trusted-by-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.trusted-by-info {
    flex: 1;
}

.trusted-by-name {
    display: block;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    margin-bottom: 4px;
}

.trusted-by-name:hover {
    color: #0369a1;
}

.trusted-by-score {
    font-size: 0.875rem;
    color: #6b7280;
}

.user-role-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    border-radius: 12px;
    margin-bottom: 4px;
}

/* Trust More Indicator */
.trusted-by-more {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.trust-more-indicator {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.875rem;
    border-radius: 20px;
    font-style: italic;
}

/* No Trust Connections */
.no-trust-connections {
    text-align: center;
    padding: 32px 16px;
    color: #6b7280;
}

/* Trust Actions */
.trust-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.trust-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trust-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Body lock when modal is open */
body.trust-modal-open,
body.trust-rating-modal-open {
    overflow: hidden;
}

/* Trust Rating Modal */
.trust-rating-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start */
    justify-content: center;
    padding: 20px;
    padding-top: calc(50vh - 25px - 150px); /* Position higher than center */
}

.trust-rating-modal {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: trustRatingModalSlideIn 0.3s ease-out;
    /* Removed transform, now using padding-top positioning */
}

@keyframes trustRatingModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.trust-rating-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trust-rating-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.trust-rating-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.trust-rating-close:hover {
    background: #f5f5f5;
    color: #333;
}

.trust-rating-body {
    padding: 20px;
}

.trust-rating-body p {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
}

/* spacing handled by margins on .trust-rating-option */

.trust-rating-option {
    display: block;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    position: relative;
}

.trust-rating-option:hover {
    border-color: #2196F3;
    background: #f8f9ff;
}

.trust-rating-option.selected {
    border-color: #2196F3;
    background: #e3f2fd;
}

.trust-rating-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.trust-rating-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.trust-rating-desc {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.trust-rating-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.trust-rating-submit,
.trust-rating-cancel {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 14px;
}

.trust-rating-submit {
    background: #2196F3;
    color: white;
}

.trust-rating-submit:enabled:hover {
    background: #1976D2;
}

.trust-rating-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.trust-rating-cancel {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.trust-rating-cancel:hover {
    background: #eeeeee;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .trust-rating-modal {
        margin: 10px;
        max-width: none;
    }
    
    .trust-rating-header,
    .trust-rating-body {
        padding: 15px;
    }
    
    .trust-rating-option {
        padding: 12px;
    }
    
    .trust-rating-actions {
        flex-direction: column;
    }
    
    .trust-rating-submit,
    .trust-rating-cancel {
        width: 100%;
    }
}

/* Mobile responsiveness for trust modal */
@media (max-width: 768px) {
    .trust-modal {
        width: 95%;
        max-width: none;
        margin: 10px;
    }
    
    .trust-modal-header,
    .trust-modal-body {
        padding: 16px;
    }
    
    .trust-score-summary {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .trusted-by-item {
        gap: 8px;
    }
    
    .trusted-by-avatar img {
        width: 32px;
        height: 32px;
    }
}
