:root {
    --blue: #000326;
    --green: #8AF209;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: var(--blue);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

body.dark {
    background-color: var(--blue);
    color: #ffffff;
}

.container {
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* زر تبديل الثيم */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    transition: background-color 0.3s;
    z-index: 1000;
}

.theme-toggle:hover {
    background-color: rgba(138, 242, 9, 0.1);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--green);
}

/* اللوجو */
.logo {
    max-height: 80px;
    margin: 2rem auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* المحتوى الرئيسي */
.content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* روابط السوشيال ميديا */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-link {
    color: var(--green);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--blue);
    transform: translateY(-3px);
    background-color: rgba(138, 242, 9, 0.1);
}

.dark .social-link:hover {
    color: #ffffff;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .social-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .logo {
        max-height: 60px;
    }
}

/* تحريك العناصر */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content > * {
    animation: fadeIn 0.6s ease-out forwards;
}

.content > *:nth-child(1) { animation-delay: 0.1s; }
.content > *:nth-child(2) { animation-delay: 0.2s; }
.content > *:nth-child(3) { animation-delay: 0.3s; }
.content > *:nth-child(4) { animation-delay: 0.4s; }

/* تحسين إمكانية الوصول */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* دعم الطباعة */
@media print {
    .theme-toggle,
    .social-links {
        display: none;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .content {
        page-break-inside: avoid;
    }
}

/* أنماط صفحة سياسة الخصوصية */
.privacy-content {
    text-align: right;
    max-width: 900px;
}

.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--blue);
}

.dark .privacy-section h2 {
    color: var(--green);
}

.privacy-section ul {
    list-style: none;
    padding-right: 1.5rem;
}

.privacy-section ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.privacy-section ul li::before {
    content: "•";
    color: var(--green);
    position: absolute;
    right: -1.5rem;
}

.last-update {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
    color: #666;
}

.dark .last-update {
    border-top-color: rgba(255,255,255,0.1);
    color: #999;
}