/*=============== MINI APPS PAGE STYLES ===============*/

/*==================== MINI APPS SECTION ====================*/
.mini-apps__container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.mini-apps__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    row-gap: 1.5rem;
    margin-top: 2rem;
}

.mini-apps__card {
    background-color: var(--container-color);
    padding: 1rem;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.mini-apps__card:hover {
    transform: translateY(-0.35rem);
    box-shadow: 0 6px 20px hsla(207, 24%, 35%, 0.12);
}

.mini-apps__badge {
    width: 70px;
    height: 70px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.mini-apps__card:hover .mini-apps__badge {
    transform: scale(1.1);
}

.mini-apps__badge--icon {
    background: transparent;
}

.mini-apps__badge--icon i {
    font-size: 2.5rem;
    color: var(--first-color);
}

.mini-apps__content {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mini-apps__title {
    font-size: var(--h3-font-size);
    font-family: var(--title-font);
    color: var(--title-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.mini-apps__description {
    font-size: var(--small-font-size);
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
    max-width: 250px;
    min-height: 4rem;
}

.mini-apps__link {
    display: inline-block;
    color: var(--title-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    background-color: transparent;
    border: 1px solid var(--text-color-light);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

.mini-apps__link:hover {
    color: var(--body-color);
    background-color: var(--first-color);
    border-color: var(--first-color);
}

/*=============== RESPONSIVE DESIGN ===============*/

/* For small devices */
@media screen and (max-width: 340px) {
    .mini-apps__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* For medium devices */
@media screen and (min-width: 576px) {
    .mini-apps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile specific - force single column */
@media screen and (max-width: 767px) {
    .mini-apps__grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .mini-apps__title {
        margin-bottom: 0.75rem;
    }

    /* Disable hover effects on mobile for better touch experience */
    .mini-apps__card {
        -webkit-tap-highlight-color: transparent;
    }

    .mini-apps__card:hover {
        transform: none;
    }
}

/* For tablets */
@media screen and (min-width: 767px) {
    .mini-apps__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* For large devices */
@media screen and (min-width: 1024px) {
    .mini-apps__container {
        padding: 3rem 2rem;
        padding-top: 2rem;
    }
}

/* Dark theme adjustments */
body.dark-theme .mini-apps__link {
    border-color: var(--text-color);
}

body.dark-theme .mini-apps__link:hover {
    color: var(--title-color);
}
