/*
Theme Name: Akhbariya Fix
Theme URI: https://akhbariya.com
Author: Akhbariya Team
Description: Clean news theme with AI integration - Emergency fix
Version: 1.0.0
License: GPL v2
Text Domain: akhbariya-fix
*/

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a73e8;
}

.site-logo a {
    color: #1a73e8;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    padding: 5px 0;
}

.main-nav a:hover {
    color: #1a73e8;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.hero-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-content .category {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #202124;
}

.hero-content h1 a {
    color: #202124;
}

.hero-content h1 a:hover {
    color: #1a73e8;
}

.hero-excerpt {
    font-size: 1.125rem;
    color: #5f6368;
    line-height: 1.7;
    margin-bottom: 20px;
}

.hero-meta {
    color: #80868b;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* News Grid */
.news-section {
    padding: 0 0 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.75rem;
    color: #202124;
}

.view-all {
    color: #1a73e8;
    font-weight: 500;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.news-card-image {
    overflow: hidden;
    height: 200px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
}

.news-card .category {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.news-card h3 {
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #202124;
}

.news-card h3 a {
    color: #202124;
}

.news-card h3 a:hover {
    color: #1a73e8;
}

.news-card-meta {
    color: #80868b;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-badge {
    background: #1a73e8;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-card-excerpt {
    color: #5f6368;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-top: 12px;
}

/* Single Post */
.single-header {
    background: #fff;
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px;
}

.single-header .category {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.single-header h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto 20px;
    color: #202124;
}

.single-meta {
    color: #80868b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.single-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.125rem;
    line-height: 1.8;
}

.single-content p {
    margin-bottom: 20px;
}

.single-content h2,
.single-content h3 {
    margin: 30px 0 15px;
    color: #202124;
}

.single-content img {
    border-radius: 8px;
    margin: 20px 0;
}

/* Footer */
.site-footer {
    background: #202124;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.site-footer p {
    color: #9aa0a6;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-article {
        grid-template-columns: 1fr;
    }
    
    .hero-image img {
        height: 250px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .single-header h1 {
        font-size: 1.75rem;
    }
    
    .single-content {
        padding: 25px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }