.ja-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ja-search-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.ja-search-modal-content {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    position: relative;
}

.ja-search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    line-height: 1;
    padding: 0;
}

.ja-search-close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.ja-search-input-wrapper {
    position: relative;
    width: 100%;
}

.ja-search-input {
    width: 100%;
    padding: 20px 60px 20px 20px;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgb(255, 203, 5);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.ja-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid #fbbf24;
    border-color: #fbbf24;

}

.ja-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    pointer-events: none;
}

.ja-search-results {
    margin-top: 30px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding: 0 10px;
}

.ja-search-results::-webkit-scrollbar {
    width: 8px;
}

.ja-search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.ja-search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.ja-search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .ja-search-modal-content {
        padding: 20px;
    }

    .ja-search-close {
        top: 20px;
        right: 20px;
        font-size: 36px;
        width: 50px;
        height: 50px;
    }

    .ja-search-input {
        font-size: 24px;
        padding: 16px 50px 16px 16px;
    }

    .ja-search-icon {
        font-size: 24px;
        right: 16px;
    }
}

.ja-search-loading,
.ja-search-error,
.ja-search-no-results {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    padding: 20px;
    text-align: center;
}

.ja-search-error {
    color: #ff6b6b;
}

.ja-search-results-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 20px;
}

.ja-search-section {
    margin-bottom: 30px;
}

.ja-search-section-title {
    color: #fbbf24;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ja-search-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ja-search-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #fff;
}

.ja-search-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.ja-search-item-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.ja-search-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ja-search-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ja-search-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.ja-search-item-excerpt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.ja-search-item-type {
    font-size: 11px;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

@media (max-width: 768px) {
    .ja-search-section-title {
        font-size: 16px;
    }

    .ja-search-item {
        gap: 12px;
        padding: 10px;
    }

    .ja-search-item-thumb {
        width: 60px;
        height: 90px;
    }

    .ja-search-item-title {
        font-size: 14px;
    }

    .ja-search-item-excerpt {
        font-size: 12px;
    }
}
