/* =========================================
   APPZONE
   SEARCH PAGE
========================================= */

.search-page {
    padding:
        14px 16px 30px;
}


/* =========================
   SEARCH BOX
========================= */

.main-search-box {
    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding:
        0 14px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background:
        var(--surface);

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.15);
}


.search-symbol {
    flex-shrink: 0;

    color:
        var(--yellow);

    font-size: 24px;
}


.main-search-box input {
    min-width: 0;

    flex: 1;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    font-size: 14px;
}


.main-search-box input::placeholder {
    color:
        var(--muted);
}


.clear-search {
    width: 27px;
    height: 27px;

    flex-shrink: 0;

    display: none;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background:
        var(--surface-2);

    color:
        #b7c0c9;

    font-size: 19px;

    cursor: pointer;
}


.clear-search.visible {
    display: flex;
}



/* =========================
   HEADING
========================= */

.search-heading {
    padding:
        27px 2px 13px;
}


.search-heading h1 {
    font-size: 21px;

    font-weight: 600;
}


.search-heading p {
    margin-top: 5px;

    color:
        var(--muted);

    font-size: 12px;
}



/* =========================
   RESULTS
========================= */

.search-results {
    display: flex;

    flex-direction: column;
}


.search-result {
    min-height: 90px;

    padding:
        10px 0;

    display: flex;

    align-items: center;

    gap: 13px;

    border-bottom:
        1px solid rgba(32, 43, 57, 0.6);
}


.search-result-icon {
    width: 64px;
    height: 64px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 16px;

    background:
        var(--surface-2);
}


.search-result-info {
    min-width: 0;

    flex: 1;
}


.search-result-name {
    color:
        #f3f5f7;

    font-size: 15px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.search-result-developer {
    margin-top: 4px;

    color:
        var(--secondary);

    font-size: 11px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.search-result-meta {
    margin-top: 6px;

    display: flex;

    align-items: center;

    gap: 8px;

    color:
        var(--muted);

    font-size: 11px;
}


.search-result-rating {
    color:
        #c7cdd4;
}


.search-result-rating span {
    color:
        var(--yellow);
}


.search-result-category {
    white-space: nowrap;
}


.search-result-button {
    width: 65px;
    height: 34px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        var(--yellow);

    color:
        #111;

    font-size: 11px;

    font-weight: 800;
}



/* =========================
   EMPTY STATE
========================= */

.search-empty {
    min-height: 290px;

    margin-top: 5px;

    padding:
        30px 20px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    border:
        1px dashed var(--border);

    border-radius: 17px;

    background:
        rgba(16, 23, 34, 0.3);
}


.search-empty-icon {
    width: 64px;
    height: 64px;

    margin-bottom: 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255, 224, 0, 0.1);

    color:
        var(--yellow);

    font-size: 31px;
}


.search-empty h2 {
    font-size: 16px;

    font-weight: 600;
}


.search-empty p {
    max-width: 270px;

    margin-top: 7px;

    color:
        var(--muted);

    font-size: 12px;

    line-height: 1.5;
}



/* =========================
   NO RESULTS
========================= */

.no-results {
    min-height: 230px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


.no-results-icon {
    font-size: 35px;

    color:
        var(--yellow);

    margin-bottom: 12px;
}


.no-results h2 {
    font-size: 16px;
}


.no-results p {
    margin-top: 6px;

    color:
        var(--muted);

    font-size: 12px;
}



/* =========================
   DESKTOP
========================= */

@media (min-width: 700px) {

    .search-page {
        padding-left: 24px;
        padding-right: 24px;
    }

}