/* ===== BASE ===== */
body.yg-body,
.yg-body,
.yg-hero-desc,
.yg-featured-excerpt,
.yg-card-excerpt,
.yg-meta,
.yg-card-meta,
.yg-latest-meta,
.yg-latest-title,
.yg-filter-btn,
.yg-select,
.yg-breadcrumb,
.yg-author span,
.yg-footer p {
    font-family: "Peyda", Tahoma, sans-serif !important;
}

body, 
.site-main, 
#content, 
.yg-main, 
.yg-hero {
    background-color: #080917 !important;
    background: #080917 !important;
    color: #ffffff !important;
}

.yg-body {
    direction: rtl;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.yg-container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 40px; 
    background: transparent !important;
}

/* ===== FONT HEADINGS ===== */
.yg-hero-title,
.yg-featured-title,
.yg-section-header h2,
.yg-sidebar-header h3,
.yg-card-title,
.yg-card-title a {
    font-family: "Kalameh", Tahoma, sans-serif !important;
    font-weight: 700 !important;
}

/* ===== NAVBAR ===== */
.yg-navbar {
    position: fixed; top: 0; right: 0; left: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 40px;
    background: rgba(8,9,23,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.yg-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.1rem; }
.yg-logo-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem;
}
.yg-nav-links { display: flex; gap: 32px; }
.yg-nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.yg-nav-links a:hover, .yg-nav-links a.active { color: #a855f7; }
.yg-cta-btn {
    padding: 8px 20px; border-radius: 8px; font-size: 0.875rem; font-weight: 600;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff; text-decoration: none;
    box-shadow: 0 0 20px rgba(124,58,237,0.4);
    transition: opacity 0.2s;
}
.yg-cta-btn:hover { opacity: 0.85; }

/* ===== HERO ===== */
.yg-hero {
    position: relative; padding: 140px 0 60px;
    background: linear-gradient(180deg, #0f0a2e 0%, #080917 100%);
    overflow: hidden;
}
.yg-hero-glow {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 700px; height: 400px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(ellipse, rgba(124,58,237,0.25) 0%, transparent 70%);
}
.yg-breadcrumb { display: flex; gap: 8px; font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.yg-breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; }
.yg-breadcrumb .active { color: #a855f7; }
.yg-hero-title { font-size: 3rem; font-weight: 800; margin: 0 0 12px; line-height: 1.2; }
.yg-gradient-text {
    background: linear-gradient(90deg, #a855f7, #7c3aed);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.yg-hero-desc { 
    font-size: 1.2rem !important; 
    color: rgba(255,255,255,0.8); 
    line-height: 1.6 !important; 
    max-width: 100% !important; 
    white-space: nowrap !important;
    margin: 0 0 40px; 
}

.yg-filters-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.yg-filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.yg-filter-btn {
    padding: 8px 18px; border-radius: 8px; font-size: 0.85rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6);
    cursor: pointer; transition: all 0.2s;
}
.yg-filter-btn:hover { color: #fff; border-color: rgba(168,85,247,0.4); }
.yg-filter-btn.active {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: transparent; color: #fff;
    box-shadow: 0 0 16px rgba(124,58,237,0.4);
}
.yg-sort-wrap { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.yg-select {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 0.85rem;
    padding: 8px 12px; border-radius: 8px; cursor: pointer; direction: rtl; outline: none;
}

/* ===== MAIN ===== */
.yg-main { padding: 48px 40px 60px; }
.yg-top-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin-bottom: 60px; }

/* Featured Card */
.yg-featured-card {
    border-radius: 16px; overflow: hidden;
    background: rgba(255,255,255,0.04) !important; 
    border: 1px solid rgba(255,255,255,0.08) !important;
    transition: transform 0.3s, box-shadow 0.3s;
}
.yg-featured-card:hover { transform: translateY(-3px); box-shadow: 0 20px 60px rgba(124,58,237,0.2); }
.yg-featured-img { position: relative; height: 260px; overflow: hidden; background: #1a0b3b; }
.yg-featured-img .yg-img, .yg-card-img .yg-img, .yg-latest-thumb .yg-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.5s, opacity 0.3s;
}
.yg-featured-card:hover .yg-featured-img .yg-img { transform: scale(1.05); }
.yg-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, #0f0a2e 0%, transparent 60%);
}
.yg-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1a0b3b, #2d1b5e); }

/* Badge Overlay */
.yg-badge {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 5 !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    transition: all 0.3s ease !important;
}

.yg-card:hover .yg-badge,
.yg-featured-card:hover .yg-badge {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.8) !important;
}

.yg-featured-body { padding: 24px; }
.yg-meta { display: flex; gap: 8px; font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.yg-featured-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 12px; line-height: 1.6; }
.yg-featured-excerpt { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 2; margin: 0 0 24px; }
.yg-featured-footer { display: flex; align-items: center; justify-content: space-between; }
.yg-author { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.yg-avatar { border-radius: 50%; width: 28px; height: 28px; object-fit: cover; }
.yg-read-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff; text-decoration: none;
    box-shadow: 0 0 16px rgba(124,58,237,0.5);
    transition: opacity 0.2s;
}
.yg-read-btn:hover { opacity: 0.85; color: #fff; }

/* Sidebar */
.yg-sidebar {
    border-radius: 16px; padding: 20px;
    background: rgba(255,255,255,0.03) !important; 
    border: 1px solid rgba(255,255,255,0.07) !important;
}
.yg-sidebar-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.yg-sidebar-bar { width: 4px; height: 22px; border-radius: 2px; background: linear-gradient(#a855f7, #7c3aed); }
.yg-sidebar-header h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.yg-latest-list { display: flex; flex-direction: column; gap: 16px; }
.yg-latest-item { display: flex; gap: 12px; text-decoration: none; transition: opacity 0.2s; }
.yg-latest-item:hover { opacity: 0.8; }
.yg-latest-thumb { width: 80px; height: 64px; border-radius: 8px; overflow: hidden; background: #1a1a3a; flex-shrink: 0; }
.yg-latest-info { display: flex; flex-direction: column; justify-content: space-between; flex: 1; min-width: 0; }
.yg-badge-sm {
    display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 600;
    background: rgba(168,85,247,0.15); color: #a855f7; border: 1px solid rgba(168,85,247,0.3);
    width: fit-content;
}
.yg-latest-title { font-size: 0.78rem; color: rgba(255,255,255,0.85); margin: 4px 0 0; line-height: 1.6; font-weight: 500; }
.yg-latest-meta { display: flex; gap: 6px; font-size: 0.65rem; color: rgba(255,255,255,0.35); margin-top: 4px; }

/* Section Header */
.yg-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.yg-section-bar { width: 4px; height: 26px; border-radius: 2px; background: linear-gradient(#a855f7, #7c3aed); }
.yg-section-header h2 { margin: 0; font-size: 1.2rem; font-weight: 700; flex: 1; }
.yg-see-all { font-size: 0.85rem; color: #a855f7; text-decoration: none; font-weight: 500; transition: color 0.2s; }
.yg-see-all:hover { color: #c084fc; }

/* Article Grid */
.yg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.yg-card {
    border-radius: 16px; overflow: hidden;
    background: rgba(255,255,255,0.04) !important; 
    border: 1px solid rgba(255,255,255,0.07) !important;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.yg-card:hover { transform: translateY(-3px); border-color: rgba(168,85,247,0.3); box-shadow: 0 16px 40px rgba(124,58,237,0.15); }
.yg-card.hidden { display: none; }
.yg-card-img { position: relative; height: 180px; overflow: hidden; background: #1a1a3a; }
.yg-card:hover .yg-card-img .yg-img { transform: scale(1.06); opacity: 0.85; }
.yg-card-img .yg-img { opacity: 0.8; }
.yg-card-body { padding: 16px; }
.yg-card-title { font-size: 0.9rem; font-weight: 700; margin: 0 0 10px; line-height: 1.7; }
.yg-card-title a { color: #fff; text-decoration: none; transition: color 0.2s; }
.yg-card:hover .yg-card-title a { color: #c084fc; }
.yg-card-excerpt { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.8; margin: 0 0 16px; }
.yg-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.07);
}
.yg-card-footer .yg-author { font-size: 0.75rem; }
.yg-card-footer .yg-avatar { width: 24px; height: 24px; }
.yg-card-meta { display: flex; gap: 4px; font-size: 0.72rem; color: rgba(255,255,255,0.35); }

/* Footer */
.yg-footer {
    margin-top: 20px; padding: 28px 40px; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.78rem; color: rgba(255,255,255,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .yg-top-grid { grid-template-columns: 1fr; }
    .yg-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .yg-hero-desc {
        white-space: normal !important;
        font-size: 1rem !important;
    }
    .yg-grid { grid-template-columns: 1fr; }
    .yg-container { padding: 0 20px; }
}
/* اصلاح کامل منوی کشویی مرتب‌سازی */
.yg-sort-wrap {
    position: relative !important;
    z-index: 50 !important;
}

.yg-select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    background-color: #120d31 !important;
    color: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    cursor: pointer !important;
}

/* استایل‌دهی به آیتم‌های داخل منوی کشویی */
.yg-select option {
    background-color: #120d31 !important;
    color: #ffffff !important;
    padding: 10px !important;
}
/* بازنویسی کامل و تمیز منوی کشویی مرتب‌سازی */
.yg-sort-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
    z-index: 10 !important;
}

.yg-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #120d31 !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23a855f7' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: left 10px center !important;
    background-size: 18px !important;
    color: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    border-radius: 8px !important;
    padding: 8px 36px 8px 16px !important;
    font-family: "Peyda", sans-serif !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.yg-select:hover {
    border-color: #a855f7 !important;
}

/* استایل آیتم‌های بازشونده در مرورگر */
.yg-select option {
    background-color: #120d31 !important;
    color: #ffffff !important;
    padding: 10px !important;
}
/* بزرگ‌تر و پررنگ‌تر کردن تگ‌های مسیر صفحه (Breadcrumb) */
.yg-breadcrumb {
    font-size: 1rem !important; /* سایز بزرگ‌تر (سایز قبلی 0.75rem بود) */
    font-weight: 500 !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
}

.yg-breadcrumb a {
    color: rgba(255, 255, 255, 0.7) !important; /* روشن‌تر شدن لینک خانه */
    transition: color 0.2s ease !important;
}

.yg-breadcrumb a:hover {
    color: #a855f7 !important; /* بنفش شدن هنگام هوور */
}

.yg-breadcrumb .active {
    color: #c084fc !important; /* روشن‌تر و جذاب‌تر شدن کلمه مقالات */
    font-weight: 700 !important;
}

/* اجبار استایل کشوی مرتب‌سازی */
.yg-sort-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.yg-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #120d31 !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23a855f7' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: left 10px center !important;
    background-size: 18px !important;
    color: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    border-radius: 8px !important;
    padding: 8px 36px 8px 16px !important;
    font-family: "Peyda", sans-serif !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    outline: none !important;
}

.yg-select option {
    background-color: #120d31 !important;
    color: #ffffff !important;
}
/* اصلاح اجباری و نهایی کشوی مرتب‌سازی */
select#yg-sort.yg-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #120d31 !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23a855f7' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: left 10px center !important;
    background-size: 18px !important;
    color: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.5) !important;
    border-radius: 8px !important;
    padding: 8px 36px 8px 16px !important;
    font-family: "Peyda", sans-serif !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
}

select#yg-sort.yg-select option {
    background-color: #120d31 !important;
    color: #ffffff !important;
}
/* استایل کشو */
.yg-sort-wrap select#yg-sort {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #120d31 !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23a855f7' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: left 10px center !important;
    background-size: 18px !important;
    color: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.5) !important;
    border-radius: 8px !important;
    padding: 8px 36px 8px 16px !important;
    font-family: "Peyda", sans-serif !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
}

.yg-sort-wrap select#yg-sort option {
    background-color: #120d31 !important;
    color: #ffffff !important;
}
/* اصلاح اجباری و نهایی کشوی مرتب‌سازی */
.yg-sort-wrap select#yg-sort,
select.yg-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #120d31 !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23a855f7' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important;
    background-size: 16px !important;
    color: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.5) !important;
    border-radius: 8px !important;
    padding: 8px 36px 8px 16px !important;
    font-family: "Peyda", sans-serif !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    outline: none !important;
}

.yg-sort-wrap select#yg-sort option,
select.yg-select option {
    background-color: #120d31 !important;
    color: #ffffff !important;
}