/* Navigation search styles */
/* Base styles */
.nextron-search-nav-item {
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
}

/* Hide all desktop elements by default */
.desktop-only {
    display: none;
}

.nextron-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    width: 40px;
    height: 40px;
}

.nextron-search-box {
    position: fixed;
    right: 20px;
    top: 80px;
    background: white;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 9999;
    min-width: 300px;
    display: none;
}

.nextron-search-container {
    position: relative;
    margin-bottom: 0;
}

.nextron-search-field {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.nextron-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.nextron-autocomplete-list.show {
    display: block;
}

.nextron-autocomplete-list li {
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.nextron-autocomplete-list li:hover {
    background: #f5f5f5;
}

/* Search results page styles */
.nextron-search-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.nextron-search-header {
    margin-bottom: 30px;
}

.nextron-search-title {
    margin: 20px 0;
    font-size: 24px;
    font-weight: 500;
}

.nextron-search-results {
    margin-top: 20px;
}

.nextron-result {
    margin-bottom: 20px;
    padding: 15px 0 15px 0;
    border-bottom: 1px solid #eee;
}

.nextron-result h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.nextron-result p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
}

.nextron-result-url {
    color: #666;
    font-size: 12px;
    word-break: break-all;
}

.nextron-loading,
.nextron-error,
.nextron-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Mobile styles */
@media (max-width: 1300px) {
    #header-regular .nextron-search-nav-item {
        display: none;
    }
    
    .nextron-search-box {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        margin: 10px;
        border-radius: 0;
        width: 100%;
        max-width: none;
        padding: 20px;
    }

    .nextron-search-container {
        margin: 0;
    }

    .nextron-autocomplete-list {
        left: 20px;
        right: 20px;
    }
}

@media (min-width: 1301px) {
    #header-responsive .nextron-search-nav-item {
        display: none;
    }
    
    #header-regular .nextron-search-nav-item {
        display: flex;
    }
    
    #header-regular .desktop-only {
        display: block;
    }
}

/* Shortcode specific styles */
.nextron-form-wrapper,
.nextron-link-wrapper {
    display: inline-flex;
    align-items: center;
}

.nextron-form-trigger,
.nextron-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    width: 40px;
    height: 40px;
}

.nextron-form-wrapper .nextron-search-box {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 9999;
    min-width: 300px;
}