/* ASKRE Search Modal */
.askre-search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s;
}
.askre-search-trigger:hover {
    background: #f9fafb;
    border-color: #FF8C00;
    color: #FF8C00;
}

.askre-search-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}
.askre-search-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.askre-search-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: askre-slide-in 0.3s ease;
}
@keyframes askre-slide-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.askre-search-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
}
.askre-search-close:hover { background: #e5e7eb; color: #1f2937; }
.askre-search-content { padding: 32px; }
.askre-search-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 24px;
}
.askre-search-title svg { color: #FF8C00; }

.askre-search-input-wrapper { position: relative; margin-bottom: 16px; }
.askre-search-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.askre-search-input {
    width: 100%;
    padding: 14px 44px;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
}
.askre-search-input:focus { border-color: #FF8C00; }
.askre-search-clear {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.askre-search-suggestions {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
}
.askre-suggestion-group { padding: 8px 0; }
.askre-suggestion-group:not(:last-child) { border-bottom: 1px solid #f3f4f6; }
.askre-suggestion-label {
    padding: 8px 16px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}
.askre-suggestion-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
}
.askre-suggestion-item:hover { background: #f9fafb; }
.askre-suggestion-text { font-size: 0.9rem; color: #1f2937; }
.askre-suggestion-count { font-size: 0.8rem; color: #9ca3af; }

.askre-search-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.askre-filter-select {
    flex: 1;
    min-width: 100px;
    padding: 10px 28px 10px 12px;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
}
.askre-filter-select:focus { border-color: #FF8C00; outline: none; }

.askre-search-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #FF8C00;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}
.askre-search-submit:hover { background: #e07b00; }
#askre-search-count { opacity: 0.8; font-weight: 400; }

.askre-search-popular {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.askre-popular-label { font-size: 0.875rem; color: #6b7280; }
.askre-popular-tag {
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #374151;
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}
.askre-popular-tag:hover { background: #FF8C00; color: #fff; }

@media (max-width: 768px) {
    .askre-search-modal { padding-top: 5vh; }
    .askre-search-container { width: 95%; max-height: 90vh; overflow-y: auto; }
    .askre-search-content { padding: 24px 16px; }
    .askre-search-filters { flex-direction: column; }
    .askre-filter-select { min-width: 100%; }
}