/**
 * Advanced Full Screen Search Styles
 * 
 * @package GP_Result
 */

/* Full Screen Search Overlay */
.fullscreen-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 126, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.fullscreen-search.active {
    opacity: 1;
    visibility: visible;
}

/* Search Container */
.search-container {
    max-width: 700px;
    width: 90%;
    position: relative;
    animation: searchSlideUp 0.5s ease;
}

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

/* Search Form */
.fullscreen-search .search-form {
    position: relative;
    width: 100%;
}

/* Search Input */
.fullscreen-search input[type="search"] {
    width: 100%;
    padding: 20px 60px 20px 25px;
    font-size: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.fullscreen-search input[type="search"]:focus {
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    background: #fff;
}

.fullscreen-search input[type="search"]::placeholder {
    color: #999;
    opacity: 0.8;
}

/* Search Submit Button */
.fullscreen-search button[type="submit"] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #1a237e;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fullscreen-search button[type="submit"]:hover {
    background: #3f51b5;
    transform: translateY(-50%) scale(1.05);
}

.fullscreen-search button[type="submit"]:active {
    transform: translateY(-50%) scale(0.95);
}

/* Close Button */
.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    font-weight: 300;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
    border-color: #fff;
}

/* Search Suggestions/Results (Optional) */
.search-suggestions {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.search-suggestions.show {
    opacity: 1;
    transform: translateY(0);
}

.search-suggestions h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 18px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions ul li {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.search-suggestions ul li:last-child {
    border-bottom: none;
}

.search-suggestions ul li:hover {
    background: #f5f5f5;
    padding-left: 20px;
}

.search-suggestions ul li a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-suggestions ul li a i {
    color: #1a237e;
}

/* Search Helper Text */
.search-helper {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.search-helper kbd {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Popular Searches */
.popular-searches {
    margin-top: 30px;
    text-align: center;
}

.popular-searches h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popular-searches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.popular-searches-list a {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popular-searches-list a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Loading Spinner */
.search-loading {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(26, 35, 126, 0.3);
    border-top-color: #1a237e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.search-loading.active {
    display: block;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-container {
        width: 95%;
    }
    
    .fullscreen-search input[type="search"] {
        font-size: 18px;
        padding: 18px 55px 18px 20px;
    }
    
    .fullscreen-search button[type="submit"] {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .search-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .popular-searches-list {
        gap: 8px;
    }
    
    .popular-searches-list a {
        font-size: 13px;
        padding: 6px 16px;
    }
}

@media (max-width: 480px) {
    .fullscreen-search input[type="search"] {
        font-size: 16px;
        padding: 15px 50px 15px 18px;
    }
    
    .fullscreen-search button[type="submit"] {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .fullscreen-search button[type="submit"] span {
        display: none;
    }
    
    .search-close {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
}