/**
 * Search Modal Styles
 * Modern, accessible search modal for WordPress
 */

/* Search Modal Container */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: block;
    opacity: 1;
}

/* Overlay Backdrop */
.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Modal Content Card */
.search-modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    margin: 10vh auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem 1rem;
}

.search-modal-title {
    font-size: 2rem;
    font-weight: 300;
    color: var(--gray-700);
    margin: 0;
}

.search-modal-close {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.2s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-close:hover {
    background: var(--gray-100);
    color: var(--charcoal);
}

.search-modal-close i {
    font-size: 28px;
}

/* Search Input Area */
.search-modal-input-wrapper {
    padding: 0 2rem 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: 1rem;
    pointer-events: none;
    font-size: 20px;
    color: var(--gray-500);
}

.search-modal-form {
    width: 100%;
}

.search-modal-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    font-family: inherit;
    background: white;
}

.search-modal-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(193, 216, 47, 0.1);
}

/* Clear Button */
.search-clear-btn {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gray-500);
    display: none;
    transition: all 0.2s;
}

.search-clear-btn i {
    font-size: 18px;
}

.search-clear-btn:hover {
    color: var(--charcoal);
}

.search-modal-hint {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        margin: 5vh auto;
        border-radius: 8px;
    }

    .search-modal-header,
    .search-modal-input-wrapper {
        padding: 1rem 1.5rem;
    }

    .search-modal-input {
        font-size: 16px;
        padding: 0.875rem 2.5rem 0.875rem 2.5rem;
    }

    .search-input-icon {
        font-size: 18px;
    }
}
