/* =========================================
   APPZONE
   APPS PAGE
========================================= */


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

.apps-search {
    padding:
        7px 16px 13px;
}


.search-box {
    height: 48px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        0 15px;

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

    border-radius: 14px;

    background:
        var(--surface);
}


.search-box span {
    color:
        var(--yellow);

    font-size: 23px;
}


.search-box input {
    width: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: white;

    font-size: 14px;
}


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



/* =========================
   CATEGORY CHIPS
========================= */

.apps-chips {
    padding-top: 0;
    padding-bottom: 18px;
}


.apps-chips .chip {
    border: none;

    cursor: pointer;
}


.apps-chips .chip.active {
    background:
        var(--yellow);

    color:
        #111;
}



/* =========================
   PAGE
========================= */

.apps-page {
    padding:
        4px 16px 30px;
}


.apps-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 10px;
}


.apps-heading h1 {
    font-size: 25px;

    font-weight: 600;
}


.apps-heading p {
    margin-top: 4px;

    color:
        var(--muted);

    font-size: 12px;
}


.sort-button {
    height: 38px;

    padding:
        0 13px;

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

    border-radius: 10px;

    background:
        var(--surface);

    color:
        #dce2e8;

    font-size: 12px;

    cursor: pointer;
}



/* =========================
   APPS LIST
========================= */

.apps-list {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.app-row {
    min-height: 96px;

    padding:
        10px 0;

    display: flex;

    align-items: center;

    gap: 13px;

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


.app-row-icon {
    width: 68px;
    height: 68px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 17px;

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


.app-row-info {
    min-width: 0;

    flex: 1;
}


.app-row-name {
    color:
        #f4f6f8;

    font-size: 15px;

    font-weight: 500;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.app-row-developer {
    margin-top: 4px;

    color:
        var(--secondary);

    font-size: 11px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.app-row-meta {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 6px;

    color:
        #b3bdc7;

    font-size: 11px;
}


.app-row-rating {
    padding:
        3px 6px;

    border-radius: 6px;

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


.app-row-rating span {
    color:
        var(--yellow);
}


.app-row-size {
    color:
        var(--muted);
}


.install-button {
    width: 67px;
    height: 34px;

    flex-shrink: 0;

    border: none;

    border-radius: 8px;

    background:
        var(--yellow);

    color:
        #111;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;
}


.install-button:active {
    transform:
        scale(0.96);
}



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

.apps-empty {
    min-height: 300px;

    margin-top: 10px;

    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.35);
}


.apps-empty-icon {
    width: 62px;
    height: 62px;

    margin-bottom: 15px;

    display: flex;

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

    border-radius: 17px;

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

    color:
        var(--yellow);

    font-size: 29px;

    font-weight: 900;
}


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

    font-weight: 600;
}


.apps-empty p {
    margin-top: 7px;

    color:
        var(--muted);

    font-size: 12px;
}



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

@media (min-width: 700px) {

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

}