

/* ========================================
   إعدادات الألوان الرئيسية
   عدّل هذه القيم لتغيير ألوان الموقع
   ======================================== */
:root {
    --primary-color: #14B8A6;
    --secondary-color: #22D3EE;
    --yellow-cta: #FDE047;
    --dark-color: #1E293B;
    --text-color: #334155;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
}

/* ========================================
   الأنماط الأساسية
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   شريط التنقل
   ======================================== */
.navbar {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-signin {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-signin:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   قسم البطل
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 50px;
    color: white;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    color: white;
    margin-bottom: 10px;
}

.hero h1 span {
    color: var(--yellow-cta);
}

.hero p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 8px;
    display: flex;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    border-radius: 10px;
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #0D9488;
}

/* ========================================
   الأقسام
   ======================================== */
.section {
    padding: 60px 0;
}

.bg-light {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.section-title span {
    color: var(--primary-color);
}

/* ========================================
   بطاقات التحديثات
   ======================================== */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.update-card {
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.update-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.15);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.update-name {
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.verified-icon {
    color: var(--primary-color);
}

.update-date {
    font-size: 12px;
    color: #94A3B8;
}

.update-text {
    color: var(--text-color);
}

.update-text a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ========================================
   بطاقات الشخصيات
   ======================================== */
.persons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    max-width: 100%;
}

.person-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    transition: all 0.3s;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.person-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.15);
}

.person-image {
    position: relative;
    margin-bottom: 6px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    margin-right: auto;
}

.person-image img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.person-verified {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 7px;
    box-shadow: 0 1px 3px rgba(20, 184, 166, 0.4);
}

.person-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-wrap: nowrap;
}

.person-title {
    font-size: 9px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   بطاقات المؤسسات
   ======================================== */
.orgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.org-card {
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s;
    display: block;
}

.org-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.org-logo {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-color);
}

.org-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
}

/* ========================================
   بطاقات التصنيفات
   ======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.category-card {
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    color: white;
    transition: transform 0.3s;
    display: block;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.category-name {
    font-weight: 600;
    font-size: 14px;
}

/* ========================================
   شريط CTA
   ======================================== */
.cta-banner {
    background: var(--yellow-cta);
    padding: 25px 0;
    text-align: center;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-text {
    font-size: 18px;
    color: var(--dark-color);
}

.cta-text span {
    color: #0D9488;
    font-weight: 600;
}

.btn-cta {
    background: var(--dark-color);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}

.btn-cta:hover {
    background: #0F172A;
}

/* ========================================
   الفوتر
   ======================================== 
   
 */  
 .footer {
    background: linear-gradient(180deg, #0d1b2a 0%, #1b3a5a 100%);
    color: #fff;

 
    color: white;
    padding: 60px 0 30px;
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo .logo-text {
    color: white;
}

.footer-desc {
    color: #94A3B8;
    font-size: 14px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
    font-size: 18px;
}

.social-link:hover {
    background: var(--primary-color);
}

.contact-info {
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94A3B8;
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-item a {
    color: #94A3B8;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    color: #94A3B8;
    font-size: 14px;
}

.footer-links a {
    color: #94A3B8;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    color: #94A3B8;
    font-size: 14px;
}

/* ========================================
   أزرار
   ======================================== */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #0D9488;
}

.btn-danger {
    background: #EF4444;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-danger:hover {
    background: #DC2626;
}

/* ========================================
   مساعدات
   ======================================== */
.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(20, 184, 166, 0.4);
    transition: background 0.3s;
}

.scroll-top:hover {
    background: #0D9488;
}

/* ========================================
   رسائل التنبيه
   ======================================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ========================================
   النماذج
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   الجداول
   ======================================== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--dark-color);
}

.table tr:hover {
    background: var(--light-bg);
}

/* ========================================
   التجاوب
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .section-title {
        font-size: 24px;
    }

    .cta-content {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* بطاقات الشخصيات - بطاقتين في كل صف للجوال */
    .persons-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .person-card {
        padding: 8px !important;
    }
    
    .person-image {
        width: 35px !important;
        height: 35px !important;
        margin-bottom: 5px !important;
    }
    
    .person-image img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .person-name {
        font-size: 10px !important;
    }
    
    .person-title {
        font-size: 8px !important;
    }
    
    .person-verified {
        width: 12px !important;
        height: 12px !important;
        font-size: 6px !important;
    }
    
    .verified-badge-inline {
        width: 12px !important;
        height: 12px !important;
    }
}


/* ========================================
   أزرار التنقل الجديدة
   ======================================== */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary-nav {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary-nav:hover {
    background: #0D9488;
}

.btn-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 15px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-profile:hover {
    background: #E2E8F0;
}

/* ========================================
   أزرار البطل
   ======================================== */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid white;
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ========================================
   عنوان القسم الفرعي
   ======================================== */
.section-subtitle {
    text-align: center;
    color: #64748B;
    margin-top: -30px;
    margin-bottom: 40px;
}

/* ========================================
   حالة فارغة
   ======================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: #64748B;
    max-width: 400px;
    margin: 0 auto;
}

/* ========================================
   التجاوب للأزرار الجديدة
   ======================================== */
@media (max-width: 768px) {
    .nav-buttons {
        gap: 8px;
    }
    
    .btn-primary-nav {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
