﻿@font-face {
    font-family: "IRANSansWebFaNum";
    src: url('../Fonts/IRANSansWeb(FaNum).ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* ===== Global for Search ===== */
.search-box,
.search-box * {
    font-family: "IRANSansWebFaNum", sans-serif;
}

/* ===== Search Box Wrapper ===== */
.search-box {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

/* ===== Form ===== */
.search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

    .search-form:focus-within {
        box-shadow: 0 14px 40px rgba(0,0,0,0.12);
    }

    .search-form input {
        flex: 1;
        text-align: center;
        border: none;
        outline: none;
        padding: 12px 14px;
        font-size: 14px;
        background: transparent;
        color: #2c3e50;
    }

        .search-form input::placeholder {
            color: #aaa;
            text-align: center;
        }

    .search-form button {
        border: none;
        background: linear-gradient(135deg, #4facfe, #00f2fe);
        color: #fff;
        padding: 10px 16px;
        border-radius: 10px;
        font-size: 16px;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .search-form button:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 14px rgba(79,172,254,0.4);
        }

/* ===== Results Box ===== */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 999;
    text-align: center;
}

/* ===== Item ===== */
.search-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: #2c3e50;
    transition: background 0.25s ease;
}

    .search-item:hover {
        background: #f5f9ff;
    }

    /* ===== Image ===== */
    .search-item img {
        width: 46px;
        height: 46px;
        border-radius: 10px;
        object-fit: cover;
        background: #f1f1f1;
    }

    /* ===== Info ===== */
    .search-item .info {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        text-align: center;
    }

    .search-item strong {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-item small {
        font-size: 12px;
        color: #888;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ===== Empty State ===== */
    .search-item.empty {
        justify-content: center;
        color: #aaa;
        padding: 16px;
    }

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .search-box {
        max-width: 100%;
    }

    .search-form {
        border-radius: 10px;
    }

    .search-item img {
        width: 40px;
        height: 40px;
    }
}

/* ===== Item ===== */
.search-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: #2c3e50;
    transition: background 0.25s ease;
}

    /* ===== Image ===== */
    .search-item img {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        object-fit: cover;
        background: #f1f1f1;
        flex-shrink: 0;
    }

    /* ===== Info ===== */
    .search-item .info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        overflow: hidden;
    }
