/*
Theme Name: Shahid Ayan News
Theme URI: https://shahidayan.com
Author: Manus AI
Author URI: https://manus.im
Description: قالب إخباري عربي احترافي وأنيق مستوحى من كبرى القنوات الإخبارية، متوافق مع كافة الأجهزة وقابل للتخصيص بالكامل.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shahid-ayan
Domain Path: /languages
Tags: news, magazine, rtl, responsive, custom-logo, custom-menu
*/

/* الأساسيات */
:root {
    --primary-color: #c00; /* لون أحمر إخباري */
    --secondary-color: #333;
    --text-color: #222;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #eee;
}

* {
    box-sizing: border-box;
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.top-bar {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons a {
    margin-left: 15px;
    font-size: 16px;
    color: #ccc;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.search-box .search-form {
    display: flex;
    align-items: center;
    background: #333;
    padding: 2px 10px;
    border-radius: 20px;
}

.search-box input[type="search"] {
    background: transparent;
    border: none;
    color: #fff;
    padding: 5px;
    outline: none;
}

.search-submit {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
}

.main-header {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link img {
    max-height: 70px;
    width: auto;
    margin-left: 15px;
}

.site-title {
    font-size: 28px;
    margin: 0;
    font-weight: 800;
    color: var(--secondary-color);
}

.site-description {
    font-size: 14px;
    color: #777;
    margin: 0;
}

/* Navigation */
.main-navigation ul {
    display: flex;
}

.main-navigation li {
    margin-right: 25px;
}

.main-navigation a {
    font-weight: 600;
    font-size: 16px;
    color: var(--secondary-color);
    padding: 10px 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

.main-navigation a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Breaking News */
.breaking-news-bar {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
}

.breaking-news-bar .container {
    display: flex;
    align-items: center;
}

.breaking-label {
    background: #fff;
    color: var(--primary-color);
    padding: 3px 12px;
    font-weight: bold;
    margin-left: 20px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.breaking-news-ticker ul {
    display: flex;
    animation: ticker 30s linear infinite;
}

.breaking-news-ticker li {
    white-space: nowrap;
    margin-left: 40px;
    font-weight: 500;
}

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

/* Content Layout */
.content-area {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

#primary {
    flex: 3;
}

#secondary {
    flex: 1;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.5s;
}

.news-item:hover .post-thumbnail img {
    transform: scale(1.1);
}

.entry-content-wrapper {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.entry-title {
    font-size: 20px;
    margin: 0 0 12px;
    line-height: 1.4;
}

.entry-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.entry-meta i {
    margin-left: 5px;
}

.entry-summary {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.read-more {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

/* Single Post */
.single-post-content {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.single-post-content .entry-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.single-post-content .post-thumbnail {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

/* Sidebar Widgets */
.widget {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #eee;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.site-info {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-top: 40px;
    font-size: 14px;
}

.site-info strong {
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    background: var(--white);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination .current {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .content-area {
        flex-direction: column;
    }
    #secondary {
        order: 2;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }
    .site-branding {
        flex-direction: column;
        margin-bottom: 20px;
    }
    .custom-logo-link img {
        margin-left: 0;
        margin-bottom: 10px;
    }
    .main-navigation {
        width: 100%;
    }
    .main-navigation ul {
        flex-direction: column;
        display: none;
        background: #f9f9f9;
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .main-navigation a {
        display: block;
        padding: 12px 0;
    }
    .menu-toggle {
        display: block;
        margin: 0 auto;
    }
    .main-navigation.toggled ul {
        display: flex;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
}
