
/* =========================================
   GLOBAL APPS PAGE
========================================= */

.apps-page {
    width: 100%;
    min-height: 70vh;
    color: var(--color-text, #1f2937);
}

/* HERO */

.apps-hero {
    padding: 85px 24px;
    background: linear-gradient(120deg, #fff7f1, #ffffff);
    text-align: center;
}

.apps-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.apps-eyebrow,
.apps-section-label {
    display: inline-block;
    color: #EC611B;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 15px;
}

.apps-hero h1 {
    font-size: clamp(36px, 5vw, 55px);
    line-height: 1.15;
    font-weight: 800;
    color: #172033;
    margin-bottom: 20px;
}

.apps-hero h1 span {
    color: #EC611B;
}

.apps-hero p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: #667085;
    font-size: 16px;
    line-height: 1.8;
}

/* MAIN CONTAINER */

.apps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 24px;
}

.apps-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.apps-section-heading h2 {
    color: #172033;
    font-size: 30px;
    font-weight: 750;
    margin-bottom: 8px;
}

.apps-section-heading p {
    color: #667085;
    font-size: 14px;
}

.apps-count {
    color: #667085;
    font-size: 13px;
    white-space: nowrap;
}

/* SEARCH */

.apps-toolbar {
    margin-bottom: 28px;
}

.apps-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    min-height: 48px;
    padding: 0 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
}

.apps-search span {
    color: #98a2b3;
    font-size: 24px;
}

.apps-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #344054;
    font-size: 14px;
}

.apps-search:focus-within {
    border-color: #EC611B;
    box-shadow: 0 0 0 3px rgba(236, 97, 27, 0.10);
}

/* APP GRID */

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.app-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e9e9e9;
    border-radius: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: #f2b18e;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.app-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.app-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 13px;
    background: #FDF2EC;
    color: #EC611B;
    font-size: 27px;
    font-weight: 700;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.app-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 20px;
    background: #ecfdf3;
    color: #027a48;
    font-size: 11px;
    font-weight: 650;
}

.app-card h3 {
    color: #172033;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.app-card p {
    min-height: 65px;
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.app-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.app-card-action a {
    color: #EC611B;
    font-size: 13px;
    font-weight: 700;
}

.app-card-action a:hover {
    color: #D65313;
}

.app-card-action span {
    color: #98a2b3;
    font-size: 19px;
}

/* LOADING / ERROR / EMPTY */

.apps-message {
    grid-column: 1 / -1;
    padding: 35px 20px;
    color: #667085;
    text-align: center;
    background: #fafafa;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

/* CTA */

.apps-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 55px max(24px, calc((100% - 1152px) / 2));
    background: #fff7f1;
}

.apps-cta h2 {
    color: #172033;
    font-size: 26px;
    margin-bottom: 10px;
}

.apps-cta p {
    max-width: 650px;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .apps-hero {
        padding: 60px 20px;
    }

    .apps-container {
        padding: 50px 18px;
    }

    .apps-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .apps-section-heading h2 {
        font-size: 25px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .app-card p {
        min-height: auto;
    }

    .apps-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 40px 20px;
    }

    .apps-cta h2 {
        font-size: 23px;
    }
}
