/* verify.css - نسخة محسنة للهواتف */

.verify-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.verify-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.verify-card {
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.verify-card:hover {
    transform: translateY(-5px);
}

.instructions {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
}

.instructions ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 5px;
}

/* =========== تحسين نموذج الإدخال =========== */
.verify-form-section {
    padding: 2rem 0;
}

.verify-card .card-body {
    padding: 2rem;
}

/* تحسين مجموعة الإدخال */
.input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-lg {
    display: flex;
    flex-wrap: wrap;
}

.input-group-lg .input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.input-group-lg .form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0;
}

.input-group-lg .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    white-space: nowrap;
}

/* تحسين للهواتف */
@media (max-width: 576px) {
    .verify-card .card-body {
        padding: 1.5rem !important;
    }
    
    /* إعادة ترتيب عناصر الإدخال عمودياً */
    .input-group-lg {
        flex-direction: column;
    }
    
    .input-group-lg .input-group-text {
        border-radius: 8px 8px 0 0 !important;
        border-bottom: none;
        justify-content: center;
    }
    
    .input-group-lg .form-control {
        border-radius: 0 !important;
        text-align: center;
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .input-group-lg .btn {
        border-radius: 0 0 8px 8px !important;
        margin-top: -1px;
        width: 100%;
    }
    
    /* تحسين حجم الخط للحقل */
    #verification_code {
        font-size: 16px !important; /* منع التكبير التلقائي في iOS */
        letter-spacing: 0.5px;
        text-align: center;
    }
    
    /* تباعد العناصر */
    .instructions {
        font-size: 0.85rem;
    }
    
    .instructions h5 {
        font-size: 1rem;
    }
    
    .instructions li {
        font-size: 0.8rem;
    }
}

/* تحسين للشاشات المتوسطة */
@media (min-width: 577px) and (max-width: 768px) {
    .input-group-lg {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .input-group-lg .form-control {
        font-size: 0.95rem;
    }
    
    .input-group-lg .btn {
        white-space: nowrap;
    }
}

/* Result Card */
.result-card {
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    animation: slideUp 0.5s ease;
}

.result-success {
    background: linear-gradient(135deg, #d4edda 0%, #a3e4b7 100%);
    border: 2px solid #28a745;
}

.result-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
}

.result-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
}

.result-secondary {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    border: 2px solid #6c757d;
}

.result-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 15px;
}

.result-icon i {
    animation: bounce 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.product-details, .verification-details {
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 3px;
}

.detail-value {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.suggestions-box {
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.suggestions-box ul {
    margin: 10px 0 0 20px;
}

.suggestions-box li {
    margin: 5px 0;
}

.recommendation-box {
    background: rgba(255,243,205,0.8);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.85rem;
}

.btn-verify-again {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 15px;
    width: 100%;
    transition: all 0.3s;
}

.btn-verify-again:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.trust-item {
    padding: 12px;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s;
}

.trust-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive للنتائج */
@media (max-width: 768px) {
    .verify-card .card-body {
        padding: 25px !important;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .security-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .result-icon {
        font-size: 2.5rem;
    }
    
    .btn-verify-again {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}