/* Path: css/style.css */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

/* --- المتغيرات العامة (محدثة بألوان الهوية البصرية) --- */
:root {
    /* الألوان الرئيسية */
    --primary-color: #0d9488; /* Teal 600 - قريب للأخضر الأساسي */
    --primary-dark: #115e59; /* Teal 800 */
    --primary-light: #ccfbf1; /* Teal 50 */
    
    /* ألوان ثانوية */
    --accent-orange: #f97316; /* Orange 500 */
    --accent-blue: #3b82f6; /* Blue 500 */
    --accent-pink: #ec4899; /* Pink 500 */
    
    --text-dark: #1e293b; /* Slate 800 */
    --text-muted: #64748b; /* Slate 500 */
    
    /* خلفية احتياطية */
    --bg-gradient: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 50%, #eff6ff 100%);
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif; /* الخط من دليل الهوية */
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;

    /* --- 🛡️ نظام الحماية من النسخ --- */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- الخلفية الثابتة (Fixed Background) --- */
.fixed-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
}
.fixed-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
}

/* --- التأثير الزجاجي (Glassmorphism) --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: all 0.4s ease;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

/* تحسين شكل الحقول والأزرار جوه الزجاج */
.glass-panel input {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.glass-panel input:focus {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2); /* Teal shadow */
}

/* --- Lightbox --- */
#lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
#lightbox.active { opacity: 1; visibility: visible; }
#lightbox img { 
    max-height: 85vh; max-width: 90vw; 
    border-radius: 16px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}

/* --- Animation --- */
.fade-in { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }

@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(40px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.5);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}