/* -------- Desktop -------- */
.seo-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#seo-search-input {
    width: 100%;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 50px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#seo-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Search result items */
.seo-result {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #eee;
}
.seo-result:hover { background: #f9f9f9; }
.seo-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    margin-right: 10px;
}
.seo-info h4 { margin: 0 0 5px; font-size: 16px; }
.seo-info p { margin: 0; font-size: 14px; color: #555; }
.seo-no-results { padding: 10px; color: #999; }

/* -------- Mobile -------- */
@media (max-width: 768px) {
    .seo-search-wrapper {
        width: auto;
        max-width: none;
    }

    #seo-search-input {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        text-indent: -9999px;
        cursor: pointer;
        font-size: 0;
        transition: width 0.3s ease, padding 0.3s ease, font-size 0.3s ease;
        border: 1px solid #ddd;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }

    #seo-search-input.expanded {
        width: 90vw;
        max-width: 400px;
        height: 50px;
        border-radius: 50px;
        padding: 12px 25px;
        text-indent: 0;
        cursor: text;
        font-size: 16px;
    }

    #seo-search-results {
        width: 90vw;
        max-width: 400px;
        left: 5vw;
        top: -60px; /* dropdown above input */
        position: fixed;
    }
}
