/* Search Styles */
.ikbase-search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.ikbase-search-box input {
    width: 100%;
    padding: 15px 20px;
    padding-left: 50px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    color: #333;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ikbase-search-box input:focus {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ikbase-search-box::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ikbase-search-box input:focus + .ikbase-search-box::before {
    opacity: 0.8;
}

.ikbase-search-box input::placeholder {
    color: #888;
    transition: color 0.3s ease;
}

.ikbase-search-box input:focus::placeholder {
    color: #aaa;
}

/* Sticky Search */
.ikbase-sticky-search {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    opacity: 0;
}

.ikbase-sticky-search.sticky-active {
    top: 0;
    opacity: 1;
}

.ikbase-sticky-search .ikbase-search-box input {
    background: #f8f9fa;
}

/* Search Results */
.ikbase-dynamic-results {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ikbase-search-excerpt {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    line-height: 1.6;
}

.ikbase-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Loading State */
.ikbase-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.ikbase-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e73be;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Search */
@media screen and (max-width: 768px) {
    .ikbase-search-box {
        margin: 0 20px;
    }
    
    .ikbase-search-box input {
        padding: 12px 20px;
        padding-left: 45px;
        font-size: 15px;
    }
    
    .ikbase-search-box::before {
        width: 18px;
        height: 18px;
        left: 15px;
    }
} 