/* 搜索容器樣式 */
#searchContainer {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 搜索框包裝器 */
.search-wrapper {
    position: relative;
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

/* 搜索框聚焦時的樣式 */
.search-wrapper.focused {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 搜索輸入框 */
#koreanSearchInput {
    width: 100%;
    height: 100%;
    padding: 0 48px 0 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    outline: none;
}

#koreanSearchInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* 搜索圖標 */
.search-icon {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

/* 清除按鈕 */
.clear-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.clear-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* 無結果提示 */
.no-results {
    width: 100%;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    animation: fadeIn 0.3s ease;
}

/* 頭像動畫效果 */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 適配移動設備 */
@media (max-width: 480px) {
    #searchContainer {
        padding: 0 10px;
    }

    .search-wrapper {
        height: 42px;
    }

    #koreanSearchInput {
        font-size: 14px;
    }
}

/* 優化觸摸設備體驗 */
@media (hover: none) {
    .clear-button {
        padding: 8px;
    }
}
