/* ===== BLOG RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #0b0c10;
    color: #E2E8F0;
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(197, 160, 89, 0.06) 0%, transparent 40%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
}

html[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', system-ui, sans-serif;
}

html[dir="rtl"] * {
    letter-spacing: normal !important;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background-color: #c5a059;
    color: #000;
}

/* ===== NAVBAR ===== */
.blog-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.blog-navbar.scrolled {
    padding: 10px 0;
    background: rgba(11, 12, 16, 0.95);
    border-bottom-color: rgba(197, 160, 89, 0.15);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #c5a059 0%, #e2c08d 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
    transform: rotate(3deg);
    flex-shrink: 0;
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    stroke: #0b0c10;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.logo-text {
    font-weight: 800;
    font-size: clamp(0.75rem, 3.5vw, 1.15rem);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #c5a059 0%, #e2c08d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    line-height: 1;
}

.logo-subtext {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

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

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    color: #E2E8F0;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #94A3B8;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #e2c08d;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #E2E8F0;
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}

.lang-dropdown.open .chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #1a1b23;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s;
    min-width: 140px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

html[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    width: 100%;
    border: none;
    background: none;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.lang-option:hover {
    background: rgba(197, 160, 89, 0.1);
    color: #c5a059;
}

.lang-option.active {
    color: #c5a059;
    background: rgba(197, 160, 89, 0.08);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.nav-login-btn {
    padding: 8px 20px;
    color: #c5a059;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    background: rgba(197, 160, 89, 0.06);
    transition: all 0.2s;
}

.nav-login-btn:hover {
    color: #e2c08d;
    background: rgba(197, 160, 89, 0.12);
    border-color: rgba(197, 160, 89, 0.6);
    transform: translateY(-1px);
}

.nav-cta-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #c5a059 0%, #e2c08d 100%);
    color: #0b0c10;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.3);
}

/* ===== BLOG HEADER ===== */
.blog-header {
    padding: 140px 0 60px;
    text-align: center;
}

.blog-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 30%, #c5a059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.blog-header p {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 550px;
    margin: 0 auto;
}

/* ===== FILTER BAR ===== */
.blog-filter-bar {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-cat-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.blog-cat-btn:hover {
    border-color: rgba(197, 160, 89, 0.3);
    color: #c5a059;
}

.blog-cat-btn.active {
    background: linear-gradient(135deg, #c5a059 0%, #e2c08d 100%);
    color: #0b0c10;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(197, 160, 89, 0.2);
}

.blog-search {
    position: relative;
    min-width: 240px;
}

.blog-search input {
    width: 100%;
    padding: 9px 16px 9px 38px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #E2E8F0;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.blog-search input:focus {
    border-color: rgba(197, 160, 89, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.blog-search input::placeholder {
    color: #475569;
}

.blog-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: #475569;
}

html[dir="rtl"] .blog-search input {
    padding: 9px 38px 9px 16px;
}

html[dir="rtl"] .blog-search-icon {
    left: auto;
    right: 14px;
}

/* ===== ARTICLE GRID ===== */
.blog-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 28px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(197, 160, 89, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(197, 160, 89, 0.1);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.08), rgba(11, 12, 16, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-image .placeholder-icon {
    width: 48px;
    height: 48px;
    color: rgba(197, 160, 89, 0.3);
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: #64748b;
}

.blog-card-category {
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(197, 160, 89, 0.1);
    color: #c5a059;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    transition: color 0.2s;
}

.blog-card:hover h3 {
    color: #c5a059;
}

.blog-card p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.6;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-read-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c5a059;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.blog-card:hover .blog-read-more {
    gap: 10px;
}

.blog-read-more svg {
    width: 14px;
    height: 14px;
}

html[dir="rtl"] .blog-read-more svg {
    transform: scaleX(-1);
}

.blog-read-time {
    font-size: 0.75rem;
    color: #475569;
}

/* ===== NO RESULTS ===== */
.blog-no-results {
    text-align: center;
    padding: 60px 24px;
    color: #475569;
    font-size: 1rem;
    grid-column: 1 / -1;
    display: none;
}

.blog-no-results.visible {
    display: block;
}

/* ===== CTA SECTION ===== */
.blog-cta-section {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.blog-cta-card {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.08), rgba(11, 12, 16, 0.95));
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.1), transparent 60%);
    pointer-events: none;
}

.blog-cta-card h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
}

.blog-cta-card p {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 450px;
    margin: 0 auto 24px;
    position: relative;
}

.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #c5a059 0%, #e2c08d 100%);
    color: #0b0c10;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.3);
    position: relative;
}

.blog-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.4);
}

/* ===== FOOTER ===== */
.blog-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
}

.blog-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.blog-footer-copy {
    font-size: 0.75rem;
    color: #475569;
}

.blog-footer-disclaimer {
    font-size: 0.7rem;
    color: #64748b;
    opacity: 0.8;
    max-width: 600px;
    text-align: center;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* ===== ARTICLE PAGE ===== */
.article-header {
    padding: 130px 0 40px;
    text-align: center;
}

.article-header-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.article-back:hover {
    color: #c5a059;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #64748b;
}

.article-header h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.article-header .article-excerpt {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.article-cover {
    max-width: 760px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.article-cover img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== ARTICLE CONTENT (PROSE) ===== */
.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(197, 160, 89, 0.15);
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 32px 0 12px;
}

.article-content p {
    font-size: 1.02rem;
    color: #cbd5e1;
    line-height: 1.85;
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 16px 0 24px 24px;
    color: #cbd5e1;
}

html[dir="rtl"] .article-content ul,
html[dir="rtl"] .article-content ol {
    margin: 16px 24px 24px 0;
}

.article-content li {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.7;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 3px solid #c5a059;
    background: rgba(197, 160, 89, 0.05);
    border-radius: 0 12px 12px 0;
    color: #e2e8f0;
    font-style: italic;
}

html[dir="rtl"] .article-content blockquote {
    border-left: none;
    border-right: 3px solid #c5a059;
    border-radius: 12px 0 0 12px;
}

.article-content strong {
    color: #fff;
    font-weight: 700;
}

.article-content a {
    color: #c5a059;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.article-content a:hover {
    opacity: 0.8;
}

.article-content code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    color: #c5a059;
}

.article-content .info-box {
    margin: 24px 0;
    padding: 20px 24px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    font-size: 0.92rem;
    color: #93c5fd;
    line-height: 1.7;
}

.article-content .warning-box {
    margin: 24px 0;
    padding: 20px 24px;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    font-size: 0.92rem;
    color: #fbbf24;
    line-height: 1.7;
}

/* ===== SHARE BAR ===== */
.article-share {
    max-width: 760px;
    margin: 0 auto 40px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-share span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    border-color: rgba(197, 160, 89, 0.3);
    color: #c5a059;
    background: rgba(197, 160, 89, 0.08);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 1.8rem;
    }

    .blog-header p {
        font-size: 0.92rem;
    }

    /* Navbar Mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 12, 16, 0.98);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        z-index: 1000;
        text-align: center;
    }

    .nav-links.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-cta-btn {
        display: none;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-login-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .blog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search {
        min-width: unset;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-cta-card {
        padding: 32px 24px;
    }

    .blog-cta-card h2 {
        font-size: 1.3rem;
    }

    .blog-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .article-content h2 {
        font-size: 1.25rem;
    }
}
