/**
 * Property Payment System Styles
 * 
 * @package AqarGate
 * @version 1.0.0
 */

/* ============================================
   زر الدفع الرئيسي
============================================ */
.property-payment-wrapper {
    margin: 30px 0;
    text-align: center;
}

/* معلومات السعر */
.property-payment-wrapper .payment-info {
    margin-bottom: 20px;
}

.property-payment-wrapper .price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.property-payment-wrapper .price-amount {
    font-size: 24px;
    font-weight: 600;
    color: #00aeff;
    margin-bottom: 10px;
}

/* زر الدفع */
.property-payment-btn {
    background: #00aeff;
    color: #fff !important;
    border: 1px solid #00aeff;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.property-payment-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.property-payment-btn:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 174, 255, 0.3);
}

.property-payment-btn:hover:before {
    left: 100%;
}

.property-payment-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.property-payment-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.property-payment-btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

.property-payment-btn i.animated-icon {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* ملاحظة الأمان */
.payment-secure-note {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.payment-secure-note i {
    color: #28a745;
    font-size: 14px;
}

/* ============================================
   نافذة التأكيد
============================================ */
.property-payment-modal .modal-dialog {
    max-width: 500px;
}

.property-payment-modal .modal-header {
    background: linear-gradient(135deg, #00aeff 0%, #0099e0 100%);
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.property-payment-modal .modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-confirmation-content {
    padding: 20px;
}

.payment-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.payment-summary h4 {
    margin: 0 0 15px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    color: var(--e-a-color-txt-active);
    font-size: 14px;
    background-color: #F8F9FA;
}

.summary-item .value {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.summary-item .price-highlight {
    color: #00aeff;
    font-size: 18px;
}

.payment-notes {
    padding: 0;
}

.payment-notes p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-notes i {
    color: #00aeff;
    font-size: 16px;
}

/* ============================================
   الإشعارات
============================================ */
.property-payment-notification {
    margin: 0 0 20px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    animation-duration: 0.5s;
}

.property-payment-notification i {
    font-size: 20px;
}

.property-payment-notification.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.property-payment-notification.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ============================================
   الرسوم المتحركة
============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.fadeInDown {
    animation-name: fadeInDown;
}

.fadeOutUp {
    animation-name: fadeOutUp;
}

/* ============================================
   التوافق مع الجوال
============================================ */
@media (max-width: 768px) {
    .property-payment-wrapper {
        padding: 20px;
        margin: 20px 0;
    }
    
    .property-payment-wrapper .price-amount {
        font-size: 24px;
    }
    
    .property-payment-btn {
        width: 100%;
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .payment-summary {
        padding: 15px;
    }
    
    .summary-item {
        flex-direction: column;
        text-align: right;
        gap: 5px;
    }
    
    .summary-item .value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .property-payment-wrapper .price-amount {
        font-size: 20px;
    }
    
    .property-payment-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* ============================================
   دعم RTL
============================================ */
.rtl .property-payment-btn i {
    margin-right: 0;
    margin-left: 8px;
}

.rtl .payment-notes p {
    flex-direction: row-reverse;
}

.rtl .property-payment-modal .modal-title {
    flex-direction: row-reverse;
}

/* ============================================
   تأثيرات إضافية
============================================ */

/* Loading spinner */
.houzez-icon.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}