/*
Theme Name: Hello Elementor Child
Description: Child theme for Hello Elementor
Author: omid bolandy natag
Template: hello-elementor
Version: 1.0.0
*/

/* استایل کلی بخش آرشیو دسته‌بندی */
#content.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    color: #e2e8f0;
}

/* هدر صفحه (عنوان دسته) */
#content .page-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 25px 35px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* خط تزئینی مدرن کنار هدر */
#content .page-header::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: #38bdf8;
}

#content .page-header h1.entry-title {
    font-size: 24px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

#content .page-header h1.entry-title span {
    color: #38bdf8;
    margin-right: 8px;
}

/* بدنه و چیدمان گرید پست‌ها */
#content .page-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* کارت هر پست با استایل مدرن و عمق بیشتر */
#content .page-content article.post {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    position: relative;
}

#content .page-content article.post:hover {
    transform: translateY(-8px);
    border-color: #38bdf8;
    box-shadow: 0 20px 35px -10px rgba(56, 189, 248, 0.25);
    background: #22304c;
}

/* عنوان هر پست (نام نرم‌افزار) - راست‌چین شده */
#content .page-content article.post h2.entry-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    text-align: right;
}

#content .page-content article.post h2.entry-title a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.2s ease;
}

#content .page-content article.post h2.entry-title a:hover {
    color: #38bdf8;
}

/* محدود کردن متن خلاصه و راست‌چین کردن آن برای خوانایی بهتر */
#content .page-content article.post p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.8;
    margin: 0 0 25px 0;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* دکمه مشاهده نرم‌افزار حرفه‌ای با گرادینت */
#content .page-content article.post a.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

#content .page-content article.post a.read-more-btn:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
    transform: scale(1.02);
}

/* ریسپانسیو موبایل */
@media (max-width: 425px) {
    #content.site-main {
        padding: 20px 10px;
    }
    #content .page-content {
        grid-template-columns: 1fr;
    }
    #content .page-content article.post {
        padding: 20px;
    }
}
/* ───── Live Search Dropdown ───── */
#obk-search-dropdown {
    position: fixed;
    background: #0d1f35;
    border: 1px solid #1e3a5f;
    border-radius: 14px;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
    z-index: 999999;
    overflow: hidden;
    display: none;
    direction: rtl;
    max-height: 360px;
    overflow-y: auto;
}

.obk-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    text-decoration: none !important;
    border-bottom: 1px solid #1e3a5f;
    transition: background 0.15s ease;
    cursor: pointer;
}

.obk-result-item:last-child {
    border-bottom: none;
}

.obk-result-item:hover,
.obk-result-item.obk-result-active {
    background: rgba(2, 132, 199, 0.12);
}

.obk-result-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.obk-result-item:hover .obk-result-title,
.obk-result-item.obk-result-active .obk-result-title {
    color: #38bdf8;
}

.obk-result-cat {
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.obk-result-empty {
    padding: 16px 18px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}
@media (min-width: 425px) {
    #site-search-input {
        margin-left: 8px;
    }
}
@media (max-width: 425px) {
    .elementor-412 .hero-search-box {
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        gap: 10px !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .elementor-412 .hero-search-box input,
    .elementor-412 .hero-search-box button {
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}
/* ═══════════════════════════════════════════════
   OBK CARDS v2 — دسته‌بندی و نتایج جستجو
   ═══════════════════════════════════════════════ */

/* گرید کارت‌ها */
#content .page-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    align-items: start;
}

/* ── کارت اصلی ── */
.obk-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    background: #0f1c2e;
    border: 1px solid #1b2d42;
    border-radius: 16px;
    padding: 20px 20px 20px 20px;
    direction: rtl;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
    overflow: hidden;
}

.obk-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 12px 32px -8px rgba(14,165,233,.15);
    transform: translateY(-3px);
}

/* خط آبی سمت راست روی hover */
.obk-card::after {
    content: "";
    position: absolute;
    right: 0; top: 16px; bottom: 16px;
    width: 3px;
    background: #0ea5e9;
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity .22s ease;
}
.obk-card:hover::after { opacity: 1; }

/* ── لوگو ── */
.obk-card__logo-wrap {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: #162030;
    border: 1px solid #1e3348;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.obk-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* placeholder — حرف اول نام نرم‌افزار */
.obk-card__logo--placeholder {
    font-size: 26px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: -1px;
}

/* ── بدنه ── */
.obk-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    text-align: right;
}

.obk-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* نام انگلیسی LTR بمونه ولی راست‌چین باشه */
    direction: ltr;
    text-align: right;
}

.obk-card__excerpt {
    font-size: 12px;
    color: #4e6278;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: right;
    direction: rtl;
}

/* ── دکمه ── */
.obk-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 7px 14px;
    width: fit-content;
    background: transparent;
    border: 1px solid #1e3a5f;
    border-radius: 9px;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s, border-color .2s, color .2s;
    cursor: pointer;
}

.obk-card__btn:hover {
    background: rgba(14,165,233,.1);
    border-color: #0ea5e9;
    color: #7dd3fc;
}

/* ── ریسپانسیو ── */
@media (max-width: 640px) {
    #content .page-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .obk-card {
        padding: 16px;
        gap: 14px;
    }
    .obk-card__logo-wrap {
        width: 54px;
        height: 54px;
        border-radius: 11px;
    }
    .obk-card__title { font-size: 14px; }
    .obk-card__excerpt { -webkit-line-clamp: 2; }
}

@media (min-width: 1080px) {
    #content .page-content {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ── باکس اصلی دور همه محتوا ── */
#content.site-main {
    background: #080f1a;
    border: 1px solid #1a2a3d;
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow:
        0 0 0 1px #0ea5e908,
        0 32px 64px -16px rgba(0,0,0,0.6);
}

/* ── رنگ روشن‌تر توضیحات ── */
.obk-card__excerpt {
    color: #7a90a8;
}

/* ── باکس و استایل pagination ── */
#content nav.pagination {
    background: #080f1a;
    border: 1px solid #1a2a3d;
    border-radius: 14px;
    padding: 16px 24px;
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    direction: rtl;
}

#content nav.pagination a {
    background: #0f1c2e;
    border: 1px solid #1b2d42;
    border-radius: 10px;
    color: #38bdf8;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, border-color .2s, color .2s;
}

#content nav.pagination a:hover {
    background: rgba(14,165,233,.1);
    border-color: #0ea5e9;
    color: #7dd3fc;
    
}
.obk-result-empty {
    color: #e2e8f0;
}
#content .page-content > p {
    color: #e2e8f0;
    font-size: 15px;
    padding: 40px 0;
    margin: 0;
    grid-column: 1 / -1;
    text-align: center !important;
}
/* تنظیم رنگ پس‌زمینه کل صفحه و متن پیش‌فرض */
html, body {
    background-color: #c5c3c3 !important;
}
@media (max-width: 425px) {
    #content .page-header h1.entry-title {
        font-size: 18px !important;
    }
}
