
/* ============================================
   تنسيقات features - محدثة لعرض في صف واحد
   ============================================ */

.features {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 20px !important;
    margin-top: 30px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.feature-card {
    flex: 1 1 0 !important;
    min-width: 180px !important;
    max-width: 220px !important;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 40px;
    color: #006633;
    margin-bottom: 15px;
    line-height: 1;
}

.feature-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.feature-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 1024px) {
    .features {
        flex-wrap: wrap !important;
        gap: 15px !important;
    }

    .feature-card {
        flex: 1 1 calc(33.333% - 15px) !important;
        min-width: 160px !important;
        max-width: none !important;
    }
}

@media (max-width: 768px) {
    .features {
        flex-wrap: wrap !important;
        gap: 15px !important;
        padding: 0 10px !important;
    }

    .feature-card {
        flex: 1 1 calc(50% - 15px) !important;
        min-width: 140px !important;
        padding: 15px !important;
    }

    .feature-icon {
        font-size: 32px;
    }

    .feature-title {
        font-size: 16px;
    }

    .feature-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .features {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .feature-card {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 300px !important;
        min-width: auto !important;
    }
}


/* تنسيقات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* شريط التنقل العلوي */
.navbar {
    background-color: #aa0505;
    color: rgb(255, 255, 255);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-left: 10px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
    margin: 0 10px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1;
    top: 100%;
    right: 0;
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #323332;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.auth-buttons {
    display: flex;
}

.auth-btn {
    background-color: #1df028;
    color: #fdfdfd;
    border: none;
    padding: 15px 15px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.auth-btn:hover {
    background-color: #3fb9bd;
}

/* قسم الهيرو */
.hero {
    position: relative;
    height: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #006633 0%, #595c5e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* النوافذ المنبثقة */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-title {
    font-size: 24px;
    color: #006633;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #006633;
    color: white;
}

.btn-primary:hover {
    background-color: #004d26;
}

.btn-secondary {
    background-color: #ddd;
    color: #333;
}

.btn-secondary:hover {
    background-color: #ccc;
}

/* قسم المحتوى الرئيسي */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #006633;
    text-align: center;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}





.feature-card:hover {
    transform: translateY(-5px);
}


/* التذييل */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #d4af37;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #d4af37;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
}

/* صفحة المستخدم بعد تسجيل الدخول */
.user-dashboard {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.dashboard-title {
    font-size: 28px;
    color: #006633;
}

.dashboard-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-feature {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.dashboard-feature:hover {
    background-color: #f9f9f9;
    transform: translateY(-3px);
}

.dashboard-icon {
    font-size: 36px;
    color: #006633;
    margin-bottom: 15px;
}

.search-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-btn {
    background-color: #006633;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.search-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.advanced-search {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.advanced-search-toggle {
    color: #006633;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 10px;
}

.advanced-search-content {
    display: none;
    margin-top: 15px;
}

/* نتائج البحث */
.search-results {
    margin-top: 20px;
}

.martyr-search-result {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.martyr-search-result h4 {
    color: #006633;
    margin-bottom: 10px;
}

.martyr-search-result p {
    margin-bottom: 8px;
    color: #666;
}

.martyr-search-result button {
    background-color: #d4af37;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

/* بطاقة الشهيد */
.martyr-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.martyr-card h3 {
    color: #006633;
    margin-bottom: 15px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 8px;
}

.martyr-card h4 {
    color: #333;
    margin-bottom: 10px;
}

/* القصص */
.story-item {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.story-item h4 {
    color: #006633;
    margin-bottom: 10px;
}

.story-item p {
    color: #666;
    margin-bottom: 8px;
}

.story-item small {
    color: #999;
}

/* الإحصائيات */
.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h4 {
    color: #006633;
    margin-bottom: 15px;
}

.stat-card p {
    margin-bottom: 8px;
    color: #666;
}

/* نمط الإشعارات */
.notification {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    
    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .auth-buttons {
        margin-top: 15px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    
    
    .dashboard-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard-features {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
}
/* إصلاح النوافذ الطويلة */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 100vh; /* تحديد أقصى ارتفاع */
    overflow-y: auto; /* إمكانية التمرير */
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* تأكد من ظهور الأزرار في الأسفل */
.form-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

/* تحسين التمرير */
.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}
/* ============================================
   قسم الهيرو مع خلفية متغيرة - إضافات جديدة
   ============================================ */

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    isolation: isolate;
}

/* خلفية الصور المتغيرة */
.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 150%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: -1;
}

/* محتوى الهيرو */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-size: 64px;
    margin-bottom: 20px;
    color: white;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
    100% { text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 40px rgba(212, 175, 55, 0.6); }
}

.hero-title::before,
.hero-title::after {
    content: '⚔️';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    animation: swordPulse 2s infinite;
}

@keyframes swordPulse {
    0%, 100% { opacity: 0.7; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.hero-title::before {
    right: -70px;
}

.hero-title::after {
    left: -70px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    color: #d4af37;
    font-weight: 300;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* مؤشر الصور */
.image-indicator {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 15px 30px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.indicator-dots {
    display: flex;
    gap: 10px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot:hover {
    background: rgba(212, 175, 55, 0.5);
    transform: scale(1.2);
}

.indicator-dot.active {
    background: #d4af37;
    border-color: #d4af37;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.indicator-text {
    font-size: 18px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.indicator-text span {
    color: #d4af37;
    font-size: 24px;
    font-weight: 700;
}

/* أزرار التحكم */
.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.control-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 20px;
}

.control-btn:hover {
    background: rgba(212, 175, 55, 0.9);
    color: #001a0d;
    transform: scale(1.1);
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.control-btn:active {
    transform: scale(0.95);
}

.pause-btn.playing .btn-icon::before {
    content: '⏸';
}

.pause-btn:not(.playing) .btn-icon::before {
    content: '▶';
}

/* تأثيرات إضافية */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* التأقلم مع الشاشات */
@media (max-width: 1024px) {
    .hero {
        height: 550px;
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .hero-title::before,
    .hero-title::after {
        font-size: 32px;
    }
    
    .hero-title::before {
        right: -50px;
    }
    
    .hero-title::after {
        left: -50px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-title::before,
    .hero-title::after {
        display: none;
    }
    
    .hero-subtitle {
        font-size: 20px;
        padding: 0 15px;
    }
    
    .image-indicator {
        padding: 12px 20px;
        gap: 15px;
    }
    
    .indicator-text {
        font-size: 16px;
    }
    
    .indicator-text span {
        font-size: 20px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 450px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .image-indicator {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .hero-controls {
        bottom: 20px;
        gap: 10px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
