﻿/*==================================================
HOME
==================================================*/

.categories {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
    width: 100%;
    padding: 8px 0 20px;
    align-content: start;
}

/*==================================================
CARD
==================================================*/

.card {
    position: relative;
    width: 100%;
    height: 145px;
    overflow: hidden;
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: linear-gradient( 180deg, #303848 0%, #222B39 100% );
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -3px 8px rgba(0,0,0,.25), 0 12px 28px rgba(0,0,0,.32);
    transition: .30s;
}

/*==================================================
BORDER
==================================================*/

.card-border {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.05);
    pointer-events: none;
}

/*==================================================
LIGHT EFFECT
==================================================*/

.card-light {
    position: absolute;
    left: -65px;
    top: -40px;
    width: 70px;
    height: 220px;
    transform: rotate(28deg);
    background: rgba(255,255,255,.08);
}

/*==================================================
BOTTOM GOLD
==================================================*/

.card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 68px;
    height: 3px;
    border-radius: 30px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

/*==================================================
CONTENT
==================================================*/

.card-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 12px;
}

/*==================================================
ICON
==================================================*/

.card-icon {
    margin-bottom: 12px;
}

    .card-icon i {
        font-size: 38px;
        color: var(--gold);
    }

/*==================================================
TITLE
==================================================*/

.card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}
/*==================================================
HOVER
==================================================*/

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(217,178,94,.35);
    box-shadow: 0 18px 36px rgba(0,0,0,.40), 0 0 20px rgba(217,178,94,.12);
}

    .card:hover .card-light {
        animation: cardShine .8s linear;
    }

    .card:hover .card-icon i {
        color: var(--gold-light);
        transform: scale(1.08);
    }

.card:active {
    transform: scale(.98);
}

/*==================================================
ANIMATION
==================================================*/

.card {
    opacity: 0;
    animation: cardIn .45s ease forwards;
}

    .card:nth-child(1) {
        animation-delay: .05s;
    }

    .card:nth-child(2) {
        animation-delay: .10s;
    }

    .card:nth-child(3) {
        animation-delay: .15s;
    }

    .card:nth-child(4) {
        animation-delay: .20s;
    }

    .card:nth-child(5) {
        animation-delay: .25s;
    }

    .card:nth-child(6) {
        animation-delay: .30s;
    }

    .card:nth-child(7) {
        animation-delay: .35s;
    }

    .card:nth-child(8) {
        animation-delay: .40s;
    }

    .card:nth-child(9) {
        animation-delay: .45s;
    }

@keyframes cardIn {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardShine {

    from {
        left: -70px;
    }

    to {
        left: 240px;
    }
}

/*==================================================
PHONE
==================================================*/

@media(max-width:390px) {

    .categories {
        gap: 10px;
    }

    .card {
        height: 132px;
        border-radius: 20px;
    }

    .card-border {
        border-radius: 20px;
    }

    .card-icon {
        margin-bottom: 8px;
    }

        .card-icon i {
            font-size: 32px;
        }

    .card-title {
        font-size: 14px;
        line-height: 18px;
    }
}

/*==================================================
TABLET
==================================================*/

@media(min-width:768px) {

    .categories {
        grid-template-columns: repeat(3,1fr);
        gap: 18px;
    }

    .card {
        height: 170px;
    }

    .card-icon i {
        font-size: 44px;
    }

    .card-title {
        font-size: 18px;
    }
}

/*==================================================
PERFORMANCE
==================================================*/

.card {
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}

    .card img {
        user-select: none;
        -webkit-user-drag: none;
    }

    .card i {
        pointer-events: none;
    }

.search-modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: flex-end;
    z-index: 99999;
}

    .search-modal.active {
        display: flex;
    }

.search-box {
    width: 100%;
    background: #07111D;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    animation: searchUp .25s ease;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

    .search-header span {
        color: #fff;
        font-size: 18px;
        font-weight: 600;
    }

    .search-header button {
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
    }

#txtSearch {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    background: #111d2a;
    color: #fff;
    padding: 0 18px;
    outline: none;
}

    #txtSearch::placeholder {
        color: #9aa3ad;
    }

@keyframes searchUp {

    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}
.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .search-input-wrapper input {
        width: 100%;
        height: 50px;
        padding: 0 16px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        outline: none;
        background: #111d2a;
        color: #fff;
        font-size: 15px;
    }

        .search-input-wrapper input::placeholder {
            color: #929ca7;
        }

.search-submit {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    background: #d9b25e;
    color: #07111d;
    font-size: 17px;
    cursor: pointer;
}