/**
 * Search Overlay Complete Styles
 * Modern arama overlay tasarımı
 */

/* Overlay Container */
.vt-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Dark Background */
.vt-search-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Search Container */
.vt-search-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 1;
}

.vt-search-overlay.active .vt-search-container {
    transform: scale(1);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.vt-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.vt-search-close:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

.vt-search-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #ef4444;
    border-radius: 2px;
}

.vt-search-close span:first-child {
    transform: rotate(45deg);
}

.vt-search-close span:last-child {
    transform: rotate(-45deg);
}

/* Search Header */
.vt-search-header {
    text-align: center;
    margin-bottom: 30px;
}

.vt-search-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.vt-search-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Search Form */
.vt-search-form {
    margin-bottom: 30px;
}

.vt-search-input-group {
    display: flex;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.vt-search-input-group:focus-within {
    border-color: #006233;
    box-shadow: 0 0 0 4px rgba(0, 98, 51, 0.1);
}

.vt-search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #1f2937;
    background: transparent;
}

.vt-search-input::placeholder {
    color: #9ca3af;
}

.vt-search-submit {
    background: linear-gradient(135deg, #006233 0%, #007a3d 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vt-search-submit:hover {
    background: linear-gradient(135deg, #004d26 0%, #006233 100%);
    transform: translateX(-2px);
}

.vt-search-submit i {
    font-size: 18px;
}

/* Autocomplete Dropdown */
.vt-search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Popular Searches */
.vt-search-suggestions {
    text-align: center;
}

.vt-search-suggestions h4 {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vt-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.vt-search-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vt-search-tag:hover {
    background: linear-gradient(135deg, #006233 0%, #007a3d 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 98, 51, 0.2);
}

.vt-search-tag i {
    font-size: 12px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .vt-search-container {
        width: 95%;
        padding: 40px 20px 30px;
        border-radius: 16px;
    }
    
    .vt-search-title {
        font-size: 24px;
    }
    
    .vt-search-subtitle {
        font-size: 14px;
    }
    
    .vt-search-input {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .vt-search-submit {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .vt-search-submit span {
        display: none;
    }
    
    .vt-search-close {
        width: 36px;
        height: 36px;
        top: 15px;
        right: 15px;
    }
    
    .vt-search-tags {
        gap: 8px;
    }
    
    .vt-search-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .vt-search-container {
        border-radius: 12px;
    }
    
    .vt-search-input-group {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .vt-search-input {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .vt-search-submit {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
}