/* ========================================================== */
/* ===   assets/css/style.css (النسخة النهائية الكاملة)   === */
/* ========================================================== */

/* === 1. الجزء الأساسي للموقع === */
:root { --color-black: #0a0a0a; --color-red: #ff4500; --color-orange: #ff8c00; --color-white: #f0f0f0; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Cairo', sans-serif; background-color: var(--color-black); color: var(--color-white); overflow-x: hidden; background-image: radial-gradient(circle at 10% 20%, rgba(255, 69, 0, 0.2), transparent 40%), radial-gradient(circle at 80% 90%, rgba(255, 140, 0, 0.15), transparent 50%); background-attachment: fixed; }
header { position: fixed; top: 0; width: 100%; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 100; background: rgba(10, 10, 10, 0.5); backdrop-filter: blur(10px); animation: fadeInDown 1s ease-out; }
.header-right { display: flex; align-items: center; gap: 15px; }
nav.desktop-nav a { color: var(--color-white); text-decoration: none; margin: 0 10px; font-weight: 700; transition: color 0.3s ease; }
nav.desktop-nav a:hover { color: var(--color-red); }

/* --- ★★★ الكود المفقود لزرار تسجيل الدخول ★★★ --- */
.login-btn { background-color: transparent; border: 2px solid var(--color-orange); color: var(--color-white); padding: 8px 20px; border-radius: 50px; font-weight: 700; cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: background-color 0.3s, color 0.3s; white-space: nowrap; }
.login-btn:hover { background-color: var(--color-orange); color: var(--color-black); }

.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 120px 20px 20px; }
.hero h1 { font-size: 4.2rem; font-weight: 900; margin-bottom: 20px; line-height: 1.3; background: linear-gradient(45deg, var(--color-orange), var(--color-red)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: fadeInUp 1s ease-out 0.5s both; }
.hero p { font-size: 1.2rem; max-width: 600px; margin-bottom: 40px; animation: fadeInUp 1s ease-out 0.8s both; }
.hero-buttons { display: flex; gap: 20px; animation: fadeInUp 1s ease-out 1.1s both; }
.cta-button { background: linear-gradient(45deg, var(--color-orange), var(--color-red)); color: var(--color-white); padding: 15px 35px; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: 700; cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 10px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cta-button:hover { transform: scale(1.05); box-shadow: 0 0 25px var(--color-red); }
.cta-button.secondary { background: transparent; border: 2px solid var(--color-red); }
.mobile-nav { position: fixed; top: 0; right: 0; width: 100%; height: 100%; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(15px); z-index: 200; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.mobile-nav.active { transform: translateX(0); }
.close-menu-icon { position: absolute; top: 25px; left: 5%; font-size: 2.2rem; color: var(--color-white); cursor: pointer; }
.mobile-nav a { color: var(--color-white); text-decoration: none; font-size: 1.7rem; font-weight: 700; margin: 15px 0; display: flex; align-items: center; gap: 15px; padding: 10px 20px; }
.mobile-nav .mobile-login-btn { border: 2px solid var(--color-orange); padding: 12px 25px; border-radius: 50px; font-size: 1.2rem; margin-top: 30px; }
.footer { background-color: #050505; padding: 80px 5% 0; margin-top: 100px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-col h4 { font-size: 1.5rem; font-weight: 700; margin-bottom: 25px; position: relative; color: var(--color-orange); }
.footer-col p { color: #afafaf; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li a { color: #afafaf; text-decoration: none; display: block; margin-bottom: 12px; transition: color 0.3s, transform 0.3s; }
.footer-col ul li a:hover { color: var(--color-red); transform: translateX(-5px); }
.social-links a { display: inline-block; height: 40px; width: 40px; background: rgba(255, 255, 255, 0.1); margin: 0 10px 10px 0; text-align: center; line-height: 40px; border-radius: 50%; color: var(--color-white); font-size: 1.2rem; transition: background 0.3s, transform 0.3s; }
.social-links a:hover { background: var(--color-red); transform: translateY(-5px); }
.footer-bottom { text-align: center; padding: 25px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #afafaf; }

/* === 2. أكواد الأنيميشن والتعديلات الجديدة === */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatAnimation { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* --- تعديلات الهيدر بالشكل الجديد --- */
.logo-wrapper { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.header-logo { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--color-orange); object-fit: cover; }
.logo-text { display: flex; flex-direction: column; }
.site-name { font-size: 1.5em; font-weight: 900; color: var(--color-orange); line-height: 1.1; }
.site-description { font-size: 0.8em; color: var(--color-white); line-height: 1.1; }

/* --- تنسيق الرابط النشط (الحالي) --- */
nav.desktop-nav a.active { color: var(--color-orange) !important; font-weight: 900; }
.mobile-nav a.active { background-color: rgba(255, 140, 0, 0.1); border-radius: 8px; color: var(--color-orange) !important; }

/* --- اللوجو المتحرك في قسم الهيرو --- */
.hero-logo { width: 80px; margin-bottom: 20px; animation: floatAnimation 4s ease-in-out infinite; }

/* === 3. الجزء الخاص بالمنتجات (عام) === */
.container { width: 90%; margin: 0 auto; }
.products-showcase .category-section { margin-bottom: 50px; }
.category-header { display: inline-flex; align-items: center; background-color: #2ecc71; color: #fff; padding: 5px 10px 5px 15px; font-size: 1.1rem; font-weight: 700; border-radius: 50px; margin-bottom: 20px; }
.category-header .service-count { display: grid; place-items: center; background-color: rgba(255, 255, 255, 0.9); color: #222; border-radius: 50%; width: 24px; height: 24px; font-size: 0.8rem; font-weight: 900; margin-right: 10px; }
.services-scroller { display: flex; overflow-x: auto; padding-bottom: 10px; -ms-overflow-style: none; scrollbar-width: none; }
.services-scroller::-webkit-scrollbar { display: none; }
.product-card { display: block; text-decoration: none; flex: 0 0 150px; margin-left: 15px; background: #1f1f1f; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; overflow: hidden; transition: transform 0.2s ease; text-align: center; }
.product-card:last-child { margin-left: 0; }
.product-card:hover { transform: translateY(-5px); }
.product-card img { width: 100%; height: 100px; object-fit: cover; }
.product-card .card-content { padding: 12px 10px; }
.product-card h3 { font-size: 0.9rem; color: var(--color-white); margin: 0 0 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .price { font-size: 1rem; font-weight: 700; color: #2ecc71; margin: 0; }

/* === 4. الجزء الخاص بصفحة (منتجاتنا) === */
.products-page { padding: 120px 0 50px 0; }
.products-page .page-header { text-align: center; margin-bottom: 40px; }
.products-page .page-header h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 25px; background: linear-gradient(45deg, var(--color-orange), var(--color-red)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 800px; margin: 0 auto; }
.search-container { flex-grow: 1; display: flex; border: 2px solid #333; border-radius: 50px; overflow: hidden; }
.search-container input { width: 100%; border: none; background: #1f1f1f; padding: 12px 20px; color: var(--color-white); font-size: 1rem; font-family: 'Cairo', sans-serif; }
.search-container input:focus { outline: none; background: #2a2a2a; }
.search-container button { border: none; background: var(--color-orange); color: var(--color-white); padding: 0 20px; cursor: pointer; font-size: 1.1rem; }
.category-select-container { position: relative; }
.category-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-color: #222; color: #ccc; border: 2px solid #333; padding: 12px 40px 12px 20px; border-radius: 50px; font-weight: 700; font-size: 1rem; font-family: 'Cairo', sans-serif; cursor: pointer; }
.category-select-container::after { content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; top: 50%; left: 20px; transform: translateY(-50%); color: #888; pointer-events: none; }
.no-results { text-align: center; font-size: 1.5rem; color: #888; padding: 50px 0; }
.products-page .category-section { margin-bottom: 50px; }

/* === 5. الجزء الخاص بصفحات تسجيل الدخول === */
.auth-page { padding: 120px 20px 50px 20px; min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.auth-form-container { width: 100%; max-width: 400px; background: #1f1f1f; padding: 30px; border-radius: 15px; text-align: center; border-top: 5px solid var(--color-orange); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.auth-form-container h2 { font-size: 1.8rem; margin-bottom: 8px; color: var(--color-white); }
.auth-form-container p { color: #aaa; margin-bottom: 25px; }
.auth-form-container .form-group { text-align: right; margin-bottom: 15px; }
.auth-form-container label { display: block; font-weight: 700; margin-bottom: 6px; color: #ccc; font-size: 0.9rem; }
.auth-form-container input { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid #444; background: #2b2b2b; color: #fff; font-size: 1rem; font-family: 'Cairo', sans-serif; }
.auth-form-container .cta-button { width: 100%; justify-content: center; padding: 12px; }
.phone-input-group { display: flex; direction: ltr; border: 1px solid #444; border-radius: 8px; overflow: hidden; }
.phone-input-group:focus-within { border-color: var(--color-orange); }
.phone-input-group select { -webkit-appearance: none; -moz-appearance: none; appearance: none; border: none; background: #3a3a3a; color: #fff; padding: 0 10px; font-weight: 700; }
.phone-input-group input { border: none !important; border-radius: 0 !important; }
.password-wrapper { position: relative; }
.password-toggle-icon { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #888; cursor: pointer; z-index: 2; }
.auth-switch { margin-top: 30px; color: #aaa; }
.auth-switch a { color: var(--color-orange); font-weight: 700; text-decoration: none; }
.error-messages { background-color: rgba(255, 69, 0, 0.2); border: 1px solid var(--color-red); color: var(--color-white); padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.error-messages p { margin: 0; color: var(--color-white); }

/* === 6. الجزء الخاص بتجربة المستخدم بعد تسجيل الدخول === */
.user-menu-container { position: relative; }
.user-menu-button { display: flex; align-items: center; gap: 8px; background: #2a2a2a; border: 1px solid #444; color: var(--color-white); padding: 8px 15px; border-radius: 50px; font-weight: 700; cursor: pointer; font-family: 'Cairo', sans-serif; }
.user-menu-button i { color: var(--color-orange); }
.user-menu-button .dropdown-arrow { font-size: 0.8rem; transition: transform 0.3s; }
.user-menu-button:hover { background-color: #333; }
.dropdown-menu { position: absolute; top: calc(100% + 10px); left: 0; background-color: #1f1f1f; border: 1px solid #333; border-radius: 10px; width: 220px; padding: 10px; z-index: 110; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; }
.dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; text-decoration: none; color: #ccc; padding: 10px 15px; border-radius: 6px; transition: background-color 0.2s, color 0.2s; }
.dropdown-menu a:hover { background-color: var(--color-orange); color: #fff; }
.dropdown-menu hr { border: none; border-top: 1px solid #333; margin: 8px 0; }
.mobile-balance { background-color: rgba(255, 140, 0, 0.2); border: 1px solid var(--color-orange); padding: 6px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin-left: 10px; white-space: nowrap; }
.mobile-user-info { text-align: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #333; }
.mobile-user-info h4 { font-size: 1.5rem; color: var(--color-orange); }

/* === 7. الجزء الخاص بالتوافق مع الشاشات المختلفة (الأهم) === */
@media (min-width: 993px) { /* للكمبيوتر فقط */
    .mobile-header-items { display: none !important; }
}
@media (max-width: 992px) { /* للموبايل والتابلت */
    .desktop-only { display: none !important; }
    .desktop-nav { display: none; }
    .mobile-header-items { display: flex; align-items: center; }
    .mobile-menu-icon { font-size: 1.8rem !important; cursor: pointer; color: var(--color-white); }
    .hero h1 { font-size: 2.8rem; }
    .hero h1 .mobile-break { display: block; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .cta-button { font-size: 1rem; padding: 12px 28px; }
    .footer-container { text-align: center; }
    .social-links { margin-bottom: 20px; }
}
@media (min-width: 768px) {
    .services-scroller { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow-x: hidden; gap: 20px; }
    .product-card { margin-left: 0; }
    .products-page .services-scroller { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
