/**
 * Search Overlay Styles
 * Full-screen search interface
 */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.search-overlay-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    padding: 40px 20px;
}

.search-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.search-close svg {
    width: 24px;
    height: 24px;
    stroke: white !important;
    stroke-width: 2 !important;
    fill: none !important;
    flex-shrink: 0;
    display: block;
}

.search-close svg line {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: rotate(90deg);
}

.search-box {
    margin-top: 60px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 8px;
    transition: border-color 0.3s ease;
}

.search-form:focus-within {
    border-color: #00a651;
    background: rgba(255, 255, 255, 0.15);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 20px;
    font-size: 24px;
    color: white;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-submit {
    width: 56px;
    height: 56px;
    background: #00a651;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.search-submit svg {
    width: 24px;
    height: 24px;
    stroke: white !important;
    stroke-width: 2 !important;
    fill: none !important;
    flex-shrink: 0;
    display: block;
}

.search-submit svg circle,
.search-submit svg path {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.search-submit:hover {
    background: #008c45;
    transform: scale(1.05);
}

.search-hint {
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-overlay-content {
        padding: 30px 15px;
    }
    
    .search-input {
        font-size: 18px;
        padding: 12px 16px;
    }
    
    .search-submit {
        width: 48px;
        height: 48px;
    }
    
    .search-close {
        width: 40px;
        height: 40px;
    }
}

/* Animation */
@keyframes searchFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-overlay.active .search-box {
    animation: searchFadeIn 0.4s ease 0.1s both;
}
