﻿/* ================================================================
   BTGM UYGULAMA KARTLARI
   ================================================================ */

.btgm-apps-section {
    position: relative;
    overflow: hidden;
    padding: 42px 0;
    background: linear-gradient( 180deg, #ffffff 0%, #f8fafc 100% );
}


/* ================================================================
   GRID
   ================================================================ */

.btgm-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}


/* ================================================================
   KART
   ================================================================ */

.btgm-app-card {
    --app-color: #e3001b;
    --app-soft: rgba(227, 0, 27, .07);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 24px 26px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: linear-gradient( 145deg, #fff 0%, #fff 65%, var(--app-soft) 150% );
    border: 1px solid #e9edf2;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(17, 24, 39, .055);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

    .btgm-app-card:hover {
        color: inherit;
        text-decoration: none;
        transform: translateY(-4px);
        border-color: var(--app-color);
        box-shadow: 0 12px 28px rgba(17, 24, 39, .10);
    }


    /* Üst renk çizgisi */

    .btgm-app-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 26px;
        right: 26px;
        height: 3px;
        background: var(--app-color);
        border-radius: 0 0 4px 4px;
        opacity: 0;
        transform: scaleX(.5);
        transition: opacity .22s ease, transform .22s ease;
    }

    .btgm-app-card:hover::before {
        opacity: 1;
        transform: scaleX(1);
    }


/* ================================================================
   RENKLER
   ================================================================ */

.btgm-app-red {
    --app-color: #e3001b;
    --app-soft: rgba(227, 0, 27, .07);
}

.btgm-app-blue {
    --app-color: #1769aa;
    --app-soft: rgba(23, 105, 170, .07);
}

.btgm-app-green {
    --app-color: #16833b;
    --app-soft: rgba(22, 131, 59, .07);
}


/* ================================================================
   LOGO
   ================================================================ */

.btgm-app-logo {
    display: flex;
    align-items: center;
    height: 65px;
    margin-bottom: 14px;
}

    .btgm-app-logo img {
        display: block;
        max-width: 160px;
        max-height: 60px;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: left center;
        transition: transform .22s ease;
    }

.btgm-app-card:hover .btgm-app-logo img {
    transform: scale(1.03);
}


/* ================================================================
   LOGO OLMAYAN UYGULAMA
   ================================================================ */

.btgm-app-main-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 21px;
    color: var(--app-color);
    font-size: 1.75rem;
    background: var(--app-soft);
    border-radius: 14px;
    transition: transform .22s ease, background .22s ease, color .22s ease;
}

.btgm-app-card:hover .btgm-app-main-icon {
    color: #fff;
    background: var(--app-color);
    transform: scale(1.05);
}


/* ================================================================
   İÇERİK
   ================================================================ */

.btgm-app-content {
    flex: 1;
}

    .btgm-app-content h3 {
        margin: 0 0 7px;
        color: #111827;
        font-size: 1.05rem;
        font-weight: 800;
        letter-spacing: -.15px;
    }

    .btgm-app-content p {
        max-width: 290px;
        margin: 0;
        color: #6b7280;
        font-size: .82rem;
        line-height: 1.55;
    }


/* ================================================================
   ALT ALAN
   ================================================================ */

.btgm-app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.btgm-app-link {
    color: var(--app-color);
    font-size: .8rem;
    font-weight: 750;
}

.btgm-app-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--app-color);
    background: var(--app-soft);
    border-radius: 50%;
    font-size: .85rem;
    transition: color .22s ease, background .22s ease, transform .22s ease;
}

.btgm-app-card:hover .btgm-app-arrow {
    color: #fff;
    background: var(--app-color);
    transform: translateX(3px);
}


/* ================================================================
   TABLET
   ================================================================ */

@media (max-width: 991.98px) {

    .btgm-apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ================================================================
   MOBİL
   ================================================================ */

@media (max-width: 767.98px) {

    .btgm-apps-section {
        padding: 30px 0;
    }

    .btgm-apps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .btgm-app-card {
        min-height: 225px;
        padding: 22px;
    }
}
/* ================================================================
   KART SAĞ ÜST DEKOR İKONU
   ================================================================ */

.btgm-app-decoration {
    position: absolute;
    top: 22px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    color: var(--app-color);
    background: var(--app-soft);
    border-radius: 18px;
    font-size: 1.8rem;
    opacity: .42;
    transform: rotate(4deg);
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease, background .3s ease;
}

.btgm-app-card:hover .btgm-app-decoration {
    opacity: .65;
    transform: rotate(0deg) scale(1.06);
}
.btgm-app-logo,
.btgm-app-main-icon,
.btgm-app-content,
.btgm-app-footer {
    position: relative;
    z-index: 2;
}
@media (max-width: 767.98px) {

    .btgm-app-decoration {
        top: 20px;
        right: 20px;
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
        border-radius: 15px;
    }
}