/* ================= صفحة التحقق من الشهادة - ملف CSS منفصل ================= */

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* تنسيق عنوان "التحقق من صحة الشهادة" مع الخطين */
.section-title-wrapper {
    position: relative;
    display: inline-block;
    padding: 0 3rem;
    margin-bottom: 1rem;
}

.section-title-wrapper::before,
.section-title-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #8E1751, #BD3A77);
    border-radius: 2px;
    transform: translateY(-50%);
}

.section-title-wrapper::before {
    left: -100px;
}

.section-title-wrapper::after {
    right: -100px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #8E1751;
    margin: 0;
    text-shadow: 0 2px 4px rgba(142,23,81,0.1);
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* بطاقة التحقق */
.verify-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(142,23,81,0.1);
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    border-top: 5px solid #8E1751;
    transition: all 0.3s ease;
}

.verify-card:hover {
    box-shadow: 0 15px 50px rgba(142,23,81,0.15);
    transform: translateY(-5px);
}

.verify-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #8E1751, #BD3A77);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(142,23,81,0.3);
    animation: float 3s ease-in-out infinite;
}

.verify-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.verify-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #8E1751;
    text-align: center;
    margin-bottom: 1rem;
}

.verify-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 2rem;
}

/* نموذج التحقق */
.verify-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.input-group-text {
    background: linear-gradient(135deg, #8E1751, #BD3A77);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: transparent;
    transition: all 0.3s ease;
    text-align: right;
    flex: 1;
    min-width: 0;
}

.form-control:focus {
    background: white;
    box-shadow: none;
    outline: none;
}

.form-control::placeholder {
    color: #666;
    opacity: 0.8;
}

.btn-primary {
    background: linear-gradient(135deg, #8E1751, #BD3A77);
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    margin: 0;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5D0F35, #8E1751);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(142,23,81,0.4);
    color: white;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(142,23,81,0.25);
    color: white;
}

.btn-primary i {
    font-size: 1rem;
}

/* معلومات إضافية */
.verify-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(142,23,81,0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.info-item i {
    color: #8E1751;
    font-size: 1rem;
}

/* نتيجة التحقق */
.certificate-result {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border-top: 5px solid #28a745;
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

.result-icon i {
    font-size: 2rem;
    color: white;
}

.result-header h4 {
    color: #28a745;
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.result-status {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* تفاصيل الشهادة */
.certificate-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.detail-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.detail-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.detail-item label {
    display: block;
    color: #8E1751;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.certificate-number {
    background: linear-gradient(135deg, #8E1751, #BD3A77);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* أزرار الإجراءات */
.result-actions {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-primary {
    border: 2px solid #8E1751;
    color: #8E1751;
    background: transparent;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #8E1751;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142,23,81,0.3);
}

/* إحصائيات التحقق */
.verify-stats {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    color: #333;
    margin-top: 2rem;
    border: 2px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: #f8f9fa;
    box-shadow: 0 8px 25px rgba(142,23,81,0.1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8E1751, #BD3A77);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(142,23,81,0.1);
    box-shadow: 0 8px 20px rgba(142,23,81,0.2);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.15);
    box-shadow: 0 12px 30px rgba(142,23,81,0.3);
    border-color: rgba(142,23,81,0.3);
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

.stat-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #8E1751;
    text-shadow: none;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    color: #333;
    text-shadow: none;
    background: linear-gradient(135deg, #8E1751, #BD3A77);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* التنبيهات */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 5px 15px rgba(238,90,82,0.3);
}

.alert-success {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
    box-shadow: 0 5px 15px rgba(64,192,87,0.3);
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .section-title-wrapper {
        padding: 0 1.5rem;
    }
    
    .section-title-wrapper::before,
    .section-title-wrapper::after {
        width: 40px;
    }
    
    .section-title-wrapper::before {
        left: -50px;
    }
    
    .section-title-wrapper::after {
        right: -50px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .verify-card {
        padding: 2rem 1.5rem;
    }
    
    .verify-icon {
        width: 80px;
        height: 80px;
    }
    
    .verify-icon i {
        font-size: 2rem;
    }
    
    .verify-card h3 {
        font-size: 1.5rem;
    }
    
    .verify-description {
        font-size: 1rem;
    }
    
    .certificate-result {
        padding: 2rem 1rem;
    }
    
    .certificate-details {
        padding: 1.5rem;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .verify-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .info-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .verify-card {
        padding: 1.5rem 1rem;
    }
    
    .verify-icon {
        width: 70px;
        height: 70px;
    }
    
    .verify-icon i {
        font-size: 1.8rem;
    }
    
    .form-control {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
    
    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
    
    .certificate-details {
        padding: 1rem;
    }
    
    .detail-item {
        padding: 0.8rem;
    }
    
    .detail-item label {
        font-size: 0.8rem;
    }
    
    .detail-item span {
        font-size: 1rem;
    }
    
    .verify-stats {
        padding: 2rem 1rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}