/*
Theme Name: AI Newsroom Theme
Theme URI: https://ai-newsroom.cloud
Author: AI Newsroom
Author URI: https://ai-newsroom.cloud
Description: ثيم مخصص لمدونة AI Newsroom يتناسب مع هوية الموقع الرئيسي
Version: 1.0
Text Domain: ai-newsroom
*/

/* استيراد الخط العربي */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;600;700;900&display=swap');

/* الإعدادات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Arabic', sans-serif;
    background-color: #020617;
    color: #e2e8f0;
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* الحاوي الرئيسي */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* الهيدر */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #4f46e5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: -0.025em;
    color: white;
    text-transform: uppercase;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.main-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #818cf8;
}

/* المحتوى الرئيسي */
.site-main {
    padding-top: 160px;
    padding-bottom: 4rem;
    min-height: 100vh;
}

/* عنوان الصفحة */
.page-header {
    margin-bottom: 4rem;
    text-align: right;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: #4f46e5;
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
    margin-bottom: 1.5rem;
}

.page-description {
    font-size: 1.25rem;
    color: #94a3b8;
    font-style: italic;
}

/* شبكة المقالات */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* بطاقة المقال */
.post-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: rgba(79, 70, 229, 0.4);
    transform: translateY(-4px);
}

.post-thumbnail {
    aspect-ratio: 16/9;
    background: #1e293b;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-date {
    color: #818cf8;
    font-size: 0.625rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.post-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #818cf8;
}

.post-excerpt {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    color: white;
    font-weight: bold;
    border-bottom: 2px solid #4f46e5;
    width: fit-content;
    padding-bottom: 0.25rem;
    font-style: italic;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more:hover {
    color: #818cf8;
    border-color: #818cf8;
}

/* صفحة المقال المفرد */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.single-post .post-header {
    margin-bottom: 3rem;
}

.single-post .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .post-meta {
    display: flex;
    gap: 1.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.single-post .post-thumbnail {
    border-radius: 24px;
    margin-bottom: 3rem;
}

.post-body {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #cbd5e1;
}

.post-body h2 {
    color: white;
    font-size: 1.875rem;
    font-weight: bold;
    margin: 2.5rem 0 1.5rem;
}

.post-body h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2rem 0 1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body a {
    color: #818cf8;
    text-decoration: underline;
}

.post-body a:hover {
    color: #a5b4fc;
}

.post-body ul, .post-body ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
}

.post-body blockquote {
    border-right: 4px solid #4f46e5;
    padding: 1.5rem;
    margin: 2rem 0;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    font-style: italic;
}

/* التذييل */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0f172a;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    color: #64748b;
    font-size: 0.75rem;
    font-style: italic;
    font-weight: bold;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: #4f46e5;
    color: white;
}

.pagination .current {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .single-post .post-title {
        font-size: 1.875rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .site-main {
        padding-top: 120px;
    }
}