/* ======================================================== */
/* ========== صفحه آرشیو وبلاگ - استایل اختصاصی ============ */
/* ======================================================== */

.vp-blogs-main {
    direction: rtl;
    background: #faf7fb;
    min-height: 100vh;
    margin-top: 120px;
}

.vp-blogs-main *,
.vp-blogs-main *::before,
.vp-blogs-main *::after {
    box-sizing: border-box;
}

/* ===== هدر صفحه ===== */
.vp-blogs-hero {
    background: linear-gradient(135deg, #a3238e 0%, #7a0472 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.vp-blogs-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.vp-blogs-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.vp-blogs-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.vp-blogs-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vp-blogs-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
}

.vp-blogs-hero h1 em {
    font-style: normal;
    color: #ffd4f5;
    position: relative;
}

.vp-blogs-hero h1 em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    z-index: -1;
}

.vp-blogs-hero p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.8;
}

/* ===== ساختار اصلی ===== */
.vp-blogs-wrapper {
    max-width: 1240px;
    margin: -40px auto 0;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* ===== ستون محتوا ===== */
.vp-blogs-content {
    min-width: 0;
}

/* ===== اطلاعات جستجو ===== */
.vp-search-result-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid #f0e8ef;
    margin-bottom: 20px;
    font-size: 13.5px;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.vp-search-result-info > i {
    color: #a3238e;
    font-size: 15px;
    flex-shrink: 0;
}

.vp-search-result-info strong {
    color: #1e293b;
}

.vp-search-result-info em {
    font-style: normal;
    color: #94a3b8;
    font-size: 12.5px;
}

.vp-clear-search {
    margin-right: auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vp-clear-search:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ===== آیتم بلاگ (لیست عمودی) ===== */
.vp-blogs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vp-blog-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0e8ef;
    transition: all 0.3s ease;
}

.vp-blog-item:hover {
    border-color: rgba(163, 35, 142, 0.25);
    box-shadow: 0 12px 30px rgba(163, 35, 142, 0.1);
    transform: translateY(-3px);
}

.vp-blog-item-img {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    height: 220px;
}

.vp-blog-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.vp-blog-item:hover .vp-blog-item-img img {
    transform: scale(1.06);
}

.vp-blog-item-date {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    min-width: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.vp-blog-item-date b {
    font-size: 18px;
    font-weight: 800;
    color: #a3238e;
    margin-bottom: 3px;
}

.vp-blog-item-date i {
    font-size: 10.5px;
    font-weight: 600;
    color: #666;
    font-style: normal;
}

.vp-blog-item-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.vp-blog-item-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12.5px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.vp-blog-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.vp-blog-item-meta i {
    color: #a3238e;
    font-size: 12px;
}

.vp-blog-item-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

.vp-blog-item-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vp-blog-item:hover .vp-blog-item-title a {
    color: #a3238e;
}

.vp-blog-item-summary {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.vp-blog-item-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a3238e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
    align-self: flex-start;
    transition: gap 0.2s ease;
}

.vp-blog-item-link i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.vp-blog-item-link:hover {
    gap: 12px;
}

.vp-blog-item-link:hover i {
    transform: translateX(-4px);
}

/* ===== صفحه‌بندی ===== */
.vp-blogs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #f0e8ef;
    flex-wrap: wrap;
}

.vp-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
    cursor: pointer;
}

.vp-page-btn i {
    font-size: 11px;
}

.vp-page-btn:hover:not(.disabled) {
    background: #a3238e;
    color: #fff;
    border-color: #a3238e;
}

.vp-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vp-page-list {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.vp-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-variant-numeric: tabular-nums;
}

.vp-page-num:hover {
    background: #faf7fb;
    border-color: #a3238e;
    color: #a3238e;
}

.vp-page-num.active {
    background: #a3238e;
    border-color: #a3238e;
    color: #fff;
}

.vp-page-dots {
    color: #ccc;
    padding: 0 4px;
    font-size: 13px;
}

/* ===== حالت خالی ===== */
.vp-blogs-empty {
    text-align: center;
    padding: 80px 30px;
    background: #fff;
    border-radius: 16px;
    border: 2px dashed #f0e8ef;
}

.vp-blogs-empty i {
    font-size: 60px;
    color: #e8dce6;
    margin-bottom: 18px;
    display: block;
}

.vp-blogs-empty h3 {
    font-size: 22px;
    color: #444;
    margin: 0 0 10px;
    font-weight: 700;
}

.vp-blogs-empty p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 20px;
    line-height: 1.8;
}

.vp-blogs-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #a3238e;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.vp-blogs-empty-btn:hover {
    background: #7a0472;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(163, 35, 142, 0.3);
}

/* ======================================================== */
/* ======================== سایدبار ======================= */
/* ======================================================== */

.vp-blogs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
    align-self: start;
}

/* ===== ویجت ===== */
.vp-widget {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #f0e8ef;
    transition: all 0.3s ease;
}

.vp-widget:hover {
    border-color: rgba(163, 35, 142, 0.15);
    box-shadow: 0 8px 20px rgba(163, 35, 142, 0.06);
}

.vp-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f3e5f2;
    position: relative;
}

.vp-widget-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background: #a3238e;
    border-radius: 2px;
}

.vp-widget-title i {
    color: #a3238e;
    font-size: 15px;
}

/* ===== فرم جستجو ===== */
.vp-search-form {
    display: block;
    margin: 0;
}

.vp-search-input-wrap {
    display: flex;
    align-items: stretch;
    background: #faf7fb;
    border: 1.5px solid #f0e8ef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    height: 46px;
}

.vp-search-input-wrap:focus-within {
    border-color: #a3238e;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(163, 35, 142, 0.08);
}

.vp-search-input-wrap input {
    flex: 1;
    padding: 0 14px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    color: #1e293b;
    outline: none;
    min-width: 0;
    height: 100%;
}

.vp-search-input-wrap input::placeholder {
    color: #94a3b8;
}

/* ===== دکمه جستجو (اصلاح شده) ===== */
.vp-search-input-wrap button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 100%;
    padding: 0;
    background: #a3238e;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}

.vp-search-input-wrap button:hover {
    background: #7a0472;
}

.vp-search-input-wrap button i {
    font-size: 14px;
    display: block;
}

/* ===== ویجت پست‌ها ===== */
.vp-widget-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vp-widget-post {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    padding-bottom: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.vp-widget-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vp-widget-post:hover {
    opacity: 0.85;
}

.vp-widget-post-img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.vp-widget-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.vp-widget-post:hover .vp-widget-post-img img {
    transform: scale(1.1);
}

.vp-widget-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}

.vp-widget-post-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.vp-widget-post:hover .vp-widget-post-info h4 {
    color: #a3238e;
}

.vp-widget-post-info span {
    font-size: 11.5px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vp-widget-post-info i {
    font-size: 11px;
    color: #a3238e;
}

.vp-widget-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    padding: 20px 0;
    margin: 0;
}

/* ===== ویجت آرشیو ===== */
.vp-widget-archive {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vp-widget-archive li {
    margin: 0;
}

.vp-widget-archive a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #faf7fb;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 13px;
    transition: all 0.2s ease;
}

.vp-widget-archive a:hover {
    background: rgba(163, 35, 142, 0.08);
    color: #a3238e;
    padding-right: 18px;
}

.vp-widget-archive i {
    color: #a3238e;
    font-size: 10px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.vp-widget-archive a:hover i {
    transform: translateX(-3px);
}

.vp-widget-archive span {
    flex: 1;
    font-weight: 500;
}

.vp-widget-archive em {
    font-style: normal;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 600;
}

/* ===== ویجت CTA ===== */
.vp-widget-cta {
    background: linear-gradient(135deg, #a3238e 0%, #7a0472 100%);
    color: #fff;
    text-align: center;
    padding: 28px 22px;
    position: relative;
    overflow: hidden;
    border-color: transparent;
}

.vp-widget-cta:hover {
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(163, 35, 142, 0.25);
}

.vp-widget-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.vp-cta-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.vp-cta-icon i {
    font-size: 22px;
    color: #fff;
}

.vp-widget-cta h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.vp-widget-cta p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 18px;
    position: relative;
    z-index: 1;
}

.vp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #a3238e;
    text-decoration: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.vp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #a3238e;
}

.vp-cta-btn i {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.vp-cta-btn:hover i {
    transform: translateX(-3px);
}

/* ======================================================== */
/* ===================== ریسپانسیو ======================== */
/* ======================================================== */

@media (max-width: 1024px) {
    .vp-blogs-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 24px;
    }

    .vp-blog-item {
        grid-template-columns: 220px 1fr;
    }

    .vp-blog-item-img {
        height: 200px;
    }

    .vp-blog-item-title {
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    .vp-blogs-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vp-blogs-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .vp-widget-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .vp-blogs-hero {
        padding: 45px 16px;
    }

    .vp-blogs-hero h1 {
        font-size: 28px;
    }

    .vp-blogs-hero p {
        font-size: 13.5px;
    }

    .vp-blogs-wrapper {
        margin-top: -30px;
        padding: 0 14px 50px;
        gap: 24px;
    }

    .vp-blog-item {
        grid-template-columns: 1fr;
    }

    .vp-blog-item-img {
        height: 220px;
    }

    .vp-blog-item-body {
        padding: 18px;
    }

    .vp-blog-item-title {
        font-size: 17px;
    }

    .vp-blog-item-summary {
        font-size: 13.5px;
        -webkit-line-clamp: 2;
    }

    .vp-blogs-pagination {
        gap: 8px;
    }

    .vp-page-btn {
        padding: 9px 14px;
        font-size: 12.5px;
    }

    .vp-page-btn span {
        display: none;
    }

    .vp-page-num {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .vp-blogs-sidebar {
        grid-template-columns: 1fr;
    }

    .vp-widget {
        padding: 18px;
    }

    .vp-widget-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .vp-blogs-hero {
        padding: 35px 12px;
    }

    .vp-blogs-hero h1 {
        font-size: 23px;
    }

    .vp-blogs-label {
        font-size: 10px;
        padding: 5px 12px;
    }

    .vp-blogs-wrapper {
        padding: 0 10px 40px;
    }

    .vp-blog-item-img {
        height: 190px;
    }

    .vp-blog-item-body {
        padding: 16px;
        gap: 10px;
    }

    .vp-blog-item-title {
        font-size: 15.5px;
    }

    .vp-blog-item-meta {
        font-size: 11.5px;
        gap: 14px;
    }

    .vp-search-result-info {
        font-size: 12.5px;
        padding: 12px 14px;
    }

    .vp-page-num {
        width: 34px;
        height: 34px;
        font-size: 11.5px;
    }

    .vp-page-btn {
        padding: 8px 12px;
    }

    .vp-blogs-empty {
        padding: 50px 20px;
    }

    .vp-blogs-empty i {
        font-size: 45px;
    }

    .vp-blogs-empty h3 {
        font-size: 18px;
    }
}