/* Search Modal Styles */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.search-modal-content {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(52, 82, 112, 0.95) 100%);
    border-radius: 15px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(107, 182, 255, 0.3), 0 0 100px rgba(155, 142, 255, 0.2);
    border: 1px solid var(--border-color);
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    background: var(--darker-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 18px;
    font-family: 'Josefin Sans', sans-serif;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(107, 182, 255, 0.2), 0 0 30px rgba(155, 142, 255, 0.3);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box i {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 20px;
}

.search-results {
    max-height: 500px;
    overflow-y: auto;
}

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--darker-bg) 0%, rgba(30, 58, 90, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    gap: 20px;
}

.search-result-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(107, 182, 255, 0.3), 0 0 30px rgba(155, 142, 255, 0.2);
    background: linear-gradient(135deg, rgba(30, 58, 90, 0.9) 0%, rgba(42, 69, 101, 0.9) 100%);
}

.search-result-info {
    flex: 1;
}

.search-result-info h4 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.search-result-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.search-result-price {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-modal {
        padding-top: 60px;
    }
    
    .search-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .search-box input {
        font-size: 16px;
        padding: 15px 50px 15px 20px;
    }
    
    .search-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .search-result-price {
        align-self: flex-end;
    }
}
