/* ملف CSS منفصل لسياسة الخصوصية - تطبيق هبة */

:root {
    /* ألوان هبة الأساسية */
    --habah-blue: #4c8bf5;
    --habah-blue-light: #7BA7F7;
    --habah-blue-dark: #2E5BDA;
    --habah-light-blue: #EAF6FF;
    --habah-dark: #222B45;
    --habah-grey: #7B8FA1;
    --habah-light-grey: #E4E9F2;
    --habah-white: #FFFFFF;
    
    /* ألوان إضافية */
    --success-color: #00D4AA;
    --error-color: #FF5630;
    --warning-color: #FFAB00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--habah-light-blue) 0%, var(--habah-white) 100%);
    color: var(--habah-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --habah-white: #2D2D2D;
        --habah-light-blue: #1A1F25;
        --habah-dark: #E8E8E8;
        --habah-light-grey: #404040;
    }
}

/* Header styling */
.header {
    background: linear-gradient(135deg, var(--habah-blue) 0%, var(--habah-blue-dark) 100%);
    color: var(--habah-white);
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(76, 139, 245, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Content cards */
.content {
    background: var(--habah-white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 60px rgba(34, 43, 69, 0.1),
        0 8px 20px rgba(34, 43, 69, 0.05);
    margin-bottom: 2rem;
    border: 1px solid rgba(76, 139, 245, 0.1);
    transition: all 0.3s ease;
}

.content:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 70px rgba(34, 43, 69, 0.15),
        0 10px 25px rgba(34, 43, 69, 0.08);
}

/* Typography */
h2 {
    color: var(--habah-blue);
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem 0;
    padding: 1rem 0;
    border-bottom: 3px solid var(--habah-light-blue);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--habah-blue);
    border-radius: 3px;
}

h3 {
    color: var(--habah-dark);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: var(--habah-dark);
    font-weight: 400;
    text-align: justify;
}

/* Enhanced Lists */
ul {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

li {
    margin-bottom: 0.8rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

li:hover {
    background: rgba(76, 139, 245, 0.05);
    border-radius: 8px;
    padding-right: 1rem;
}

li::marker {
    color: var(--habah-blue);
    font-weight: bold;
    font-size: 1.2em;
}

/* Special boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--habah-light-blue) 0%, var(--habah-white) 100%);
    border: 2px solid var(--habah-blue);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--habah-blue-light) 0%, transparent 70%);
    opacity: 0.1;
}

.warning-box {
    background: linear-gradient(135deg, rgba(255, 171, 0, 0.1) 0%, rgba(255, 171, 0, 0.05) 100%);
    border-right: 5px solid var(--warning-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 171, 0, 0.1);
}

.success-box {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(0, 212, 170, 0.05) 100%);
    border-right: 5px solid var(--success-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.1);
}

/* Contact section */
.contact-section {
    background: linear-gradient(135deg, var(--habah-dark) 0%, #1a2332 100%);
    color: var(--habah-white);
    padding: 3rem;
    border-radius: 24px;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 139, 245, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-section h2 {
    color: var(--habah-white);
    border-bottom: 3px solid var(--habah-blue);
    position: relative;
    z-index: 1;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--habah-blue-light);
    margin-bottom: 1rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--habah-blue) 0%, var(--habah-blue-dark) 100%);
    color: var(--habah-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, var(--habah-blue-dark) 0%, var(--habah-blue) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 139, 245, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--habah-blue);
    color: var(--habah-blue);
}

.btn-secondary:hover {
    background: var(--habah-blue);
    color: var(--habah-white);
}


.btn-secondary2 {
    background: transparent;
    border: 2px solid var(--habah-blue-dark);
    color: var(--habah-blue);
}

.btn-secondary2:hover {
    background: var(--habah-blue-dark);
    color: var(--habah-white);
}
/* Footer */
.footer {
    background: linear-gradient(135deg, var(--habah-dark) 0%, #1a2332 100%);
    color: var(--habah-white);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--habah-blue) 0%, var(--habah-blue-light) 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .container {
        padding: 1rem;
    }
    
    h2 {
        font-size: 1.6rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn {
        display: block;
        margin: 0.5rem auto;
        text-align: center;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 2rem 0;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .contact-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
}

/* Print styles */
@media print {
    .header {
        background: var(--habah-blue) !important;
        -webkit-print-color-adjust: exact;
    }
    
    .content {
        box-shadow: none;
        border: 1px solid var(--habah-light-grey);
    }
    
    .contact-section {
        background: var(--habah-dark) !important;
        -webkit-print-color-adjust: exact;
    }
    
    .btn {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --habah-blue: #0066cc;
        --habah-dark: #000000;
        --habah-white: #ffffff;
    }
    
    .content {
        border: 2px solid var(--habah-dark);
    }
    
    h2, h3 {
        text-decoration: underline;
    }
}
