/* === استایل‌های عمومی === */
.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

.trust-section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    text-align: right;
}

.trust-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.trust-alert-success {
    background-color: #e8f5e9;
    border-right: 4px solid #2e7d32;
    color: #2e7d32;
}

.trust-alert-error {
    background-color: #ffebee;
    border-right: 4px solid #c62828;
    color: #c62828;
}

.trust-alert-info {
    background-color: #e3f2fd;
    border-right: 4px solid #1565c0;
    color: #1565c0;
}

/* === فرم استعلام گارانتی === */
.trust-warranty-form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.trust-form-group {
    margin-bottom: 20px;
}

.trust-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.trust-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.trust-form-control:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.trust-btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
    text-align: center;
}

.trust-btn:hover {
    background-color: #3d8b40;
}

.trust-btn-block {
    display: block;
    width: 100%;
}

/* === نتایج استعلام === */
.trust-warranty-result {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.trust-result-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: right;
}

.trust-result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.trust-result-item {
    margin-bottom: 15px;
}

.trust-result-label {
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.trust-result-value {
    font-size: 16px;
    color: #333;
}

.trust-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.trust-status-active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.trust-status-expired {
    background-color: #ffebee;
    color: #c62828;
}

.trust-status-pending {
    background-color: #fff8e1;
    color: #f57f17;
}

/* === کارت فروشنده === */
.trust-vendor-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
}

.trust-vendor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.trust-vendor-name {
    font-size: 22px;
    color: #333;
    margin: 0;
}

.trust-verified-badge {
    background-color: #4CAF50;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.trust-verified-badge i {
    margin-left: 5px;
}

.trust-vendor-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.trust-rating-stars {
    color: #FFC107;
    margin-left: 10px;
}

.trust-rating-text {
    color: #666;
    font-size: 15px;
}

.trust-vendor-details {
    margin-top: 20px;
}

.trust-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
}

.trust-detail-item i {
    margin-left: 10px;
    color: #4CAF50;
}

/* === جدول گارانتی‌ها === */
.trust-warranty-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.trust-warranty-table th {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: right;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #ddd;
}

.trust-warranty-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
    color: #333;
}

.trust-warranty-table tr:hover td {
    background-color: #f9f9f9;
}

/* === صفحه‌بندی === */
.trust-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.trust-pagination a,
.trust-pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.trust-pagination a:hover {
    background-color: #f5f5f5;
}

.trust-pagination .current {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* === نسخه موبایل === */
@media (max-width: 768px) {
    .trust-result-details {
        grid-template-columns: 1fr;
    }
    
    .trust-warranty-table {
        display: block;
        overflow-x: auto;
    }
    
    .trust-vendor-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .trust-verified-badge {
        margin-top: 10px;
    }
}

/* === انیمیشن‌ها === */
@keyframes trustFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.trust-animate {
    animation: trustFadeIn 0.5s ease-out;
}

/* === ابزارک‌ها === */
.widget_trust_widget .trust-widget-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.widget_trust_widget .trust-widget-content {
    font-size: 14px;
    color: #555;
}

/* === حالت تاریک === */
@media (prefers-color-scheme: dark) {
    .trust-container,
    .trust-warranty-form,
    .trust-warranty-result,
    .trust-vendor-card {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    .trust-section-title,
    .trust-vendor-name,
    .trust-result-value,
    .trust-warranty-table td {
        color: #e0e0e0;
    }
    
    .trust-form-control {
        background-color: #3d3d3d;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .trust-warranty-table th {
        background-color: #333;
        color: #e0e0e0;
    }
    
    .trust-warranty-table tr:hover td {
        background-color: #333;
    }
}