﻿/* Global Styles */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

.logo-text {
    font-family: 'Cairo', sans-serif;
}


body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    overflow-x: hidden; /* تعطيل التحرك الأفقي */
}

.container, .container-fluid {
    max-width: 100vw; /* الحد الأقصى للعرض داخل الشاشة */
    overflow-x: hidden; /* منع التحرك الأفقي داخل الحاويات */
}


img, iframe, .row, .col {
    max-width: 100%; /* ضبط الحد الأقصى لعرض الصور والفيديوهات */
    overflow-x: hidden; /* منع تجاوز الحدود الأفقية */
    box-sizing: border-box; /* ضمان حساب المساحة بشكل صحيح */
} 


/* Header Styles */
.mobile-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;

}

.mobile-logo {
    width: 80px; /* صغر حجم اللوغو */
    height: auto;
}

/* تنسيق السلة */
.cart-container {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-button {
    background-color: transparent;
    color: black;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .cart-button:hover {
        background-color: #007bff;
        color: #fff;
    }

.cart-icon {
    font-size: 20px;
    color: #007bff;
}

.cart-badge {
    background-color: darkorange;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 50%;
    margin-left: 5px;
    display: inline-block;
    text-align: center;
}


.menu-button button {
    font-size: 18px;
    padding: 5px 10px;
    background-color: darkorange;
    color: black;
    border: none;
    border-radius: 5px;
}

/* Search Bar */
/*.search-bar {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
}

    .search-bar form {
        display: flex;
        gap: 10px;
    }

    .search-bar input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .search-bar button {
        padding: 10px 20px;
        background-color: darkorange;
        color: white;
        border: none;
        border-radius: 5px;
        
    }*/
/* Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* البداية من اليمين */
    width: 75%; /* عرض مناسب للهواتف */
    max-width: 300px; /* أقصى عرض */
    height: auto;
    background-color: #fff;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto; /* تمكين التمرير إذا زاد المحتوى */
}

    .mobile-sidebar.active {
        right: 0; /* فتح الشريط الجانبي */
    }

.close-sidebar {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px; /* إغلاق يظهر على اليسار */
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 50px 0 0; /* توفير مساحة أعلى */
}

    .sidebar-links li {
        margin-bottom: 20px;
        display: flex;
        align-items: center;
    }

    .sidebar-links a {
        text-decoration: none;
        color: #333;
        font-size: 18px;
        padding: 10px;
        display: flex;
        align-items: center;
        gap: 10px; /* مسافة بين النص والرمز */
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        .sidebar-links a i {
            font-size: 20px;
            color: darkorange; /* لون الأيقونة */
        }

        .sidebar-links a:hover {
            background-color: #f0f0f0;
            color: #007bff;
        }

/* Authentication Section */
.auth-section {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

    .auth-section .btn {
        font-size: 16px;
        font-weight: bold;
        display: block;
        background-color:darkorange;
        border:none;
    }

.welcome-message {
    font-size: 18px;
    margin-bottom: 15px;
    color: #007bff;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
    display: none;
}

    .overlay.active {
        display: block;
    }

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

    .overlay.active {
        display: block;
    }

/* Hero Section */
.hero-section {
    background-color: #007bff;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

    .hero-section h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .hero-section p {
        font-size: 16px;
    }


/*.auth-section {
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
}

    .auth-section .welcome-message {
        font-size: 1rem;
        color: #333;
        margin-bottom: 10px;
        text-align: center;
    }

    .auth-section .btn {
        display: block;
        text-align: center;
    }*/


.interactive-phrase {
    margin: 5px 0;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.phrase-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem; /* تكبير الخط ليناسب الهواتف */
    font-weight: 600;
    color: #333; /* لون مريح للعين */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
}



@media (max-width: 768px) {
    .phrase-text {
        font-size: 1.2rem; /* تصغير الخط قليلاً للشاشات الصغيرة */
    }

   
   
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
/*    align-items: flex-start;
*/}

.logo-world {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    text-align: left;
}

.logo-matrix {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    margin: 0;
}



.login-register-prompt {
    font-size: 16px;
    color: #007bff;
    background-color:darkorange;
    font-weight: bold;
    margin-top: 20px;
}

.btn-animated {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    background-color: darkorange; /* اللون الأساسي */
    transition: all 0.3s ease;
    animation: colorChange 3s infinite; /* تطبيق الأنيميشن */
}

    .btn-animated:hover {
        filter: brightness(1.2); /* زيادة السطوع عند التمرير */
    }
@keyframes colorChange {
    0% {
        background-color: darkorange;
    }

    50% {
        background-color: blue;
    }

    100% {
        background-color: darkorange;
    }
}
@media (max-width: 768px) {


    .login-register-prompt .btn-link {
        font-size: 17px;
        font-weight: bold;
        
    }
}


@media (max-width: 768px) {
    .logo-world {
        font-size: 16px; /* حجم النص الرئيسي */
    }

    .logo-matrix {
        font-size: 14px; /* حجم النص الثانوي */
    }
}

@media (max-width: 480px) {
    .logo-world {
        font-size: 14px; /* حجم النص الرئيسي للهواتف الصغيرة */
    }

    .logo-matrix {
        font-size: 12px; /* حجم النص الثانوي للهواتف الصغيرة */
    }
}



.search-bar {
    width: 100%;
    background-color: #f9f9f9;
    padding: 10px;
    transition: opacity 0.3s ease-in-out;
}

    .search-bar.hidden {
        display: none; /* إخفاء العنصر بالكامل بدون ترك فراغ */
    }


    .search-bar button {
        background-color: darkorange; /* لون برتقالي غامق */
        border-color: #b84300; /* لون الحدود */
        color: white; /* لون النص */
        font-weight: bold;
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }

        .search-bar button:hover {
            background-color: #b84300; /* لون أغمق عند التمرير */
            border-color: #962d00;
        }

