/* أنماط CSS متكاملة ومتجاوبة للمجلة */
:root {
    --deep-blue: #0f2a47;
    --royal-blue: #1e4a76;
    --sky-blue: #3a7bc8;
    --gold: #d4af37;
    --light-gold: #e6c76c;
    --charcoal: #2c3e50;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --accent: #e74c3c;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
    color: var(--charcoal);
    line-height: 1.7;
    direction: rtl;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* الحاوية الرئيسية - تستخدم العرض الكامل */
.modern-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* الهيدر - عرض كامل */
.geometric-header {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--royal-blue) 100%);
    color: var(--white);
    padding: 2.5rem 1rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.geometric-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 25%);
    background-size: 30% 30%, 40% 40%;
    background-repeat: no-repeat;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.journal-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.logo-container {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}

.logo-container i {
    font-size: 2.5rem;
    color: var(--gold);
}

.journal-titles {
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.journal-main-title {
    font-family: 'El Messiri', 'Tajawal', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--gold), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.journal-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 300;
}

.journal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.meta-item i {
    color: var(--gold);
}

.journal-issn {
    background: rgba(0, 0, 0, 0.25);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: monospace;
    letter-spacing: 1px;
    border-right: 4px solid var(--gold);
    font-size: 0.9rem;
}

/* التنقل - عرض كامل */
.modern-nav {
    background: var(--royal-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links li {
    margin: 0;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.nav-links a {
    display: block;
    padding: 1rem 0.8rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sky-blue) 0%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: -1;
}

.nav-links a:hover::before {
    transform: translateX(0);
}

/* المحتوى الرئيسي - عرض كامل */
.modern-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

.main-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.main-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--sky-blue) 100%);
    color: var(--white);
    padding: 1.5rem;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--light-gold));
}

.card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.card-header h2 i {
    margin-left: 10px;
    color: var(--gold);
}

.card-body {
    padding: 2rem;
}

.journal-description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
    text-align: justify;
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
}

.features-list li {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    margin-left: 12px;
    color: var(--gold);
    font-size: 1.1rem;
}

.themes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.theme-item {
    background: var(--light-gray);
    padding: 1.3rem;
    border-radius: 10px;
    transition: all 0.3s;
    border-right: 4px solid var(--sky-blue);
}

.theme-item:hover {
    background: var(--royal-blue);
    color: var(--white);
    transform: translateY(-5px);
}

.theme-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.theme-item h3 i {
    margin-left: 8px;
    color: var(--gold);
}

.quality-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
    justify-content: center;
}

.quality-badge {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--sky-blue) 100%);
    color: var(--white);
    padding: 0.9rem 1.3rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.quality-badge:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quality-badge i {
    font-size: 1.2rem;
    color: var(--gold);
}

/* الفوتر - عرض كامل */
.modern-footer {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--royal-blue) 100%);
    color: var(--white);
    margin-top: 3rem;
    width: 100%;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.7rem;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
}

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

.footer-links li {
    margin-bottom: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links a i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.footer-links a:hover i {
    transform: translateX(-3px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: right;
}

.contact-item i {
    margin-left: 10px;
    color: var(--gold);
    margin-top: 3px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
    color: white;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-5px) rotate(10deg);
}

.copyright {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    width: 100%;
}

/* وسائط الاستعلام للتجاوب مع جميع الأجهزة */

/* للأجهزة اللوحية (768px فما فوق) */
@media (min-width: 768px) {
    .geometric-header {
        padding: 3rem 1.5rem;
    }
    
    .journal-main-title {
        font-size: 2.5rem;
    }
    
    .journal-subtitle {
        font-size: 1.2rem;
    }
    
    .meta-item {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    
    .nav-links a {
        padding: 1.1rem 1rem;
        font-size: 1rem;
    }
    
    .modern-main {
        padding: 3.5rem 1.5rem;
    }
    
    .content-grid {
        gap: 2.5rem;
    }
    
    .card-header {
        padding: 1.8rem;
    }
    
    .card-header h2 {
        font-size: 1.6rem;
    }
    
    .card-body {
        padding: 2.2rem;
    }
    
    .themes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 3.5rem 1.5rem 2.5rem;
    }
    
    .footer-section {
        text-align: right;
    }
    
    .footer-links a {
        justify-content: flex-start;
    }
    
    .contact-item {
        justify-content: flex-start;
    }
    
    .social-links {
        justify-content: flex-start;
    }
}

/* لأجهزة الكمبيوتر (992px فما فوق) */
@media (min-width: 992px) {
    .geometric-header {
        padding: 3.5rem 2rem;
    }
    
    .header-content {
        padding: 0 2rem;
    }
    
    .journal-brand {
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .logo-container {
        width: 120px;
        height: 120px;
    }
    
    .logo-container i {
        font-size: 3rem;
    }
    
    .journal-main-title {
        font-size: 2.8rem;
    }
    
    .nav-container {
        padding: 0 2rem;
    }
    
    .nav-links a {
        padding: 1.2rem 1.5rem;
    }
    
    .modern-main {
        padding: 4rem 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .themes-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        padding: 4rem 2rem 3rem;
    }
}

/* للشاشات الكبيرة جداً (1200px فما فوق) */
@media (min-width: 1200px) {
    .journal-main-title {
        font-size: 3rem;
    }
    
    .journal-subtitle {
        font-size: 1.3rem;
    }
}

/* تحسينات للشاشات الصغيرة جداً (أقل من 480px) */
@media (max-width: 480px) {
    .geometric-header {
        padding: 2rem 0.8rem;
    }
    
    .journal-main-title {
        font-size: 1.8rem;
    }
    
    .journal-subtitle {
        font-size: 1rem;
    }
    
    .journal-meta {
        gap: 0.8rem;
    }
    
    .meta-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .journal-issn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .nav-links li {
        min-width: 100px;
    }
    
    .nav-links a {
        padding: 0.9rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .modern-main {
        padding: 2.5rem 0.8rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .journal-description {
        font-size: 1rem;
    }
    
    .theme-item {
        padding: 1rem;
    }
    
    .theme-item h3 {
        font-size: 1rem;
    }
    
    .quality-badge {
        min-width: 100%;
        padding: 0.8rem 1rem;
    }
    
    .footer-content {
        padding: 2.5rem 0.8rem 2rem;
        gap: 2rem;
    }
    
    .copyright {
        padding: 1.2rem;
        font-size: 0.85rem;
    }
}

/* تحسينات خاصة للطباعة */
@media print {
    .modern-nav, .social-links {
        display: none;
    }
    
    .geometric-header {
        background: white !important;
        color: black !important;
    }
    
    .journal-main-title {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
    }
}