/* ===== MODERN SEARCH STYLES ===== */
/* 
 * Enhanced Search UI - Simple & Sleek Design
 * Compatible with all existing templates and features
 * Preserves functionality while improving aesthetics
 */

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

/* Search Input - Modern & Sleek */
.ikbase-search-box input {
    width: 100%;
    padding: 18px 24px;
    padding-left: 56px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 400;
    color: #1e293b;
    outline: none;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Focus State - Enhanced */
.ikbase-search-box input:focus {
    border-color: #1e73be;
    box-shadow: 0 12px 40px rgba(30, 115, 190, 0.2), 
                0 0 0 4px rgba(30, 115, 190, 0.08);
    transform: translateY(-2px);
    background: #ffffff;
}

/* Search Icon - Modern SVG */
.ikbase-search-box::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' 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: all 0.3s ease;
    opacity: 0.7;
}

/* Icon Focus State */
.ikbase-search-box input:focus ~ .ikbase-search-box::before,
.ikbase-search-box:has(input:focus)::before {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231e73be' stroke-width='2.5' 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");
}

/* Placeholder - Modern */
.ikbase-search-box input::placeholder {
    color: #94a3b8;
    transition: color 0.3s ease;
    font-weight: 400;
}

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

/* Sticky Search - Enhanced */
.ikbase-sticky-search {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    opacity: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.ikbase-sticky-search .ikbase-search-box {
    max-width: 600px;
}

.ikbase-sticky-search .ikbase-search-box input {
    background: #f8fafc;
    border-color: #e2e8f0;
    padding: 14px 20px;
    padding-left: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ikbase-sticky-search .ikbase-search-box input:focus {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(30, 115, 190, 0.15),
                0 0 0 3px rgba(30, 115, 190, 0.08);
}

/* Search Results - Modern Container */
.ikbase-dynamic-results {
    max-width: 680px;
    margin: 32px auto;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ikbase-search-excerpt {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.7;
    font-weight: 400;
}

/* No Results - Modern State */
.ikbase-no-results {
    text-align: center;
    padding: 64px 32px;
    color: #64748b;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.ikbase-no-results h3 {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    margin: 16px 0 8px;
}

.ikbase-no-results p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* Loading State - Modern Spinner */
.ikbase-loading {
    text-align: center;
    padding: 48px 32px;
    color: #64748b;
}

.ikbase-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #1e73be;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-bottom: 16px;
}

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

/* Responsive Search - Mobile Optimized */
@media screen and (max-width: 768px) {
    .ikbase-search-box {
        margin: 0 16px;
        max-width: 100%;
    }
    
    .ikbase-search-box input {
        padding: 16px 20px;
        padding-left: 52px;
        font-size: 15px;
        border-radius: 14px;
    }
    
    .ikbase-search-box::before {
        width: 20px;
        height: 20px;
        left: 18px;
    }
    
    .ikbase-dynamic-results {
        margin: 24px 16px;
    }
    
    .ikbase-no-results {
        padding: 48px 24px;
        border-radius: 16px;
    }
    
    .ikbase-sticky-search .ikbase-search-box {
        max-width: 100%;
        margin: 0 16px;
    }
}

@media screen and (max-width: 480px) {
    .ikbase-search-box input {
        padding: 14px 18px;
        padding-left: 48px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    .ikbase-search-box::before {
        width: 18px;
        height: 18px;
        left: 16px;
    }
    
    .ikbase-no-results {
        padding: 40px 20px;
    }
} 