/**
 * استایل‌های بخش کاربری افزونه حراجی ووکامرس
 */

/* استایل‌های عمومی */
.haraji-container {
    margin-bottom: 30px;
}

.haraji-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.haraji-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
}

/* استایل‌های اطلاعات حراجی */
.haraji-auction-info {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 30px;
}

.haraji-auction-info-item {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
}

.haraji-auction-info-label {
    font-weight: 700;
    min-width: 150px;
    margin-left: 10px;
}

.haraji-auction-info-value {
    flex: 1;
}

/* استایل‌های وضعیت حراجی */
.haraji-status-pending {
    display: inline-block;
    background-color: #f0f0f0;
    color: #777;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 14px;
}

.haraji-status-active {
    display: inline-block;
    background-color: #e7f5ea;
    color: #1e7e34;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 14px;
}

.haraji-status-ended {
    display: inline-block;
    background-color: #f8d7da;
    color: #721c24;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 14px;
}

/* استایل‌های تایمر حراجی */
.haraji-auction-timer {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0;
}

/* استایل‌های فرم ارسال پیشنهاد */
.haraji-bid-form {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 30px;
}

.haraji-bid-form-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.haraji-bid-form-field {
    margin-bottom: 15px;
}

.haraji-bid-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.haraji-bid-form-field input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.haraji-min-bid {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #777;
}

.haraji-bid-form-message {
    margin-top: 15px;
}

/* استایل‌های جدول پیشنهادات */
.haraji-auction-bids {
    margin-bottom: 30px;
}

.haraji-auction-bids-title {
    margin-bottom: 15px;
    font-size: 18px;
}

.haraji-auction-bids table {
    width: 100%;
    border-collapse: collapse;
}

.haraji-auction-bids th,
.haraji-auction-bids td {
    padding: 10px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.haraji-auction-bids th {
    background-color: #f5f5f5;
    font-weight: 700;
}

.haraji-auction-bids tr:hover {
    background-color: #f9f9f9;
}

.haraji-auction-bids tr.current-user {
    background-color: #e6f2ff;
}

.haraji-auction-bids tr.winner-row {
    background-color: #e7f5ea;
}

.haraji-auction-bids-winner {
    display: inline-block;
    background-color: #e7f5ea;
    color: #1e7e34;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 13px;
}

.haraji-auction-bids-refund {
    display: inline-block;
    background-color: #fff3cd;
    color: #856404;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 13px;
    margin-right: 5px;
}

/* استایل‌های کیف پول */
.haraji-wallet {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 30px;
}

.haraji-wallet-balance {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.haraji-wallet-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* استایل‌های فرم شارژ کیف پول */
.haraji-wallet-deposit-form {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-top: 20px;
}

.haraji-wallet-deposit-form-field {
    margin-bottom: 15px;
}

.haraji-wallet-deposit-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.haraji-wallet-deposit-form-field input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* استایل‌های تاریخچه تراکنش‌ها */
.haraji-transactions {
    margin-top: 30px;
}

.haraji-transactions-title {
    margin-bottom: 15px;
    font-size: 18px;
}

.haraji-transactions table {
    width: 100%;
    border-collapse: collapse;
}

.haraji-transactions th,
.haraji-transactions td {
    padding: 10px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.haraji-transactions th {
    background-color: #f5f5f5;
    font-weight: 700;
}

.haraji-transactions tr:hover {
    background-color: #f9f9f9;
}

.haraji-transaction-deposit {
    color: #1e7e34;
}

.haraji-transaction-withdraw {
    color: #721c24;
}

/* استایل‌های تب‌های حراجی‌های کاربر */
.haraji-user-auctions {
    margin-bottom: 30px;
}

.haraji-user-auctions-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.haraji-user-auctions-tabs a {
    padding: 10px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 700;
    margin-bottom: -1px;
}

.haraji-user-auctions-tabs a.active {
    border: 1px solid #eee;
    border-bottom-color: #fff;
    background-color: #fff;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    color: #23282d;
}

.haraji-user-auctions-content {
    display: none;
}

.haraji-user-auctions-content.active {
    display: block;
}

/* استایل‌های کارت حراجی */
.haraji-auction-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

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

.haraji-auction-card-title {
    margin: 0;
    font-size: 18px;
}

.haraji-auction-card-body {
    padding: 15px;
}

.haraji-auction-card-info {
    margin-bottom: 15px;
}

.haraji-auction-card-info-item {
    margin-bottom: 5px;
    display: flex;
}

.haraji-auction-card-info-label {
    font-weight: 700;
    min-width: 120px;
    margin-left: 10px;
}

.haraji-auction-card-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* استایل‌های فرم درخواست بازپرداخت */
.haraji-refund-form {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-top: 20px;
}

.haraji-refund-form-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.haraji-refund-form-field {
    margin-bottom: 15px;
}

.haraji-refund-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.haraji-refund-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    min-height: 100px;
}

/* استایل‌های پیام */
.haraji-message {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 3px;
}

.haraji-message-success {
    background-color: #e7f5ea;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.haraji-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.haraji-message-info {
    background-color: #e6f2ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.haraji-message-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .haraji-auction-info-item {
        flex-direction: column;
    }
    
    .haraji-auction-info-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .haraji-user-auctions-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .haraji-user-auctions-tabs a {
        border: 1px solid #eee;
        border-radius: 3px;
        margin-bottom: 5px;
    }
    
    .haraji-user-auctions-tabs a.active {
        border-bottom-color: #eee;
    }
    
    .haraji-auction-card-footer {
        flex-direction: column;
        gap: 10px;
    }
} 