/* ====================================
   Flat Modern Design
   تصميم مسطح حديث مستوحى من المواقع الإخبارية العالمية
   BBC, The Guardian, CNN Style
   ==================================== */

:root {
    /* ألوان أساسية - نظيفة ومحددة */
    --primary: #C08B2D;
    --secondary: #B22B2B;
    --dark: #1A1A1A;
    --medium: #4A4A4A;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --border: #E0E0E0;
    
    /* مسافات موحدة */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    
    /* خطوط */
    --font-primary: 'Tajawal', sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --line-height: 1.6;
    
    /* حواف */
    --radius: 4px;
    --radius-lg: 8px;
}

/* ====================================
   RESET & BASE
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--dark);
    background: var(--white);
}

/* ====================================
   TYPOGRAPHY - نظيف وواضح
   ==================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
    margin-bottom: var(--space-sm);
    color: var(--medium);
}

a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

/* ====================================
   CARDS - Flat Design
   ==================================== */

.news-card,
.article-card,
.news-grid-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.news-card:hover,
.article-card:hover,
.news-grid-card:hover {
    border-color: var(--primary);
    transform: none !important;
    box-shadow: none !important;
}

/* إلغاء التأثيرات الزائدة */
.news-card img,
.article-card img,
.news-grid-card img {
    transition: none !important;
    transform: none !important;
}

.news-card:hover img,
.article-card:hover img,
.news-grid-card:hover img {
    transform: none !important;
}

/* ====================================
   SECTIONS - بسيطة ونظيفة
   ==================================== */

.section-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.section-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ====================================
   HEADERS - واضحة ومباشرة
   ==================================== */

.section-header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid var(--primary);
}

.section-header h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin-bottom: 4px !important;
}

.section-header h2::after {
    display: none !important;
}

.section-header p {
    font-size: 14px !important;
    color: var(--medium) !important;
    margin: 0 !important;
}

/* ====================================
   DECORATION - بسيطة ومحددة
   ==================================== */

.title-decoration {
    width: 4px;
    height: 32px;
    background: var(--primary);
    border-radius: 0;
    margin-left: var(--space-sm);
    box-shadow: none !important;
}

.title-decoration::after {
    display: none !important;
}

/* ====================================
   BUTTONS - مسطحة وواضحة
   ==================================== */

.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: none !important;
}

.btn-primary:hover {
    background: #A67524;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary::before {
    display: none !important;
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: none !important;
    box-shadow: none !important;
}

.btn-outline::before {
    display: none !important;
}

/* ====================================
   BADGES - بسيطة وملونة
   ==================================== */

.badge,
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-premium {
    background: var(--primary);
    color: var(--white);
}

.category-badge {
    background: var(--light);
    color: var(--dark);
}

.badge:hover,
.category-badge:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ====================================
   SIDEBAR - نظيف ومرتب
   ==================================== */

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.sidebar-widget:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ====================================
   HERO SECTION - بسيط وأنيق
   ==================================== */

.hero-section {
    background: var(--light) !important;
    padding: var(--space-lg) 0;
}

.hero-section::before {
    display: none !important;
}

/* ====================================
   FEATURED NEWS - تصميم مسطح
   ==================================== */

.featured-news-card,
.featured-news-hero {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.featured-image::after {
    display: none !important;
}

/* ====================================
   FOOTER - نظيف ومنظم
   ==================================== */

footer {
    background: var(--dark) !important;
    border-top: 3px solid var(--primary);
}

footer::before {
    display: none !important;
}

/* ====================================
   NEWSLETTER - بسيط وواضح
   ==================================== */

.newsletter-sidebar {
    background: var(--primary) !important;
    border-radius: var(--radius-lg);
    box-shadow: none !important;
}

.newsletter-sidebar::before {
    display: none !important;
}

/* ====================================
   إلغاء جميع التأثيرات الزائدة
   ==================================== */

/* إلغاء التحويلات الثلاثية الأبعاد */
* {
    transform-style: flat !important;
    perspective: none !important;
}

/* إلغاء الظلال المعقدة */
.shadow-sm,
.shadow-md,
.shadow-lg,
.shadow-elegant,
.shadow-elegant-hover {
    box-shadow: none !important;
}

/* إلغاء تأثيرات الأنيميشن */
.animate-on-scroll,
.animate-fadeInUp,
.animate-fadeInDown,
.animate-scaleIn {
    animation: none !important;
}

/* إلغاء تأثيرات التحويم */
.hover-lift,
.hover-scale,
.hover-shine {
    transform: none !important;
}

.hover-lift:hover,
.hover-scale:hover {
    transform: none !important;
}

/* إلغاء التأثيرات المغناطيسية */
.btn-primary:hover,
.btn-outline:hover {
    transform: none !important;
}

/* إلغاء التموج والتألق */
.ripple-effect::before,
.shine-effect::after,
.hover-shine::after {
    display: none !important;
}

/* إلغاء البطاقات المتداخلة */
.stacked-cards::before,
.stacked-cards::after {
    display: none !important;
}

/* إلغاء التدرجات المتحركة */
.animated-gradient {
    animation: none !important;
}

/* إلغاء تأثير الشخصية */
.glass-card,
.glass-dark {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ====================================
   LAYOUT - Grid System مثل Guardian
   ==================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ====================================
   ARTICLE CONTENT - واضح وقابل للقراءة
   ==================================== */

.article-title,
.news-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--dark) !important;
    margin-bottom: var(--space-xs) !important;
}

.article-title:hover,
.news-title:hover {
    color: var(--primary) !important;
}

.article-excerpt,
.news-excerpt {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--medium) !important;
}

.article-meta,
.news-meta {
    font-size: 13px !important;
    color: #888 !important;
}

/* ====================================
   IMAGES - نظيفة وواضحة
   ==================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.article-image,
.news-image {
    border-radius: var(--radius);
    overflow: hidden;
}

/* ====================================
   SCROLL TO TOP - بسيط ومسطح
   ==================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: none !important;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #A67524;
    transform: none !important;
    box-shadow: none !important;
}

.scroll-to-top .ripple {
    display: none !important;
}

/* ====================================
   PROGRESS INDICATOR - بسيط
   ==================================== */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0;
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: none !important;
}

/* ====================================
   RESPONSIVE - للموبايل
   ==================================== */

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 24px;
        --space-xl: 32px;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section-card {
        padding: var(--space-md);
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 15px;
    }
    
    .section-header h2 {
        font-size: 20px !important;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ====================================
   UTILITIES - مساعدات بسيطة
   ==================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }

.p-sm { padding: var(--space-sm) !important; }
.p-md { padding: var(--space-md) !important; }
.p-lg { padding: var(--space-lg) !important; }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-dark { color: var(--dark) !important; }
.text-medium { color: var(--medium) !important; }

.bg-white { background: var(--white) !important; }
.bg-light { background: var(--light) !important; }
.bg-primary { background: var(--primary) !important; }

.border { border: 1px solid var(--border) !important; }
.border-top { border-top: 1px solid var(--border) !important; }
.border-bottom { border-bottom: 1px solid var(--border) !important; }

.rounded { border-radius: var(--radius) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

/* ====================================
   FINAL OVERRIDES - تأكيد التصميم المسطح
   ==================================== */

/* إلغاء كل الظلال - ماعدا الشريط الإخباري */
*:not(.breaking-news):not(.breaking-news *) {
    box-shadow: none !important;
}

/* إلغاء كل التحويلات ثلاثية الأبعاد - ماعدا الشريط الإخباري */
*:not(.breaking-news-scroll):not(.breaking-news-scroll *) {
    transform: none !important;
}

/* السماح فقط بتغيير الألوان والحدود */
.news-card:hover,
.article-card:hover,
.news-grid-card:hover,
.sidebar-widget:hover,
.section-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* استثناء: السماح بحركة الشريط الإخباري */
.breaking-news-scroll {
    animation: scroll-ltr 600s linear infinite !important;
}

/* إلغاء جميع الأنيميشن */
@keyframes fadeInUp {
    from, to {
        opacity: 1;
        transform: none;
    }
}
@keyframes fadeInDown {
    from, to {
        opacity: 1;
        transform: none;
    }
}
@keyframes scaleIn {
    from, to {
        opacity: 1;
        transform: none;
    }
}
@keyframes slideInRight {
    from, to {
        opacity: 1;
        transform: none;
    }
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
@keyframes spin {
    from, to {
        opacity: 1;
        transform: none;
    }
}
@keyframes skeleton-loading {
    from, to {
        opacity: 1;
        transform: none;
    }
}
@keyframes shine {
    from, to {
        opacity: 1;
        transform: none;
    }
}
@keyframes charReveal {
    from, to {
        opacity: 1;
        transform: none;
    }
}
@keyframes rippleEffect {
    from, to {
        opacity: 1;
        transform: none;
    }
}

/* السماح بحركة الشريط الإخباري فقط */
@keyframes scroll-ltr {
    0% {
        transform: translateX(100%) !important;
    }
    100% {
        transform: translateX(-100%) !important;
    }
}

