/* =========================================================
   INFO CARD
========================================================= */

.info-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

/* =========================================================
   HEADER
========================================================= */

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(
            to right,
            #ffffff,
            #f8fbff
    );
}

.info-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.info-header p {
    margin: 6px 0 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.info-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================================
   BODY
========================================================= */

.info-body {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px;
    flex-wrap: wrap;
}

/* =========================================================
   AVATAR
========================================================= */

.info-avatar {
    width: 170px;
    flex: 0 0 170px;
    display: flex;
    justify-content: center;
}

.info-avatar img {
    width: 170px;
    height: 170px;
    border-radius: 18px;
    object-fit: cover;
    border: 4px solid #eef3ff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

/* =========================================================
   INFORMATION GRID
========================================================= */

.info-grid {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 18px;
}

.info-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    transition:
            transform .2s ease,
            box-shadow .2s ease,
            border-color .2s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 7px;
    letter-spacing: .6px;
}

.info-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

/* =========================================================
   STATISTICS
========================================================= */

.info-stats {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );
    gap: 18px;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    background: #fafcff;
}

/* Individual stat */

.info-stat,
.info-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition:
            transform .2s ease,
            box-shadow .2s ease;
}

.info-stat:hover,
.info-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

/* =========================================================
   STAT GRID
========================================================= */

.info-stat-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 20px;
    margin-bottom: 20px;
}

/* =========================================================
   STAT CARD WITH ICON
========================================================= */

.info-stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
    padding: 20px;
}

.info-stat-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: var(--primary);
    color: #fff;

    font-size: 22px;

    box-shadow:
            0 5px 12px rgba(37, 99, 235, .20);
}

.info-stat-content {
    min-width: 0;
}

.info-stat-content h2,
.info-stat h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary);
}

.info-stat-content span,
.info-stat span {
    display: block;
    margin-top: 7px;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.4;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .info-card {
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .info-header {
        padding: 18px;
        gap: 14px;
    }

    .info-header h2 {
        font-size: 19px;
    }

    .info-header p {
        font-size: 13px;
    }

    .info-actions {
        width: 100%;
    }

    .info-body {
        padding: 18px;
        gap: 20px;
    }

    .info-avatar {
        width: 100%;
        flex: none;
    }

    .info-avatar img {
        width: 130px;
        height: 130px;
        border-radius: 16px;
    }

    .info-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .info-item {
        padding: 13px;
        border-radius: 11px;
    }

    .info-label {
        font-size: 10px;
        letter-spacing: .4px;
    }

    .info-value {
        font-size: 13px;
    }

    /*
       IMPORTANT:
       Keep statistics INLINE on phones.
       Two cards per row.
    */

    .info-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 14px;
    }

    .info-stat,
    .info-stat-card {
        padding: 14px 10px;
        border-radius: 12px;
    }

    .info-stat-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 11px;
        font-size: 17px;
    }

    .info-stat-content h2,
    .info-stat h2 {
        font-size: 23px;
    }

    .info-stat-content span,
    .info-stat span {
        font-size: 11px;
        margin-top: 4px;
    }

    .info-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .info-stat-card {
        gap: 10px;
    }
}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 420px) {

    .info-header {
        padding: 15px;
    }

    .info-body {
        padding: 14px;
    }

    .info-grid {
        gap: 8px;
    }

    .info-item {
        padding: 11px;
    }

    .info-label {
        font-size: 9px;
    }

    .info-value {
        font-size: 12px;
    }

    .info-stats {
        padding: 10px;
        gap: 8px;
    }

    .info-stat,
    .info-stat-card {
        padding: 12px 8px;
    }

    .info-stat-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 15px;
    }

    .info-stat-content h2,
    .info-stat h2 {
        font-size: 20px;
    }

    .info-stat-content span,
    .info-stat span {
        font-size: 10px;
    }
}