/* ==========================================================================
           LUKUL ATELIER - BLOG POST STYLES (ARABIC RTL EDITION)
           ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Amiri:wght@400;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-dark-grad: linear-gradient(135deg, #011f18 0%, #010d0a 100%);
    --header-dark-grad: linear-gradient(180deg, #0a2e26 0%, #041a15 100%);
    --text-color-dark: #E6E6E6;
    --modal-bg: rgba(1, 18, 14, 0.98);
    --accent-gold: #e6b34a;
    --accent-silk: #c9a0dc;
    --accent-silk-soft: rgba(201, 160, 220, 0.15);
    --tenant-primary-color: var(--accent-gold);
    --tenant-primary-gradient: linear-gradient(135deg, #e6b34a 0%, #b89643 100%);
    --silk-gradient: linear-gradient(135deg, #c9a0dc 0%, #9b7bb0 100%);

    /* ARABIC LUXURY TYPOGRAPHY STACK */
    --font-primary: 'Tajawal', sans-serif;
    --font-heading: 'Amiri', serif;
    --font-data: 'Space Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box !important;
}

html,
body {
    scroll-behavior: smooth !important;
    scroll-padding-top: 120px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100%;
}

html {
    overflow-y: auto !important;
}

body {
    background-image: var(--bg-dark-grad) !important;
    color: var(--text-color-dark) !important;
    font-family: var(--font-primary) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.7;

    /* RTL CORE FLIP */
    direction: rtl;
    text-align: right;
}

/* The Ghost Grid */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-image: linear-gradient(to right, rgba(201, 160, 220, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(201, 160, 220, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 10%, transparent 80%);
    mask-image: radial-gradient(circle at 50% 50%, black 10%, transparent 80%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading) !important;
    color: var(--tenant-primary-color) !important;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #f1c40f;
}

/* HEADER */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    background: rgba(1, 10, 8, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(230, 179, 74, 0.15) !important;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    /* Flexbox handles RTL gracefully */
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.nav-logo-link span {
    font-family: var(--font-data);
    /* Kept English for Brand */
    font-size: 1.4rem;
    color: var(--accent-gold);
    letter-spacing: 3px;
    direction: ltr;
    /* Force LTR for brand name */
}

/* BLOG HERO */
.blog-hero {
    padding: 180px 5% 80px 5%;
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.blog-category-badge {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--accent-silk);
    border: 1px solid var(--accent-silk);
    background: var(--accent-silk-soft);
    margin-bottom: 25px;
}

.blog-hero h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    color: #F9F9F9 !important;
    margin-bottom: 25px;
    font-weight: 700;
}

/* BLOG CONTENT RTL FLIPS */
.blog-content-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 5% 100px 5%;
    position: relative;
    z-index: 1;
}

.blog-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #c5c5c5;
    margin-bottom: 28px;
}

.blog-content ul,
.blog-content ol {
    margin: 25px 0 30px 0;
    padding-right: 0;
    /* Flipped from left */
    list-style: none;
}

.blog-content li {
    position: relative;
    padding-right: 28px;
    /* Flipped from left */
    margin-bottom: 14px;
    color: #b8b8b8;
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-content li::before {
    content: "✦";
    position: absolute;
    right: 0;
    /* Flipped from left */
    color: var(--accent-silk);
    font-size: 10px;
    top: 6px;
}

.blog-content ol {
    counter-reset: list-counter;
}

.blog-content ol li {
    counter-increment: list-counter;
}

.blog-content ol li::before {
    content: counter(list-counter);
    font-family: var(--font-data);
    font-size: 0.8rem;
    color: var(--accent-silk);
    font-weight: 700;
}

/* Lead Paragraph RTL Flip */
.lead-paragraph {
    font-size: 1.3rem !important;
    color: #e0e0e0 !important;
    line-height: 1.9 !important;
    border-right: 3px solid var(--accent-silk);
    /* Flipped from left */
    padding-right: 25px;
    /* Flipped from left */
    margin-bottom: 40px;
}

/* Pull Quote RTL Flip */
.pull-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    font-style: italic;
    text-align: center;
    padding: 40px 30px;
    margin: 50px 0;
    border-top: 1px solid rgba(201, 160, 220, 0.25);
    border-bottom: 1px solid rgba(201, 160, 220, 0.25);
    position: relative;
}

.pull-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-silk);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    right: 20px;
    /* Flipped from left */
    font-family: Georgia, serif;
}

/* FOOTER */
.boutique-footer {
    background-color: #030806;
    border-top: 1px solid rgba(230, 179, 74, 0.15);
    padding: 80px 5% 30px 5%;
    position: relative;
    z-index: 1;
}

.boutique-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 300px;
}

.footer-links-col h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-links-col a {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-links-col a:hover {
    color: var(--accent-gold);
}

.boutique-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-family: var(--font-data);
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 1px;
    direction: ltr;
    /* Keep copyright English */
}

/* =========================================
   HEADER CONTROLS & LANGUAGE TOGGLE FIX
   ========================================= */
.header-controls {
    display: flex;
    align-items: center;
    gap: 30px;
}

.dossier-link {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #e6b34a;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    /* Prevents the text from awkwardly breaking into two lines */
}

.dossier-link:hover {
    color: #f1c40f;
}

/* --- MOBILE HEADER RESTRUCTURING --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 18px;
    }

    .nav-logo-link span {
        font-size: 1.2rem !important;
        /* Protects LUKUL ATELIER from splitting */
        letter-spacing: 2px !important;
    }

    .header-controls {
        width: 100%;
        justify-content: space-between;
        /* Pushes toggle left, dossier right */
        gap: 10px;
    }

    .lang-toggle {
        margin-top: 0 !important;
        /* Overrides any previous mobile margins */
        padding: 4px 10px !important;
    }

    .dossier-link {
        font-size: 10px;
        /* Scaled down for mobile */
        letter-spacing: 1px;
    }
}


.header-link-group {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.article-hub-link {
    color: #aaa;
}

.article-hub-link:hover {
    color: #e6b34a;
}

@media (max-width: 768px) {
    .header-link-group {
        gap: 10px;
        justify-content: flex-end;
    }

    .article-hub-link {
        font-size: 10px;
        letter-spacing: 1px;
    }
}
@media (max-width: 440px) {
    .blog-hero .blog-category-badge {
        margin-top: 0.75rem;
    }
}
