/* المتغيرات */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #10b981;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --header-bg: #ffffff;
    --header-text: #1e293b;
    --footer-bg: #f1f5f9;
    --footer-text: #334155;
    --bg-gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
}

/* الأساسيات */
body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
}

/* الهيدر */
.nav {
    background: var(--header-bg);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--card-shadow);
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--header-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links .button {
    background: transparent;
    color: var(--header-text);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-links .button:hover {
    background: var(--bg-light);
    color: var(--primary);
    transform: translateY(-2px);
}

/* زر تغيير اللغة */
.lang-switch {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--primary);
}

/* الحاويات */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* البطاقات */
.card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

/* الشبكة */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* الصور */
.image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* العناوين */
h1, h2, h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    color: transparent;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

[dir="rtl"] h2::after {
    right: 0;
    left: auto;
}

/* الأزرار */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: var(--bg-gradient);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

/* النموذج */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.input {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.input {
    min-height: 150px;
    resize: vertical;
}

/* معلومات الاتصال */
.contact-info {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* التذييل */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.footer-credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sot-logo {
    height: 40px;
    object-fit: contain;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

footer a:hover {
    color: var(--primary-dark);
}

footer p {
    color: var(--footer-text);
    margin: 0.5rem 0;
}

/* الأسعار */
.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

/* تحريك العناصر */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }
}

/* تحسينات اللغة */
.en { display: none; }
[lang="en"] .en { display: block; }
[lang="en"] .ar { display: none; }

/* تحسينات RTL/LTR */
[dir="ltr"] .me-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
[dir="ltr"] .me-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="ltr"] .me-3 { margin-right: 1rem !important; margin-left: 0 !important; }
[dir="ltr"] .ms-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="ltr"] .ms-auto { margin-left: auto !important; margin-right: 0 !important; }
