.swpabm-search-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 99999;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.swpabm-search-modal.active {
opacity: 1;
visibility: visible;
}
.swpabm-search-modal-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
backdrop-filter: blur(10px);
}
.swpabm-search-modal-content {
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background: #ffffff;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.swpabm-search-close {
position: absolute;
top: 15px;
right: 15px;
width: 40px;
height: 40px;
border: none;
background: rgba(0, 0, 0, 0.05);
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
z-index: 10;
}
.swpabm-search-close:hover {
background: rgba(0, 0, 0, 0.1);
transform: rotate(90deg);
}
.swpabm-search-close .dashicons {
font-size: 20px;
width: 20px;
height: 20px;
}
.swpabm-search-container {
padding: 20px;
max-width: 800px;
width: 100%;
margin: 60px auto 20px;
}
.swpabm-search-form {
margin-bottom: 30px;
}
.swpabm-search-input-wrapper {
position: relative;
display: flex;
align-items: center;
background: #f5f5f5;
border-radius: 50px;
padding: 15px 20px;
margin-bottom: 15px;
}
.swpabm-search-icon {
font-size: 24px;
width: 24px;
height: 24px;
color: #666;
margin-right: 10px;
flex-shrink: 0;
}
.swpabm-search-input {
flex: 1;
border: none;
background: transparent;
font-size: 18px;
outline: none;
padding: 0;
color: #333;
}
.swpabm-search-input::placeholder {
color: #999;
}
.swpabm-search-clear {
width: 28px;
height: 28px;
border: none;
background: rgba(0, 0, 0, 0.1);
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
margin-left: 10px;
flex-shrink: 0;
transition: background 0.2s ease;
}
.swpabm-search-clear:hover {
background: rgba(0, 0, 0, 0.15);
}
.swpabm-search-clear .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
}
.swpabm-search-submit {
width: 100%;
padding: 15px 20px;
background: #0073aa;
color: white;
border: none;
border-radius: 50px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: background 0.3s ease;
}
.swpabm-search-submit:hover {
background: #005a87;
}
.swpabm-search-suggestions {
margin-top: 20px;
}
.swpabm-search-recent,
.swpabm-search-tags {
margin-bottom: 30px;
}
.swpabm-search-recent h3,
.swpabm-search-tags h3 {
font-size: 14px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #666;
margin-bottom: 15px;
font-weight: 600;
}
.swpabm-search-recent ul {
list-style: none;
margin: 0;
padding: 0;
}
.swpabm-search-recent li {
margin-bottom: 12px;
}
.swpabm-search-recent a {
display: flex;
align-items: center;
padding: 12px;
background: #f9f9f9;
border-radius: 8px;
text-decoration: none;
color: #333;
transition: all 0.2s ease;
}
.swpabm-search-recent a:hover {
background: #f0f0f0;
transform: translateX(5px);
}
.swpabm-search-recent a .dashicons {
margin-right: 12px;
color: #999;
font-size: 18px;
width: 18px;
height: 18px;
}
.swpabm-tag-cloud {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.swpabm-tag {
display: inline-block;
padding: 8px 16px;
background: #f0f0f0;
border-radius: 20px;
text-decoration: none;
color: #666;
font-size: 14px;
transition: all 0.2s ease;
}
.swpabm-tag:hover {
background: #0073aa;
color: white;
transform: translateY(-2px);
}
.swpabm-search-results {
margin-top: 20px;
}
.swpabm-search-loading {
text-align: center;
padding: 40px 20px;
color: #999;
}
.swpabm-search-no-results {
text-align: center;
padding: 40px 20px;
}
.swpabm-search-no-results .dashicons {
font-size: 48px;
width: 48px;
height: 48px;
color: #ddd;
margin-bottom: 15px;
}
.swpabm-search-no-results h3 {
color: #666;
margin-bottom: 10px;
}
.swpabm-search-no-results p {
color: #999;
} @keyframes slideInUp {
from {
transform: translateY(100%);
}
to {
transform: translateY(0);
}
}
.swpabm-search-modal.active .swpabm-search-modal-content {
animation: slideInUp 0.3s ease-out;
} @media (max-width: 768px) {
.swpabm-search-container {
padding: 15px;
margin-top: 50px;
}
.swpabm-search-input {
font-size: 16px; }
}
@media (min-width: 769px) {
.swpabm-search-modal-content {
max-width: 800px;
margin: 0 auto;
border-radius: 0;
}
.swpabm-search-container {
margin-top: 80px;
}
} @media (prefers-color-scheme: dark) {
.swpabm-search-modal-content {
background: #1a1a1a;
color: #ffffff;
}
.swpabm-search-close {
background: rgba(255, 255, 255, 0.1);
color: #ffffff;
}
.swpabm-search-close:hover {
background: rgba(255, 255, 255, 0.2);
}
.swpabm-search-input-wrapper {
background: #2a2a2a;
}
.swpabm-search-input {
color: #ffffff;
}
.swpabm-search-input::placeholder {
color: #666;
}
.swpabm-search-recent a {
background: #2a2a2a;
color: #ffffff;
}
.swpabm-search-recent a:hover {
background: #333;
}
.swpabm-tag {
background: #2a2a2a;
color: #ccc;
}
.swpabm-tag:hover {
background: #0073aa;
color: white;
}
}