/* توزيع تقليدي للفوتر باستخدام فليكس */
/* توزيع أقسام الفوتر في سطر واحد مع توزيع متساوٍ */
.footer .footer-content, .footer .footer-main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 2rem;
}
.footer .footer-brand,
.footer .footer-section,
.footer .footer-links,
.footer .footer-social {
    flex: 1 1 0;
    min-width: 0;
    text-align: right;
}
.footer .footer-brand {
    max-width: 260px;
}
@media (max-width: 1100px) {
    .footer .footer-content, .footer .footer-main {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .footer .footer-brand,
    .footer .footer-section,
    .footer .footer-links,
    .footer .footer-social {
        text-align: center;
        margin-bottom: 2rem;
        margin-right: 0;
        margin-left: 0;
    }
}
@media (max-width: 700px) {
    .footer .footer-content, .footer .footer-main {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .footer .footer-brand,
    .footer .footer-section,
    .footer .footer-links,
    .footer .footer-social {
        text-align: center;
        margin-bottom: 1rem;
    }
}
@media (max-width: 1100px) {
    .footer .footer-content, .footer .footer-main {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    .footer .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
        margin-right: 0;
        margin-left: 0;
    }
}
@media (max-width: 700px) {
    .footer .footer-content, .footer .footer-main {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .footer .footer-brand {
        text-align: center;
        margin-bottom: 1rem;
    }
}
/* تحسين عرض الشعار والنص في الفوتر ليكونا أفقيين */
.footer .footer-brand .brand-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer .footer-brand .brand-text {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        justify-content: flex-start;
        white-space: nowrap;
}
@media (max-width: 600px) {
    .footer .footer-brand .brand-text {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }
}
@media (max-width: 600px) {
    .footer .footer-brand .brand-identity {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .footer .footer-brand .brand-text {
        align-items: flex-start;
    }
}
/* 
=============================================================================
Kuwait KYC Platform - Shared Styles
=============================================================================
ملف الأنماط المشتركة لمنصة KYC الكويت
يحتوي على جميع الأنماط المستخدمة في عدة صفحات لتجنب التكرار
تم تحديث الملف لإزالة التكرار من جميع ملفات HTML
=============================================================================
*/

/* =============================================================================
   Language Switcher Styles - أنماط مبدل اللغة المحسن
   Used in: index.html, 404.html, help.html, blog.html, etc.
   ============================================================================= */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

/* مبدل اللغة الدائري - بحجم الصورة تماماً */
.language-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    padding: 0;
    margin: 0;
    outline: none;
}

.language-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.language-toggle:focus {
    outline: none;
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3);
}

.language-toggle:active {
    transform: scale(0.95);
}

/* أيقونة العلم الدائرية - صور حقيقية بحجم الإطار بالكامل */
.language-toggle .flag-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    margin: 0;
    padding: 0;
}

/* أعلام محددة */
.language-toggle .flag-icon.flag-kuwait {
    background-image: url('../img/kuwait-flag-round-circle-icon.png');
}

.language-toggle .flag-icon.flag-uk {
    background-image: url('../img/uk-flag-round-circle-icon.png');
}

/* نص اللغة مخفي */
.language-toggle .lang-name {
    display: none;
}

/* أيقونة السهم مخفية */
.language-toggle .toggle-arrow {
    display: none;
}

/* إزالة أي تأثيرات حركية */

/* الأنماط القديمة للتوافق مع الصفحات الأخرى */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    border-radius: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: #ffffff;
    color: #003366;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-btn.active:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.lang-btn i {
    font-size: 14px;
}

.lang-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* =============================================================================
   Animation Styles - أنماط الحركة والانتقالات
   ============================================================================= */

/* Animation for language switching */
.lang-switching {
    animation: langSwitch 0.5s ease-in-out;
}

@keyframes langSwitch {
    0% { opacity: 1; }
    50% { opacity: 0.7; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* Spinning loader animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Slide in animation */
@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Fade up animation */
@keyframes fadeUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* =============================================================================
   Loading and Feedback Styles - أنماط التحميل والتغذية الراجعة
   ============================================================================= */

.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.success-feedback {
    background-color: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.error-feedback {
    background-color: #ef4444;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.warning-feedback {
    background-color: #f59e0b;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    animation: slideIn 0.3s ease-out;
}

/* =============================================================================
   Accessibility Improvements - تحسينات إمكانية الوصول
   ============================================================================= */

/* Focus styles */
*:focus {
    outline: 2px solid #003366;
    outline-offset: 2px;
}

.btn:focus,
.nav-link:focus,
.login-btn:focus,
.lang-btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.3);
}

/* High contrast button styles */
.btn.btn-primary {
    background-color: #003366;
    border-color: #003366;
    color: #ffffff;
    font-weight: 600;
}

.btn.btn-primary:hover {
    background-color: #002244;
    border-color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.btn.btn-secondary {
    background-color: transparent;
    border-color: #003366;
    color: #003366;
    font-weight: 600;
}

.btn.btn-secondary:hover {
    background-color: #003366;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

/* =============================================================================
   Navigation Styles - أنماط التنقل المشتركة
   ============================================================================= */

/* White theme for navigation */
.main-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   Responsive Design - التصميم المتجاوب
   ============================================================================= */

/* Tablet styles */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 10px;
        padding: 2px;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .lang-text {
        font-size: 10px;
    }
    
    .lang-btn i {
        font-size: 12px;
    }
    
    .success-feedback,
    .error-feedback,
    .warning-feedback {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* تأكيد إظهار زر الهمبرجر */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 3px;
        padding: 8px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
        position: relative;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: #003366;
        transition: all 0.3s ease;
        transform-origin: center;
        display: block;
        border-radius: 2px;
    }
    
    /* تحسين النافبار للجوال */
    .main-nav {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .language-switcher {
        margin-left: 5px;
        padding: 2px;
        gap: 2px;
    }
    
    .lang-btn {
        padding: 4px 6px;
        font-size: 10px;
        gap: 2px;
    }
    
    .lang-text {
        font-size: 9px;
    }
    
    .lang-btn i {
        font-size: 11px;
    }
    
    .loading::after {
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
    }
    
    .success-feedback,
    .error-feedback,
    .warning-feedback {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 6px;
    }
}

/* =============================================================================
   Utility Classes - فئات مساعدة
   ============================================================================= */

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Display utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }

/* Spacing utilities */
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* =============================================================================
   RTL Support - دعم الكتابة من اليمين لليسار
   ============================================================================= */

[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 15px;
}

[dir="rtl"] .lang-btn {
    direction: rtl;
}

[dir="ltr"] .language-switcher {
    margin-right: 0;
    margin-left: 15px;
}

[dir="ltr"] .lang-btn {
    direction: ltr;
}

/* =============================================================================
   Print Styles - أنماط الطباعة
   ============================================================================= */

@media print {
    .language-switcher,
    .main-nav,
    .loading,
    .success-feedback,
    .error-feedback,
    .warning-feedback {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
        color: #000;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
}

/* =============================================================================
   Dark Mode Support - دعم الوضع المظلم
   ============================================================================= */

@media (prefers-color-scheme: dark) {
    .lang-btn:not(.active) {
        color: #e5e7eb;
    }
    
    .success-feedback {
        background-color: #059669;
    }
    
    .error-feedback {
        background-color: #dc2626;
    }
    
    .warning-feedback {
        background-color: #d97706;
    }
}

/* =============================================================================
   Back to Top Button - زر العودة للأعلى
   Used in: terms.html, privacy.html, help.html, topics.html, success.html
   ============================================================================= */

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 18px;
    display: none;
}

.back-to-top-btn:hover {
    background: #004080;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

/* =============================================================================
   Security Headers Styles - أنماط رؤوس الأمان
   Common meta tags and security configurations
   ============================================================================= */

.security-notice {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    color: #0c4a6e;
    font-size: 0.9rem;
}

/* =============================================================================
   Common Modal Styles - أنماط النوافذ المنبثقة الشائعة
   Used across multiple pages for modals and overlays
   ============================================================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from { 
        opacity: 0; 
        transform: scale(0.9) translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #003366;
}

/* =============================================================================
   Common Form Styles - أنماط النماذج الشائعة
   ============================================================================= */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #003366;
    font-weight: 600;
}

.help-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* =============================================================================
   Reduced Motion Support - دعم تقليل الحركة
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    .lang-btn,
    .loading,
    .success-feedback,
    .error-feedback,
    .warning-feedback,
    .back-to-top-btn,
    .modal-content {
        animation: none;
        transition: none;
    }
    
    .lang-switching {
        animation: none;
    }
    
    .btn.btn-primary:hover,
    .btn.btn-secondary:hover,
    .back-to-top-btn:hover {
        transform: none;
    }
    
    /* تحسينات مبدل اللغة للجوال */
    .language-toggle {
        height: 28px;
        min-width: 65px;
        padding: 4px 8px;
        gap: 4px;
    }
    
    .language-toggle .flag-icon {
        font-size: 14px;
        width: 16px;
        height: 16px;
    }
    
    .language-toggle .lang-name {
        font-size: 11px;
        min-width: 30px;
    }
    
    .language-toggle .toggle-arrow {
        font-size: 8px;
    }
}

/* =============================================================================
   Responsive Design للزر الدائري - التصميم المتجاوب
   ============================================================================= */

/* أنماط الشاشات المتوسطة */
@media (max-width: 768px) {
    .language-toggle {
        width: 28px;
        height: 28px;
    }
    
    .language-toggle .flag-icon {
        width: 28px;
        height: 28px;
    }
}

/* أنماط الشاشات الصغيرة */
@media (max-width: 480px) {
    .language-toggle {
        width: 26px;
        height: 26px;
    }
    
    .language-toggle .flag-icon {
        width: 26px;
        height: 26px;
    }
}

/* أنماط للشاشات الكبيرة جداً */
@media (min-width: 1200px) {
    .language-toggle {
        width: 36px;
        height: 36px;
    }
    
    .language-toggle .flag-icon {
        width: 36px;
        height: 36px;
    }
}
