/* Powered by Women - Unified Theme */
/* استخراج من index.html وتطبيقه على جميع صفحات المشروع */

:root {
    --primary: #6A3CA8;         /* رئيسي الآن ليلكي */
    --primary-light: #8f6ad8;   /* ليلكي فاتح */
    --primary-dark: #502a82;    /* ليلكي داكن */
    --secondary: #F5F5F5;       /* رمادي فاتح للخلفيات */
    --accent: #FFD166;          /* برتقالي مصفر للتأكيد */
    --accent-light: #FFE8B6;    /* برتقالي مصفر فاتح */
    --text-main: #2D2D2D;       /* نص داكن */
    --text-muted: #6D6D6D;      /* نص متوسط */
    --text-light: #9D9D9D;      /* نص فاتح */
    --white: #FFFFFF;           /* أبيض */
    --border-soft: rgba(106, 60, 168, 0.12); /* حدود ليلكيه خفيفة */
    --brand-lilac-light: #8f6ad8;
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --brand-lilac: #6A3CA8; /* ليلكي */
    --brand-lilac-light: #8f6ad8;
    --brand-orange: #FF6B35; /* برتقالي */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: linear-gradient(to bottom,
        rgba(106,60,168,0.14) 0%,
        rgba(106,60,168,0.08) 25%,
        rgba(106,60,168,0.02) 45%,
        rgba(255,158,74,0.02) 55%,
        rgba(255,158,74,0.08) 80%,
        rgba(255,158,74,0.14) 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

@media (min-width: 992px) {
    .page-wrapper {
        padding: 30px 20px 60px;
    }
}

/* Header & Language Switch */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-soft);
    gap: 20px;
    flex-wrap: wrap;
}

.top-left,
.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-left .partners-section,
.top-right .partners-section {
    margin-bottom: 0;
    display: flex;
    gap: 14px;
    align-items: center;
}

.lang-switch {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,245,245,0.9));
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(106, 60, 168, 0.12);
    white-space: nowrap;
    height: 50px;
    padding: 4px;
    border: 1px solid rgba(106, 60, 168, 0.1);
}

.lang-btn {
    padding: 12px 28px;
    border: none;
    background: transparent;
    font-size: 15px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    white-space: nowrap;
    border-radius: 50px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn::before {
    content: '🌐';
    font-size: 16px;
    transition: var(--transition);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--brand-lilac), var(--brand-lilac-light));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(106, 60, 168, 0.25);
    transform: scale(1.02);
}

.lang-btn.active::before {
    content: '✓';
}

.lang-btn:hover:not(.active) {
    background: rgba(106, 60, 168, 0.08);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Partner Logos */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 50px;
    transition: var(--transition);
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.partner-logo img {
    max-height: 50px;
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.partner-logo:hover img {
    transform: scale(1.05);
}

.partner-logo-norway img {
    max-height: 35px;
    height: 35px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-lilac), var(--brand-lilac-light));
    color: var(--white);
    box-shadow: 0 5px 15px rgba(106, 60, 168, 0.18);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(106, 60, 168, 0.28);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(106, 60, 168, 0.06);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-main);
    border: 1px solid var(--border-soft);
}

.btn-secondary:hover {
    background: rgba(106, 60, 168, 0.08);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--border-soft);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 60, 168, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.form-control.error {
    border-color: #e74c3c;
}

/* Success Messages */
.success-message {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.1), rgba(39, 174, 96, 0.05));
    border-left: 4px solid #2ecc71;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    color: #27ae60;
    margin-bottom: 20px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.alert-info {
    background: linear-gradient(135deg, rgba(106, 60, 168, 0.1), rgba(143, 106, 216, 0.05));
    border-left: 4px solid var(--primary);
    color: var(--primary-dark);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 232, 182, 0.1));
    border-left: 4px solid var(--accent);
    color: #9a7b0a;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-soft);
}

.table th {
    background: linear-gradient(135deg, rgba(106, 60, 168, 0.08), rgba(143, 106, 216, 0.04));
    font-weight: 700;
    color: var(--primary);
}

.table tbody tr:hover {
    background: rgba(106, 60, 168, 0.03);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* Loading Spinner */
.spinner {
    border: 3px solid var(--secondary);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 15px;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
}
