/* Shared card styling for tools.html and games.html: matte enterprise look */

.cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    display: flex;
    align-items: stretch;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008)),
        #0b0f16;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    color: rgba(244, 248, 255, 0.92);
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.024);
}

.card_main {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.card_body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 860px;
    min-width: 0;
}

.card_media {
    width: 108px;
    min-width: 108px;
    height: 108px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111722;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card_media_image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 13px;
    filter: saturate(0.82) contrast(0.96) brightness(0.94);
}

.card_media .material-symbols-outlined {
    font-size: 46px;
    color: rgba(223, 232, 246, 0.84);
}

.card_media_pdf,
.card_media_bw,
.card_media_icon,
.card_media_crop,
.card_media_spaceship,
.card_media_reaction {
    background: #111722;
}

.card_head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card_head .material-symbols-outlined {
    font-size: 20px;
    color: rgba(186, 199, 220, 0.8);
}

.card_title {
    margin: 0;
    font-family: "Inter", "Segoe UI", "IBM Plex Sans", Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.01em;
    color: rgba(245, 248, 255, 0.9);
}

.card_text {
    margin: 0;
    max-width: 74ch;
    font-family: "Inter", "Segoe UI", "IBM Plex Sans", "Source Sans 3", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.58;
    font-weight: 400;
    letter-spacing: 0.002em;
    color: rgba(255, 255, 255, 0.78);
}

.card_cta {
    margin-left: auto;
    align-self: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(241, 245, 252, 0.9);
    text-decoration: none;
    font-family: "Inter", "Segoe UI", "IBM Plex Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.002em;
    box-shadow: none;
    transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.card_cta .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

.card:hover .card_cta {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 740px) {
    .card {
        padding: 16px;
    }

    .card_main {
        gap: 14px;
    }

    .card_media {
        width: 90px;
        min-width: 90px;
        height: 90px;
    }

    .card_title {
        font-size: 21px;
    }

    .card_text {
        font-size: 15px;
        line-height: 1.55;
    }

    .card_cta {
        padding: 8px 11px;
        border-radius: 10px;
    }
}
