/* ===============================
   COLOR PALETTE
================================ */

:root {
    --transparent-yellow: #F5EFC6;
    --sceptre-red: #4D0E12;
    --cerulean-blue: #A5BCD6;
    --potting-soil: #4A2E27;
    --java-brown: #231815;
    --white: #FFFFFF;
}


/* ===============================
   APPS & TOOLS SECTION
================================ */

.apps-tools-section {
    min-height: 100vh;
    padding: 80px 7% 100px;

    background:
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #F5EFC6 55%,
            #A5BCD6 100%
        );

    color: var(--java-brown);
}


/* HEADER */

.apps-header {
    max-width: 750px;
    margin-bottom: 40px;
}

.section-label {
    color: var(--sceptre-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.apps-header h1 {
    font-size: 52px;
    color: var(--sceptre-red);
    margin-bottom: 15px;
}

.apps-description {
    line-height: 1.8;
    font-size: 15px;
    color: var(--potting-soil);
}


/* ===============================
   SEARCH BAR
================================ */

.search-container {
    max-width: 600px;

    display: flex;
    align-items: center;

    background: var(--white);

    border: 1px solid rgba(77, 14, 18, 0.15);

    border-radius: 14px;

    padding: 0 18px;

    margin-bottom: 25px;

    box-shadow:
        0 5px 20px rgba(35, 24, 21, 0.08);
}


.search-container i {
    color: var(--sceptre-red);
    margin-right: 12px;
}


.search-container input {
    width: 100%;

    padding: 16px 0;

    border: none;
    outline: none;

    font-size: 14px;

    background: transparent;

    color: var(--java-brown);
}


/* ===============================
   CATEGORY FILTER
================================ */

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 40px;
}


.category-btn {
    border: 1px solid var(--sceptre-red);

    background: transparent;

    color: var(--sceptre-red);

    padding: 10px 18px;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}


.category-btn:hover {
    background: var(--sceptre-red);
    color: var(--white);
}


.category-btn.active {
    background: var(--sceptre-red);
    color: var(--white);
}


/* ===============================
   APPS GRID
================================ */

.apps-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    max-width: 1400px;
}


/* ===============================
   APP CARD
================================ */

.app-card {
    min-height: 310px;

    background: rgba(255, 255, 255, 0.88);

    border-radius: 20px;

    padding: 25px;

    position: relative;

    display: flex;
    flex-direction: column;

    border:
        1px solid rgba(35, 24, 21, 0.08);

    box-shadow:
        0 8px 25px rgba(35, 24, 21, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.app-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 35px rgba(35, 24, 21, 0.14);
}


/* ALTERNATE CARD COLORS */

.app-card:nth-child(4n + 2) {
    background: var(--cerulean-blue);
}


.app-card:nth-child(4n + 3) {
    background: var(--transparent-yellow);
}


.app-card:nth-child(4n + 4) {
    background: var(--potting-soil);
    color: white;
}


.app-card:nth-child(4n + 4) h2 {
    color: var(--transparent-yellow);
}


.app-card:nth-child(4n + 4) p {
    color: white;
}


.app-card:nth-child(4n + 4) a {
    color: var(--transparent-yellow);
}


/* ===============================
   ICON
================================ */

.app-icon {
    width: 52px;
    height: 52px;

    border-radius: 14px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--sceptre-red);

    color: var(--white);

    font-size: 21px;

    margin-bottom: 25px;
}


/* CATEGORY LABEL */

.app-category {
    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    color: var(--sceptre-red);

    margin-bottom: 8px;
}


.app-card:nth-child(4n + 4)
.app-category {
    color: var(--cerulean-blue);
}


/* TITLE */

.app-card h2 {
    color: var(--java-brown);

    font-size: 20px;

    margin-bottom: 10px;
}


/* DESCRIPTION */

.app-card p {
    font-size: 13px;

    line-height: 1.6;

    color: var(--potting-soil);

    margin-bottom: 25px;
}


/* OPEN TOOL */

.app-card a {
    margin-top: auto;

    color: var(--sceptre-red);

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    display: flex;

    align-items: center;

    gap: 8px;
}


.app-card a:hover {
    text-decoration: underline;
}


/* ===============================
   NO RESULTS
================================ */

#noResults {
    display: none;

    padding: 60px 20px;

    text-align: center;

    color: var(--potting-soil);
}


#noResults i {
    font-size: 35px;

    color: var(--sceptre-red);

    margin-bottom: 15px;
}


#noResults h3 {
    margin-bottom: 7px;
}


/* ===============================
   TABLET
================================ */

@media (max-width: 1100px) {

    .apps-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* ===============================
   MOBILE
================================ */

@media (max-width: 600px) {

    .apps-tools-section {
        padding:
            60px 5% 80px;
    }

    .apps-header h1 {
        font-size: 38px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .category-buttons {
        gap: 7px;
    }

    .category-btn {
        padding: 8px 14px;
        font-size: 11px;
    }

}

