/* 雾小蒜の小窝 | https://ciallovo.top */

.info-card {
    display: inline-flex;
    align-items: center;
    background: var(--white_10);
    border-radius: 12px;
    border: 1px solid var(--white_10);
    padding: 14px;
    margin: 8px 0;
    width: 100%;
    vertical-align: top;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: border-color 0.25s ease, background 0.25s ease, -webkit-transform 0.25s ease, box-shadow 0.25s ease;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.info-card:hover {
    border-color: var(--white_20);
    background: rgba(239, 239, 239, 0.04);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-card img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.info-card:hover img {
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}

.info-card > div {
    min-width: 0;
    padding-left: 12px;
}

.info-card h3 {
    margin: 2px 0 5px 0;
    padding: 0;
    font-size: 1.05em;
    line-height: 1.35;
    font-weight: 600;
}

.info-card h3 a {
    color: var(--brown);
    text-decoration: none;
}

.info-card h3 a:hover {
    text-decoration: underline;
}

.info-card p {
    line-height: 1.4em !important;
    margin: 0 0 2px 0;
    padding: 0;
    font-size: 0.85em;
    color: var(--white_90);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.friends-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Mobile: single column by default */
@media screen and (max-width: 559px) {
    .info-card {
        margin: 7px 0;
    }
}

/* Desktop: two columns */
@media screen and (min-width: 560px) and (max-width: 1249px) {
    .info-card {
        width: calc(50% - 7px);
        margin: 8px 0;
    }
}

/* Large screens: three columns */
@media screen and (min-width: 1250px) {
    .info-card {
        width: calc(33.333% - 10px);
        margin: 10px 0;
    }
}

/* Small screens: compact layout */
@media screen and (max-width: 400px) {
    .info-card {
        padding: 10px;
        border-radius: 10px;
        margin: 6px 0;
    }

    .info-card img {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .info-card > div {
        padding-left: 10px;
    }

    .info-card h3 {
        font-size: 0.95em;
    }

    .info-card p {
        font-size: 0.82em;
    }
}

/* Tablet: fine-tune for middle range */
@media screen and (min-width: 401px) and (max-width: 559px) {
    .info-card {
        padding: 12px;
    }

    .info-card img {
        width: 54px;
        height: 54px;
        min-width: 54px;
    }
}
