/* Alap konténer stílusok */
.instant-search {
    position: relative;
}

.live-search-wrapper {
    position: relative;
    display: inline-block;
}

/* Kereső ikon stílusok */
.search-trigger {
    cursor: pointer;
    display: inline-block;
}

.search-trigger svg {
    width: 23px;
    height: auto;
    fill: #050327;
    transition: fill 0.3s ease;
}

.search-trigger:hover svg {
    fill: #69727d;
}

/* Off-canvas kereső panel */
.off-canvas-search {
    position: fixed;
    top: 0;
    right: -550px;
    width: 100%;
    max-width: 550px;
    height: 100%;
    background-color: white;
    transition: right 0.3s ease;
    padding: 45px;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.off-canvas-search.active {
    right: 0;
}

/* Kereső input mező */
#live-search-input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: none;
    border-radius: 0;
    background-color: #f5f5f5;
    font-size: 16px;
    font-family: "mundial", Sans-serif;
    color: #050327;
    outline: none;
    transition: background-color 0.3s ease;
}

#live-search-input:focus {
    background-color: #eef0f1;
}

#live-search-input::placeholder {
    color: #777;
    font-weight: 300;
}

/* Népszerű keresések szakasz */
.popular-searches {
    margin-bottom: 30px;
}

.search-tags {
    display: none;
}

.search-tag {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 0;
    color: #050327;
    font-size: 14px;
    font-family: "mundial", Sans-serif;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background-color: #050327;
    color: white;
}

/* Keresési találatok */
#live-search-results {
    display: grid;
    gap: 20px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 100%;
    color: inherit;
}

.search-result-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-name {
    font-family: "mundial", Sans-serif;
    font-size: 15px;
    color: #050327;
    font-weight: 300;
}

/* Bezárás gomb */
.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close::before,
.search-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background-color: #050327;
    transform-origin: center;
    transition: background-color 0.3s ease;
}

.search-close:hover::before,
.search-close:hover::after {
    background-color: #69727d;
}

.search-close::before {
    transform: rotate(45deg);
}

.search-close::after {
    transform: rotate(-45deg);
}

/* Overlay háttér */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 3, 39, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#search-overlay.active {
    display: block;
    opacity: 1;
}

/* Állapot üzenetek */
.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-family: "mundial", Sans-serif;
    font-weight: 300;
}

/* Reszponzív beállítások */
@media (max-width: 768px) {
    .off-canvas-search {
        max-width: 100%;
        padding: 20px;
        right: -100%;
    }
    
    .search-close {
        top: 15px;
        right: 15px;
    }
    
    #live-search-input {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .search-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-image {
        width: 50px;
        height: 50px;
    }
    
    .search-result-name {
        font-size: 14px;
    }
}