/**
 * Al Arabiya Theme Designer - Main Styles
 * Modern Arabic News Website Design
 */

/* ========================================
   GOOGLE FONTS IMPORT
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

/* ========================================
   GLOBAL STYLES
======================================== */
.alarabiya-theme-active {
    font-family: 'Tajawal', 'Cairo', 'Almarai', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
}

.alarabiya-theme-active * {
    box-sizing: border-box;
}

/* ========================================
   HEADER STYLES
======================================== */
.alarabiya-theme-active header,
.alarabiya-theme-active #masthead {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1000;
}

.alarabiya-header-sticky header,
.alarabiya-header-sticky #masthead {
    position: sticky;
    top: 0;
}

/* Top Bar */
.alarabiya-topbar {
    background: linear-gradient(90deg, #c8102e 0%, #a00d25 100%);
    padding: 8px 0;
    color: #fff;
    font-size: 13px;
}

.alarabiya-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.alarabiya-topbar-left,
.alarabiya-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.alarabiya-topbar a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.alarabiya-topbar a:hover {
    opacity: 0.8;
}

/* Main Header */
.alarabiya-main-header {
    padding: 15px 0;
}

.alarabiya-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.alarabiya-logo {
    font-size: 32px;
    font-weight: 800;
    color: #c8102e;
    text-decoration: none;
    letter-spacing: -1px;
}

.alarabiya-logo:hover {
    color: #a00d25;
}

/* Navigation */
.alarabiya-navigation {
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    border-bottom: 3px solid #c8102e;
}

.alarabiya-nav-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    list-style: none;
    gap: 30px;
}

.alarabiya-nav-menu li {
    position: relative;
}

.alarabiya-nav-menu a {
    display: block;
    padding: 15px 5px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.alarabiya-nav-menu a:hover,
.alarabiya-nav-menu .current-menu-item a {
    color: #c8102e;
}

/* ========================================
   BREAKING NEWS BAR
======================================== */
.alarabiya-breaking-news {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
}

.alarabiya-breaking-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.breaking-label {
    background: #c8102e;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.breaking-news-ticker {
    overflow: hidden;
    flex: 1;
}

.breaking-news-ticker ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: ticker 30s linear infinite;
}

.breaking-news-ticker li {
    padding: 0 30px;
    white-space: nowrap;
    font-size: 14px;
}

.breaking-news-ticker a {
    color: #fff;
    text-decoration: none;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   MAIN CONTENT LAYOUT
======================================== */
.alarabiya-theme-active .site-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Modern Grid Layout */
.alarabiya-layout-modern .alarabiya-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Hero Section */
.alarabiya-hero-section {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.alarabiya-hero-main {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alarabiya-hero-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.3s;
}

.alarabiya-hero-main:hover img {
    transform: scale(1.05);
}

.alarabiya-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px;
    color: #fff;
}

.alarabiya-hero-category {
    display: inline-block;
    background: #c8102e;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.alarabiya-hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 10px;
}

.alarabiya-hero-title a {
    color: #fff;
    text-decoration: none;
}

.alarabiya-hero-meta {
    font-size: 13px;
    opacity: 0.9;
}

/* Side Hero Posts */
.alarabiya-hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alarabiya-side-post {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 210px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alarabiya-side-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.alarabiya-side-post:hover img {
    transform: scale(1.05);
}

.alarabiya-side-post .post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 20px;
    color: #fff;
}

.alarabiya-side-post h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.alarabiya-side-post h3 a {
    color: #fff;
    text-decoration: none;
}

/* ========================================
   POST CARDS
======================================== */
.alarabiya-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.alarabiya-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.alarabiya-post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.alarabiya-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.alarabiya-post-card:hover .alarabiya-post-thumbnail img {
    transform: scale(1.1);
}

.alarabiya-post-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c8102e;
    color: #fff;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 2;
}

.alarabiya-post-body {
    padding: 20px;
}

.alarabiya-post-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.alarabiya-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.alarabiya-post-title a:hover {
    color: #c8102e;
}

.alarabiya-post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px;
}

.alarabiya-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.alarabiya-post-meta i {
    margin-right: 5px;
}

/* ========================================
   SIDEBAR
======================================== */
.alarabiya-sidebar {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.alarabiya-widget-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c8102e;
}

.alarabiya-trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alarabiya-trending-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.alarabiya-trending-item:last-child {
    border-bottom: none;
}

.alarabiya-trending-number {
    font-size: 24px;
    font-weight: 800;
    color: #c8102e;
    line-height: 1;
    flex-shrink: 0;
}

.alarabiya-trending-content h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.alarabiya-trending-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
}

.alarabiya-trending-content h4 a:hover {
    color: #c8102e;
}

.alarabiya-trending-meta {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* ========================================
   FOOTER
======================================== */
.alarabiya-theme-active footer,
.alarabiya-theme-active .site-footer {
    background: #1a1a1a;
    color: #999;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.alarabiya-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.alarabiya-footer-widget h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.alarabiya-footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alarabiya-footer-widget li {
    margin-bottom: 8px;
}

.alarabiya-footer-widget a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.alarabiya-footer-widget a:hover {
    color: #c8102e;
}

.alarabiya-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 992px) {
    .alarabiya-hero-section {
        grid-template-columns: 1fr;
    }
    
    .alarabiya-hero-side {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .alarabiya-side-post {
        min-width: 300px;
    }
    
    .alarabiya-nav-menu {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .alarabiya-layout-modern .alarabiya-content-grid {
        grid-template-columns: 1fr;
    }
    
    .alarabiya-hero-main img {
        height: 300px;
    }
    
    .alarabiya-hero-title {
        font-size: 20px;
    }
    
    .alarabiya-topbar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .alarabiya-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .alarabiya-nav-menu {
        justify-content: center;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.alarabiya-section-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 40px 0 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c8102e;
}

.alarabiya-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #c8102e;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background 0.3s;
}

.alarabiya-btn:hover {
    background: #a00d25;
    color: #fff;
}

.alarabiya-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #c8102e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}
