/*
Theme Name: Elhakem
Theme URI: https://elhakem.me
Author: Muhammad G. Elhakem
Author URI: https://elhakem.me
Description: Strategic Thinking Partner - Premium WordPress theme with Arabic support
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elhakem
Tags: dark-mode, one-column, custom-menu, featured-images, translation-ready, rtl-language-support
*/

/* Import main premium styles */
@import url('assets/css/premium.css');

/* WordPress Core Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* WordPress Alignment Classes */
.aligncenter {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

/* WordPress Gallery */
.gallery {
    display: grid;
    grid-gap: 1rem;
}

.gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* WordPress Navigation Menu */
.wp-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* WordPress Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--color-accent, #C5A880);
    color: #0a0a0a;
    border-color: var(--color-accent, #C5A880);
}

/* ============================================
   ARABIC BLOG CONTENT - خط كايرو
   ============================================ */

/* Arabic content detection and styling */
:lang(ar),
[lang="ar"],
.rtl,
.arabic-content {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Inter', sans-serif !important;
    direction: rtl;
    text-align: right;
}

/* Blog Content - Cairo Font for Arabic */
.single-post-content,
.blog-card-title,
.blog-card-excerpt,
.post-content {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* Arabic Article Styling */
.single-post-content:lang(ar),
.single-post-content.arabic {
    font-family: 'Cairo', sans-serif !important;
    font-size: 1.2rem;
    line-height: 2;
    direction: rtl;
    text-align: right;
}

.single-post-content:lang(ar) h1,
.single-post-content:lang(ar) h2,
.single-post-content:lang(ar) h3,
.single-post-content:lang(ar) h4 {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700;
}

.single-post-content:lang(ar) blockquote {
    border-left: none;
    border-right: 4px solid var(--color-accent, #C5A880);
    padding-right: 2rem;
    padding-left: 1.5rem;
    text-align: right;
}

/* Category Pills */
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-pill:hover {
    background: rgba(197, 168, 128, 0.1);
    border-color: rgba(197, 168, 128, 0.3);
}

.category-pill.active {
    background: var(--color-accent, #C5A880);
    color: #121212;
    border-color: transparent;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Card */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(197, 168, 128, 0.2);
}

/* Single Post Styles */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
}

.single-post-content {
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
}

.single-post-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: #fff;
}

.single-post-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 0.8rem;
    color: #fff;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content blockquote {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--color-accent, #C5A880);
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.single-post-content ul,
.single-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post-content li {
    margin-bottom: 0.75rem;
}

.single-post-content a {
    color: var(--color-accent, #C5A880);
    text-decoration: underline;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

/* ============================================
   IMPROVED HEADER & NAVIGATION
   ============================================ */

/* Premium Navigation */
.premium-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.premium-nav.scrolled {
    padding: 12px 40px;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1002;
}

.nav-logo img {
    height: 45px;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C5A880, #e8d5b7);
    transition: width 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #fff;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* CTA Button in Nav */
.nav-cta {
    padding: 12px 28px !important;
    background: linear-gradient(135deg, #C5A880 0%, #e8d5b7 50%, #C5A880 100%);
    border-radius: 30px;
    color: #0a0a0a !important;
    font-weight: 600 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 30px rgba(197, 168, 128, 0.4) !important;
}

.nav-cta::after {
    display: none !important;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    padding: 0;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    transform-origin: left;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .premium-nav {
        padding: 16px 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        height: 100vh;
        width: 100vw;
        z-index: 1000;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li a {
        font-size: 1.2rem;
        letter-spacing: 0.15em;
    }
}