/* ===== CSS مصمم للهواتف أولاً - موقع المستقبل السياسي ===== */
/* Mobile-First CSS Design - Future Political Website */

/* Reset & Base - إعادة تعيين أساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ألوان أساسية */
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #ff6b35;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --text-primary: #fff;
    --text-secondary: #b0b0b0;
    --border-color: #333;
    
    /* تدرجات لونية */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    
    /* ظلال */
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* أحجام للهواتف */
    --header-height: 70px;
    --container-padding: 15px;
    --border-radius: 15px;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
}

/* الخطوط الأساسية */
body {
    font-family: 'Cairo', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* الحاوية الرئيسية */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== Header - مصمم للهواتف ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 var(--container-padding);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo - مصمم للهواتف */
.logo-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compass-logo {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    cursor: pointer;
    touch-action: manipulation;
}

.compass-outer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 188, 255, 0.3);
    animation: compassGlow 3s ease-in-out infinite alternate;
    position: relative;
}

.compass-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 15px;
    background: var(--accent-color);
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
}

.compass-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.logo-text .tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* زر القائمة المحمولة */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* القائمة المحمولة */
.nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px var(--container-padding);
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.nav.show {
    display: flex;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* ===== Hero Section - مصمم للهواتف ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 20px) 0 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.future-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.politics-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    padding: 0 10px;
}

/* أزرار Hero - مصممة للهواتف */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    min-height: 50px;
    width: 100%;
    max-width: 280px;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, #0099cc 0%, #00d4ff 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.btn-secondary:hover,
.btn-secondary:active {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

/* ===== About Section - مصمم للهواتف ===== */
.about {
    padding: 60px 0;
    background: var(--darker-bg);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Articles Section - مصمم للهواتف ===== */
.articles {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.article-card:hover,
.article-card:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-color);
}

.article-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.reading-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.article-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-preview {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.btn-preview:hover,
.btn-preview:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* ===== Footer - مصمم للهواتف ===== */
.footer {
    background: var(--darker-bg);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ===== النافذة المنبثقة - تصميم جديد ومبسط ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

.modal {
    background: var(--card-bg);
    border-radius: 20px;
    width: 95vw;
    max-width: 700px;
    max-height: 90vh;
    margin: 5vh auto;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

.modal-header {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--card-bg) 100%);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn-share, .btn-print, .modal-close {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
    font-weight: bold;
}

.btn-share:hover, .btn-share:active,
.btn-print:hover, .btn-print:active,
.modal-close:hover, .modal-close:active {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.btn-print {
    background: var(--gradient-secondary);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.btn-print:hover, .btn-print:active {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.modal-close {
    background: var(--gradient-secondary);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.modal-close:hover, .modal-close:active {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.modal-content {
    padding: 2rem;
    max-height: 75vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.02);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* ===== محتوى المقال في النافذة المنبثقة ===== */
.article-full-view {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.article-full-view .article-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.article-full-view .category {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.2);
}

.article-full-view .reading-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-full-view .article-content {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-align: justify;
}

.article-full-view .article-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.article-full-view .author {
    color: var(--primary-color);
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.article-full-view .date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.article-full-view .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.article-full-view .tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.article-full-view .tag:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.15);
}

/* ===== تصميم ملخص المقال - تصميم مبسط ===== */
.article-summary-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.article-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.article-summary-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.article-summary-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.article-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.article-summary-meta span {
    background: rgba(255, 107, 53, 0.15);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.article-summary-meta span:hover {
    background: rgba(255, 107, 53, 0.25);
    transform: translateY(-1px);
}

.article-summary-content {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
    text-align: justify;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin-bottom: 1.2rem;
}

.article-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.article-summary-tags .tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.article-summary-tags .tag:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.15);
}

/* ===== أزرار المقال - تصميم مبسط ===== */
.article-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.article-actions .btn {
    width: 100%;
    max-width: none;
    padding: 10px 18px;
    font-size: 0.9rem;
    min-height: 42px;
    border-radius: 12px;
}

/* ===== الإشعارات - تصميم مبسط ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--card-bg), var(--darker-bg));
    color: var(--text-primary);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 3000;
    transform: translateY(-100px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}

.notification.show {
    transform: translateY(0);
}

.notification i {
    font-size: 1.1rem;
}

.notification-success {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.25);
}

.notification-info {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.25);
}

.notification i.fa-check-circle {
    color: var(--primary-color);
}

.notification i.fa-info-circle {
    color: var(--accent-color);
}

/* ===== الرسوم المتحركة ===== */
@keyframes modalFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes modalSlideIn {
    0% { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.9); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes compassGlow {
    0% { box-shadow: 0 0 15px rgba(0, 188, 255, 0.3); }
    100% { box-shadow: 0 0 25px rgba(0, 188, 255, 0.6); }
}

/* ===== مؤشر التحميل ===== */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== تحسينات للشاشات المتوسطة ===== */
@media (min-width: 768px) {
    :root {
        --container-padding: 20px;
        --border-radius: 20px;
        --font-size-base: 18px;
    }
    
    .container {
        max-width: 750px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        width: auto;
        max-width: 200px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    
    .modal {
        width: 80vw;
        max-width: 600px;
    }
    
    .modal-actions {
        gap: 1rem;
    }
    
    .btn-share, .btn-print {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .modal-summary {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .modal-summary h4 {
        font-size: 1.1rem;
    }
    
    .modal-summary p {
        font-size: 0.95rem;
        padding: 1.2rem;
    }
    
    .article-summary-card {
        padding: 1.5rem;
    }
    
    .article-summary-title {
        font-size: 1.3rem;
    }
    
    .article-summary-content {
        font-size: 1rem;
        padding: 1.5rem;
    }
    
    .notification {
        right: 20px;
        left: auto;
        min-width: 300px;
    }
}

/* ===== تحسينات للشاشات الكبيرة ===== */
@media (min-width: 1024px) {
    :root {
        --container-padding: 30px;
        --border-radius: 25px;
        --font-size-base: 20px;
    }
    
    .container {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .about-content {
        flex-direction: row;
        text-align: left;
        gap: 4rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .modal {
        width: 70vw;
        max-width: 800px;
    }
    
    .modal-actions {
        gap: 1.2rem;
    }
    
    .btn-share, .btn-print {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .modal-summary {
        margin: 2rem;
        padding: 2.5rem;
    }
    
    .modal-summary h4 {
        font-size: 1.3rem;
    }
    
    .modal-summary p {
        font-size: 1.05rem;
        padding: 2rem;
    }
    
    .article-summary-card {
        padding: 2.5rem;
    }
    
    .article-summary-title {
        font-size: 1.7rem;
    }
    
    .article-summary-content {
        font-size: 1.15rem;
        padding: 2.5rem;
    }
}

/* ===== تحسينات للأداء ===== */
* {
    will-change: auto;
}

.btn, .article-card, .nav-link {
    will-change: transform;
}

.compass-outer {
    will-change: box-shadow;
}

/* ===== تحسينات للمس ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.95);
    }
    
    .article-card:active {
        transform: scale(0.98);
    }
    
    .nav-link:active {
        transform: scale(0.95);
    }
}

/* ===== تحسينات للوصول ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .compass-outer {
        animation: none;
    }
}

/* ===== تحسينات إضافية للتصميم ===== */

/* تحسين أزرار المقالات */
.article-card {
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

/* تحسين الأزرار */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* تحسين القائمة المحمولة */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

/* تحسين الإحصائيات */
.stat {
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.stat:hover::before {
    opacity: 0.1;
}

/* تحسين العلامات */
.tag {
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.tag:hover::before {
    left: 0;
}

/* تحسين النافذة المنبثقة */
.modal {
    position: relative;
    overflow: hidden;
}

.modal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* تحسين أزرار النافذة المنبثقة */
.btn-share, .btn-print, .modal-close {
    position: relative;
    overflow: hidden;
}

.btn-share::before, .btn-print::before, .modal-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-share:hover::before, .btn-print:hover::before, .modal-close:hover::before {
    width: 100%;
    height: 100%;
}

/* تحسين التمرير */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* تحسين الإشعارات */
.notification {
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    animation: notificationProgress 3s linear;
}

@keyframes notificationProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* تحسين الأزرار في النافذة المنبثقة */
.modal-footer-actions .btn {
    position: relative;
    overflow: hidden;
    background: var(--gradient-secondary);
    border: none;
    color: var(--text-primary);
}

.modal-footer-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* تحسين حالة التحميل */
.loading-spinner {
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .modal {
        width: 98vw;
        margin: 1vh auto;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .btn-share, .btn-print, .modal-close {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
}

/* تحسينات للشاشات المتوسطة */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal {
        width: 85vw;
        max-width: 600px;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1025px) {
    .modal {
        width: 70vw;
        max-width: 800px;
    }
    
    .modal-header {
        padding: 2rem;
    }
    
    .modal-content {
        padding: 2.5rem;
    }
}
