@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

/* 
 * FiveM Arabic Website - Main Stylesheet
 * RTL Support with Arabic Typography
 */

/* === Base Styles === */
:root {
    
    --primary-color: #4CAF50; 
    --primary-hover: #038578; 
    --primary-dark: #038578; 
    
    --secondary-color: #2196F3; 
    --secondary-dark: #1565C0; 


    --accent-color: #FF5722; 
    --accent-dark: #E64A19; 

    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #038578;
    --discord-color: #5865F2;

    
    --bg-dark: #FFFFFF; /* خلفية فاتحة جداً للموقع والفوتر */
    --bg-card: #FFFFFF; /* خلفية فاتحة للبطاقات */
    --bg-lighter: #F8F8F8; /* فاتح بقليل لبعض العناصر */

    
    --text-color: #333333; /* نص داكن للخلفيات الفاتحة */
    --text-muted: #666666; /* نص داكن أفتح قليلاً */
    --text-color-rgb: 44, 62, 80; /* RGB value of --text-color */
    --bg-dark-rgb: 248, 248, 248; /* RGB value of --bg-dark */
    --border-color: #E0E0E0; /* لون حدود فاتح */

    /* ألوان إضافية مخصصة */
    --green-cyan: #038578; 
    --neon-green: #00C853; 
    --blue-green-mix: #00897B; 

    /* ألوان محايدة */
   --dark-color: #263238; /* لون داكن أصلي للنصوص التي تستخدم هذا المتغير */
    --dark-light: #4A4A4A; /* لون داكن فاتح أصلي */
    --light-color: #EEEEEE; /* لون فاتح أصلي */
    --light-dark: #BBBBBB; /* لون رمادي متوسط أصلي */

    /* الخط */
    --font-main: 'Tajawal', sans-serif;

    /* الحدود والانحناءات */
    --border-radius-sm: 0.25rem;
    --border-radius: 6px;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;

    /* الظلال */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.5);

    /* الانتقالات */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Mode Variables */
html.dark-mode {
    --bg-dark: #121212; /* خلفية داكنة جداً للموقع والفوتر */
    --bg-card: #1E1E1E; /* أغمق قليلاً من الخلفية الرئيسية للبطاقات */
    --bg-lighter: #282828; /* أغمق بقليل لبعض العناصر */

    --text-color: #F8F8F8; /* نص فاتح للخلفيات الداكنة */
    --text-muted: #D0D0D0; /* نص فاتح أغمق قليلاً */
    --text-color-rgb: 248, 248, 248; /* RGB value of --text-color */
    --bg-dark-rgb: 18, 18, 18; /* RGB value of --bg-dark */
    --border-color: rgba(var(--text-color-rgb), 0.1);

    /* ضبط الألوان الأخرى حسب الحاجة للوضع الداكن */
    --primary-color: #64FFDA; 
    --primary-hover: #1DE9B6;
    --primary-dark: #00BFA5;

    --secondary-color: #90CAF9; 
    --secondary-dark: #64B5F6;

    --accent-color: #FFAB91; 
    --accent-dark: #FF8A65;

    --success-color: #A5D6A7;
    --warning-color: #FFEB3B;
    --danger-color: #EF9A9A;
    --info-color: #81D4FA;
    --discord-color: #7986CB;

    --dark-color: #FAFAFA; /* لجعل النصوص التي تستخدم --dark-color فاتحة في الوضع الداكن */
    --dark-light: #C0C0C0;
    --light-color: #212121; /* لجعل العناصر التي تستخدم --light-color داكنة */
    --light-dark: #444444;
    
    /* تعديل ظلال العناصر لتناسب الوضع الداكن */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.5); /* قد تحتاج لتغيير اللون هنا */

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-dark);
    direction: rtl;
    text-align: right;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-dark);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    border: none;
    font-family: var(--font-main);
}

.btn i {
    margin-left: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--dark-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.btn-discord {
    background-color: var(--discord-color);
    color: white;
}

.btn-discord:hover {
    background-color: #4752c4;
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* === Header === */
.site-header {
    background-color: rgba(44, 62, 80, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 36px;
    margin-left: 8px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin: 0 15px;
    position: relative;
}

.main-nav ul li a {
    color: var(--light-color);
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
    padding: 8px 0;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li.active a {
    color: var(--primary-color);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
    transform-origin: right;
}

.main-nav ul li a:hover::after,
.main-nav ul li.active a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 80px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    right: 0;
    width: 100%;
    background-color: var(--dark-color);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu ul li a {
    color: white;
    font-weight: 500;
    display: block;
    padding: 8px 0;
}

.mobile-menu ul li.active a {
    color: var(--primary-color);
}

.mobile-menu .divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.user-dropdown {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: white;
    font-family: var(--font-main);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
}

.user-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-button .username {
    margin-left: 8px;
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 200px;
    display: none;
    z-index: 100;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    transition: background-color var(--transition-speed);
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
}

.dropdown-menu a i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

/* === Alert Messages === */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    text-align: center;
    background-color: var(--bg-card);
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.alert-success {
    background-color: var(--success-color);
    color: var(--dark-color);
    border-color: var(--success-color);
}

.alert-danger {
    background-color: var(--danger-color);
    color: var(--dark-color);
    border-color: var(--danger-color);
}

.alert-info {
    background-color: var(--info-color);
    color: var(--dark-color);
    border-color: var(--info-color);
}

.alert-warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
    border-color: var(--warning-color);
}

/* === Hero Section === */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://scontent.fdmm2-3.fna.fbcdn.net/v/t1.15752-9/504846237_1230546215373245_322648362499785682_n.png?_nc_cat=100&ccb=1-7&_nc_sid=0024fc&_nc_ohc=VzlMJuT4jjEQ7kNvwFFhxiD&_nc_oc=AdklwB-AkGoCyhR62YuTt54ij1Krrk77pwuF85-whTctkMJ9eED5OJ0g8aHO5TVbo_4&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent.fdmm2-3.fna&oh=03_Q7cD2gHHVcqRFxnMIvRdLC9m00DRCT--jK07jefEDBg3mnYwbQ&oe=6870E6ED');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* === Server Stats === */
.server-stats {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    transition: transform var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.stat-details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

/* === Features Section === */
.features {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
    color: var(--dark-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* === CTA Section === */
.cta {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://scontent.fdmm2-3.fna.fbcdn.net/v/t1.15752-9/504846237_1230546215373245_322648362499785682_n.png?_nc_cat=100&ccb=1-7&_nc_sid=0024fc&_nc_ohc=VzlMJuT4jjEQ7kNvwFFhxiD&_nc_oc=AdklwB-AkGoCyhR62YuTt54ij1Krrk77pwuF85-whTctkMJ9eED5OJ0g8aHO5TVbo_4&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent.fdmm2-3.fna&oh=03_Q7cD2gHHVcqRFxnMIvRdLC9m00DRCT--jK07jefEDBg3mnYwbQ&oe=6870E6ED');
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* === Auth Pages === */
.auth-section {
    padding: 80px 0;
}

.auth-container {
    display: flex;
    justify-content: center;
}

.auth-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-large);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-dark);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
    background-color: var(--bg-lighter);
    color: var(--text-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--light-dark);
}

.auth-divider span {
    padding: 0 15px;
    color: var(--dark-light);
}

.social-login {
    margin-bottom: 25px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
}

/* === Profile Page === */
.profile-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 25px;
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
}

.profile-info h1 {
    margin-bottom: 5px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: var(--dark-color);
    margin-left: 10px;
}

.joined-date {
    color: var(--dark-light);
    font-size: 0.875rem;
}

.profile-tabs {
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    list-style: none;
    border-bottom: 1px solid var(--light-dark);
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-weight: 500;
}

.tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.profile-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-bottom: 30px;
}

.profile-card h2 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-dark);
}

.discord-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: var(--border-radius);
}

.stat-item .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

.server-connect {
    margin-top: 30px;
    text-align: center;
}

.server-connect h3 {
    margin-bottom: 15px;
}

.applications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.application-item {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.application-header h3 {
    margin-bottom: 0;
    font-size: 1.125rem;
}

.application-date {
    color: var(--dark-light);
    font-size: 0.875rem;
}

.application-status {
    margin-bottom: 15px;
}

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background-color: var(--warning-color);
    color: white;
}

.status-approved {
    background-color: var(--success-color);
    color: white;
}

.status-rejected {
    background-color: var(--danger-color);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--light-dark);
}

/* === Jobs/Applications === */
.page-header {
    color: rgb(26, 223, 114);
    text-align: center;
    padding: 80px 20px;
    position: relative;
    border-bottom: 3px solid var(--primary-color);
    overflow: hidden;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.page-subtitle {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #ccc;
    text-shadow: 0 1px 3px rgba(80, 77, 77, 0.6);
}


.jobs-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.jobs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.job-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.job-card h2 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.job-description {
    margin-bottom: 25px;
    color: var(--text-muted);
}

.job-card .btn {
    align-self: flex-start;
}

.job-application-form {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: none;
    margin-top: 0;
    display: block;
}

.job-application-form h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-dark);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-dark);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    resize: vertical;
    transition: border-color var(--transition-speed);
    background-color: var(--bg-lighter);
    color: var(--text-color);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* === Rules Page === */
.rules-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.rules-section h3 {
    margin-bottom: 15px;
    color: #df4a4a;
}

.rules-section ol {
    padding-right: 20px;
}

.rules-section li {
    margin-bottom: 10px;
}

/* === Rules Page - Final Styling (matches screenshot) === */
.rules-container {
    background-color: var(--bg-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    direction: rtl;
}

.rule-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    color: var(--text-color);
    transition: 0.3s ease;
}

.rule-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
}

.rule-card-header i {
    color: #ff3c3c;
    font-size: 2rem;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.rule-list li {
    position: relative;
    margin-bottom: 12px;
    padding-right: 25px;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

.rule-list li::before {
    content: "▪";
    position: absolute;
    right: 0;
    top: 5px;
    color: var(--text-color);
    font-size: 1rem;
}

/* دعم القوائم المتداخلة */
.rule-list .rule-list {
    margin-top: 10px;
    margin-bottom: 0;
    padding-right: 20px;
}

/* === Footer === */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-color);
    padding: 20px 0 10px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links h3,
.footer-connect h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link.discord {
    background-color: var(--discord-color);
}

.social-link.twitter {
    background-color: var(--info-color);
}

.social-link.instagram {
    background: linear-gradient(45deg, var(--warning-color), var(--accent-color), var(--danger-color), var(--secondary-color), var(--primary-color));
}

.social-link.youtube {
    background-color: var(--danger-color);
}

.connect-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    color: rgba(var(--text-color-rgb), 0.5);
    font-size: 0.875rem;
}

/* === Animations === */
.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in-out 0.3s;
    animation-fill-mode: both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in-out 0.6s;
    animation-fill-mode: both;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-in-out;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-in-out 0.2s;
    animation-fill-mode: both;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease-in-out 0.4s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive Styles === */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .feature-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 70px;
    }
    
    #darkModeToggle {
        margin-left: 30px;
    }
    
    .mobile-menu {
        top: 70px;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab {
        border-bottom: 1px solid var(--light-dark);
    }
    
    .tab.active {
        border-bottom: 1px solid var(--primary-color);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .auth-card {
        padding: 25px;
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .page-header h1::after {
        width: 60px;
    }
    
    .jobs-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        text-align: center;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .auth-buttons .btn {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Dropdown Styles adjustments */
.main-nav ul li.dropdown {
    /* position: relative; -- Moved to .main-nav ul li */
}

.main-nav ul li.dropdown > a {
    /* Add some spacing to the right for the arrow */
    padding-left: 20px; /* Keep spacing */
    position: relative; /* Needed for absolute positioning of the arrow */
    /* Ensure underline doesn't extend under the arrow */
    /* We'll adjust the general .main-nav ul li a::after rule or override it */
}

.main-nav ul li.dropdown > a::after {
    content: "\f107"; /* Font Awesome chevron-down icon (simpler) */
    font-family: "Font Awesome 6 Free"; /* Use Font Awesome Free */
    font-weight: 900; /* Solid icon weight */
    position: absolute;
    left: 0; /* Position to the left of the text */
    top: 50%; /* Align vertically */
    transform: translateY(-50%); /* Center vertically */
    font-size: 0.7em; /* Slightly smaller size */
    color: rgba(255,255,255,0.6); /* Muted color */
    transition: color 0.2s ease; /* Smooth color transition on hover */
    /* Removed transform transition */
}

.main-nav ul li.dropdown:hover > a::after {
    color: rgba(255,255,255,1); /* Brighter color on hover */
    /* Removed transform rotation */
}

/* Adjust underline for dropdown parents */
.main-nav ul li.dropdown > a::before { /* Using ::before for a different effect, or modify ::after for underline */
   /* Example: Optional - if you want a different indicator instead of the line */
   /* content: ' '; 
   position: absolute;
   bottom: 0;
   right: 20px; 
   height: 2px;
   background-color: var(--primary-color);
   width: calc(100% - 20px); 
   transition: width var(--transition-speed);
   transform-origin: right; */
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
    transform-origin: right;
}

.main-nav ul li a:hover::after,
.main-nav ul li.active a::after {
    width: 100%;
}

/* Override underline for dropdown parents to prevent it going under the arrow */
.main-nav ul li.dropdown > a::after {
    /* ... existing arrow styles ... */
}

/* More specific rule to control underline width on dropdown parent links */
.main-nav ul li.dropdown > a::before {
   content: ' ';
   position: absolute;
   bottom: 0;
   right: 20px;
   height: 2px;
   background-color: var(--primary-color);
   width: 0;
   transition: width var(--transition-speed);
   transform-origin: right;
}

.main-nav ul li.dropdown:hover > a::before,
.main-nav ul li.dropdown.active > a::before {
   width: calc(100% - 20px);
}

.main-nav ul li.dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-light);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 180px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.main-nav ul li.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.main-nav ul li.dropdown .dropdown-menu li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-nav ul li.dropdown .dropdown-menu li:last-child {
    border-bottom: none;
}

.main-nav ul li.dropdown .dropdown-menu li a {
    padding: 10px 15px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav ul li.dropdown .dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.main-nav ul li.dropdown .dropdown-menu li.active a {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

/* Mobile menu adjustments */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

     .mobile-menu ul li.dropdown .dropdown-menu {
        /* In mobile, display block is fine as it's part of a collapsing list */
     }
}

/* === Custom Background Class === */
.dynamic-gradient-background {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://cdn.discordapp.com/attachments/1374111611513737266/1378806033266376764/br_invite.png?ex=68487caf&is=68472b2f&hm=a0c96037264a741cbc63bdfbebbb5aca24905013699439a0c781602235dcaa91&');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cart-icon {
    position: relative;
    color: #333;
    font-size: 1.2em;
}

/* New styles for remember me checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px; /* Adds space between checkbox and text */
    justify-content: flex-end; /* Align content to the right in RTL */
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    flex-shrink: 0; /* Prevent shrinking */
}

/* === Job Application Modal === */
.job-application-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    align-items: center;
    justify-content: center;
}

.job-application-modal .modal-content {
    background-color: var(--bg-card);
    margin: auto;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px; /* Max width for the modal */
    width: 90%; /* Responsive width */
    position: relative;
    animation: animatezoom 0.6s;
}

.job-application-modal .close-button {
    color: var(--text-color);
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.job-application-modal .close-button:hover,
.job-application-modal .close-button:focus {
    color: var(--danger-color);
    text-decoration: none;
    cursor: pointer;
}

/* Animation for modal */
@keyframes animatezoom {
    from {transform: scale(0); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.job-application-form {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: none;
    margin-top: 0;
    display: block;
}

.job-application-form h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-dark);
    color: var(--text-color);
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .job-application-modal .modal-content {
        padding: 20px;
    }
    .job-application-modal .close-button {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }
}


