/* public/css/app.css */
/* Header Styles */

/* Global Arabic font setting */
[lang="ar"] {
    font-family: 'Tajawal', 'Raleway', sans-serif;
}

[lang="ar"] * {
    font-family: inherit;
}

.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Tajawal', 'Raleway', sans-serif !important;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2D5B7A;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.back-to-home {
    color: #2D5B7A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-home:hover {
    color: #86c0e0;
}

/* Page Content Styles */
body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    background: #F8F9FA;
    color: #2D5B7A;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2D5B7A;
    margin-bottom: 10px;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: #7099af;
}

.info-section {
    margin-bottom: 40px;
}

.info-section h2 {
    color: #2D5B7A;
    border-bottom: 2px solid #86c0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.steps, .help-options, .work-types, .benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.step, .option, .work-type, .benefit {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #2D5B7A;
}

.step h3, .option h3, .work-type h3, .benefit h3 {
    color: #2D5B7A;
    margin-top: 0;
}

.cta-section {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.cta-button {
    background: #2D5B7A;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-family: 'Tajawal', 'Raleway', sans-serif !important;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #1a3a52;
}

.small-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 20px;
}

a {
    color: #2D5B7A;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer Styles */
.footer {
    background: #2D5B7A;
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
    position: relative;
    z-index: 1000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    font-family: 'Tajawal', 'Raleway', sans-serif !important;

}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #86c0e0;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: #c6c7c8;
}

/* ==================== */
/* ARABIC LANGUAGE SUPPORT */
/* ==================== */

/* Arabic font for all text when language is Arabic */
.page-container[dir="rtl"] .body,
.page-container[dir="rtl"] .headline,
.page-container[dir="rtl"] .subtitle,
.page-container[dir="rtl"] .page-header h1,
.page-container[dir="rtl"] .page-header .subtitle,
.page-container[dir="rtl"] .info-section h2,
.page-container[dir="rtl"] .info-section p,
.page-container[dir="rtl"] .step h3,
.page-container[dir="rtl"] .step p,
.page-container[dir="rtl"] .cta-section h2,
.page-container[dir="rtl"] .cta-section p,
.page-container[dir="rtl"] .copyright,
.page-container[dir="rtl"] .cta-button,
.page-container[dir="rtl"] .small-text,
.page-container[dir="rtl"] .nav-container {
    font-family: 'Tajawal', 'Raleway', sans-serif !important;
}

/* RTL (Right-to-Left) support for Arabic */
.page-container[dir="rtl"] 

/* Adjustments for RTL layout */
.page-container[dir="rtl"] .step {
    border-left: none;
    border-right: 4px solid #2D5B7A;
    text-align: right;
}

.page-container[dir="rtl"] .nav-container {
    direction: ltr; /* Keep navigation LTR for logo alignment */
}

.page-container[dir="rtl"] .steps,
.page-container[dir="rtl"] .help-options,
.page-container[dir="rtl"] .work-types,
.page-container[dir="rtl"] .benefits {
    direction: ltr; /* Keep grid layout LTR */
}

/* RTL text alignment for content */
.page-container[dir="rtl"] .page-container,
.page-container[dir="rtl"] .info-section,
.page-container[dir="rtl"] .cta-section {
    text-align: right;
    font-family: Tajawal;
}

/* Ensure social icons remain properly aligned */
.page-container[dir="rtl"] .social-links {
    direction: ltr;
}

/* Mobile adjustments for Arabic */
@media (max-width: 768px) {
    .page-container[dir="rtl"] .step h3,
    .page-container[dir="rtl"] .step p {
        font-size: 0.9rem;
    }
    
    .page-container[dir="rtl"] .page-header h1 {
        font-size: 2rem;
    }
    
    .page-container[dir="rtl"] .page-header .subtitle {
        font-size: 1rem;
    }
}

/* ==================== */
/* RTL (Right-to-Left) SUPPORT - UPDATED */
/* ==================== */

/* Arabic font for ALL text elements when direction is RTL */
.page-container[dir="rtl"] {
    font-family: 'Tajawal', 'Raleway', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Specific adjustments for RTL layout */
.page-container[dir="rtl"] .step {
    border-left: none;
    border-right: 4px solid #2D5B7A;
}

/* Keep these elements LTR for proper alignment */
.page-container[dir="rtl"] .nav-container,
.page-container[dir="rtl"] .steps,
.page-container[dir="rtl"] .help-options,
.page-container[dir="rtl"] .work-types,
.page-container[dir="rtl"] .benefits,
.page-container[dir="rtl"] .social-links {
    direction: ltr;
    text-align: center; /* Keep centered alignment */
    font-family: 'Tajawal', 'Raleway', sans-serif;

}

/* Ensure buttons and form elements use the Arabic font */
.page-container[dir="rtl"] .cta-button,
.page-container[dir="rtl"] button,
.page-container[dir="rtl"] input,
.page-container[dir="rtl"] textarea,
.page-container[dir="rtl"] select {
    font-family: 'Tajawal', 'Raleway', sans-serif !important;
}

/* Mobile adjustments for RTL */
@media (max-width: 768px) {
    .page-container[dir="rtl"] .step h3,
    .page-container[dir="rtl"] .step p {
        font-size: 0.9rem;
    }
    
    .page-container[dir="rtl"] .page-header h1 {
        font-size: 2rem;
    }
    
    .page-container[dir="rtl"] .page-header .subtitle {
        font-size: 1rem;
    }
}

/* Footer Styles - Works for both LTR and RTL */
.footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    color: #2D5B7A;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #3A7CA5;
}

.copyright {
    color: #6c757d;
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
}

/* RTL specific adjustments */
[dir="rtl"] .footer-content {
    /* No special changes needed if using flexbox center alignment */
}

[dir="ltr"] .footer-content {
    /* No special changes needed if using flexbox center alignment */
}

/* ============================================================================= */
/* GLOBAL NOTIFICATION BADGE SYSTEM */
/* ============================================================================= */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #e53e3e;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-align: center;
    line-height: 1;
    border: 2px solid white;
}

.notification-badge::after {
    content: attr(data-count);
}

.notification-badge.large {
    width: 28px;
    height: 28px;
    font-size: 14px;
    top: -10px;
    right: -10px;
}

.notification-badge.small {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: -6px;
    right: -6px;
}

/* Different colors for different notification types */
.notification-badge.urgent { background: #e53e3e; }
.notification-badge.warning { background: #ed8936; }
.notification-badge.info { background: #4299e1; }
.notification-badge.success { background: #48bb78; }

/* Ensure parent elements have proper positioning */
.notification-button {
    position: relative !important;
    display: inline-block !important;
}

