/* =========================================
   SEARCH OVERLAY POPUP STYLE
   ========================================= */

/* 1. Container Full Layar (Default Sembunyi) */
.search-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99999; /* Paling depan */
    
    /* Flexbox untuk menaruh Modal di tengah atas */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Modal mulai dari atas */
    padding-top: 80px; /* Jarak dari atas layar */
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* KELAS AKTIF (Dipicu JS) */
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 2. Background Blur (Kaca Buram) */
.search-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    
    /* EFEK BLUR */
    background-color: rgba(0, 0, 0, 0.4); /* Hitam transparan 40% */
    backdrop-filter: blur(8px); /* Blur latar belakang 8px */
    -webkit-backdrop-filter: blur(8px); /* Support Safari */
}

/* 3. Kotak Modal Putih */
.search-modal {
    position: relative;
    width: 90%;
    max-width: 500px; /* Lebar maksimal seperti HP */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-overlay.active .search-modal {
    transform: translateY(0); /* Efek turun sedikit saat muncul */
}

/* --- BAGIAN INPUT (HEADER) --- */
.search-modal-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.search-form-modal {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 5px 10px;
}

.modal-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 15px;
    outline: none;
    color: #333;
}

.modal-search-btn {
    background: none; border: none; padding: 5px; cursor: pointer;
}

.modal-close-btn {
    background: none; border: none; 
    font-weight: 600; font-size: 14px; color: #666;
    margin-left: 10px; cursor: pointer;
}

/* --- BAGIAN LIST TRENDING (BODY) --- */
.search-modal-body {
    padding: 20px;
}

.trending-label {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
    color: #111;
}

.trending-list {
    list-style: none; padding: 0; margin: 0;
}

.trending-list li {
    margin-bottom: 15px;
}

.trending-list li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: background 0.2s;
}

.trend-rank {
    font-weight: 700; color: #999; 
    width: 30px; /* Lebar tetap agar rapi */
}

.trend-name {
    flex: 1; /* Mengisi ruang tengah */
    font-weight: 500;
}

.trend-icon svg {
    display: block;
    width: 16px; height: 16px;
}

.search-footer-note {
    margin-top: 25px;
    font-size: 13px; font-weight: 700; color: #111;
}