/* =========================
   КАРТКИ МОДІВ
========================= */

.mods-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

/* планшет: дві картки в ряд */
@media (max-width: 900px) {
    .mods-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* телефон: картки йдуть вниз по одній */
@media (max-width: 600px) {
    .mods-grid {
        grid-template-columns: minmax(0, 320px);
        justify-content: center;
    }
}

.mod-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: linear-gradient(
        145deg,
        rgba(12, 22, 15, 0.95),
        rgba(7, 14, 9, 0.95)
    );

    border: 1px solid rgba(124, 255, 155, 0.16);
    border-radius: 18px;

    box-shadow: 0 0 40px rgba(0, 230, 92, 0.05);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.mod-card:hover {
    border-color: rgba(124, 255, 155, 0.35);
    box-shadow: 0 0 35px rgba(0, 230, 92, 0.09);
    transform: translateY(-3px);
}

.mod-banner {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid rgba(124, 255, 155, 0.12);
}

.mod-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    padding: 20px;
}

.mod-title {
    color: #7cff9b;
    font-size: 22px;
}

.mod-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mod-tag {
    padding: 4px 10px;

    color: #7cff9b;
    font-size: 12px;

    background: rgba(124, 255, 155, 0.07);
    border: 1px solid rgba(124, 255, 155, 0.18);
    border-radius: 999px;
}

.mod-desc {
    color: #aeb8b0;
    font-size: 14px;
    line-height: 1.7;
}

.mod-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mod-features li {
    color: #b5beb7;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
}

.mod-features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #7cff9b;
}

.mod-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;

    padding: 10px 0;

    border-top: 1px solid rgba(124, 255, 155, 0.1);
    border-bottom: 1px solid rgba(124, 255, 155, 0.1);

    color: #68736b;
    font-size: 13px;
}

.mod-meta strong {
    color: #b5beb7;
    font-weight: normal;
}

.mod-install {
    border: 1px solid rgba(124, 255, 155, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
}

.mod-install summary {
    cursor: pointer;
    list-style: none;
    position: relative;

    padding: 11px 36px 11px 14px;

    color: #e8eee9;
    font-size: 14px;
    font-weight: bold;
}

.mod-install summary::-webkit-details-marker {
    display: none;
}

.mod-install summary::after {
    content: "›";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7cff9b;
    font-size: 20px;
    transition: transform 0.25s ease;
}

.mod-install[open] summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.mod-install ol {
    margin: 0 14px 12px 34px;
    color: #aeb8b0;
    font-size: 13px;
    line-height: 1.6;
}

.mod-install li {
    margin-bottom: 6px;
}

.mod-install code {
    color: #7cff9b;
    font-family: monospace;
}

.mod-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.mod-btn {
    display: block;
    padding: 12px 16px;

    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;

    color: #080c09;
    background: #7cff9b;

    border: 1px solid #7cff9b;
    border-radius: 10px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.mod-btn:hover {
    background: #a6ffba;
}

.mod-btn.secondary {
    color: #b8c2ba;
    background: transparent;
    border-color: rgba(124, 255, 155, 0.25);
    font-weight: normal;
    font-size: 14px;
}

.mod-btn.secondary:hover {
    color: #7cff9b;
    background: rgba(124, 255, 155, 0.06);
}
/* банер з прозорим фоном (скін) */
.mod-banner.skin {
    object-fit: contain;
    background: radial-gradient(
        circle at 50% 45%,
        rgba(0, 230, 92, 0.28),
        rgba(8, 12, 9, 1) 70%
    );
}
/* =========================
   КНОПКА MODRINTH
========================= */

.modrinth-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 30px;
}

.modrinth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 14px 28px;

    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;

    color: #06140b;
    background: #1bd96a;

    border: 1px solid #1bd96a;
    border-radius: 12px;
    box-shadow: 0 0 26px rgba(27, 217, 106, 0.25);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.modrinth-btn:hover {
    background: #4df08d;
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(27, 217, 106, 0.4);
}