/* ============================================================
   SICOMP — SEARCH.CSS
   صفحه نتایج جستجو
   نسخه: 1.0
   ============================================================ */

/* هیرو مخصوص جستجو */
.search-hero .article-hero__bg {
    background-image: url('../images/siteseo.png');
}

/* حالت خالی / بدون نتیجه */
.search-empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.search-empty i {
    font-size: 64px;
    color: var(--blue);
    opacity: .3;
    display: block;
    margin-bottom: 16px;
}

.search-empty h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 10px;
}

.search-empty p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 6px;
    line-height: 1.9;
}

/* لیست نتایج */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.search-result {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.search-result:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
    box-shadow: 0 6px 20px rgba(8, 120, 220, .1);
}

.search-result__image {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--pale);
}
.search-result__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result__content {
    flex: 1;
    min-width: 0;
}

.search-result__type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--blue);
    background: var(--pale);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.search-result__type i {
    font-size: 11px;
}

.search-result__content h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 4px;
    line-height: 1.5;
}

.search-result__content p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
    margin: 0 0 6px;
}

.search-result__more {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 760px) {
    .search-result {
        flex-direction: column;
    }
    .search-result__image {
        width: 100%;
        height: 150px;
    }
    .search-empty {
        padding: 40px 16px;
    }
    .search-empty i {
        font-size: 48px;
    }
    .search-empty h2 {
        font-size: 17px;
    }
}