/* ════════════════════════════════════════════════════════════════════
   How to Install Box — MC Install Guide
   Đồng bộ visual language với MC Requires Box
   ════════════════════════════════════════════════════════════════════ */

/* ── Section wrapper ───────────────────────────────────────────────── */
.mcig-section {
    margin: 0 0 8px 0;
    padding: 0;
}

/* ── Heading — same pattern as Requirements h3 ─────────────────────── */
.mcig-section h3 {
    position: relative;
    display: inline-block;
    margin: 0 0 18px 0;
    padding: 0 0 8px 0;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    text-decoration: none !important;
    border-bottom: 0 !important;
    background: none !important;
}

.mcig-section h3::before {
    content: "📖";
    margin-right: 8px;
}

.mcig-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #16a34a 0%, #4ade80 100%);
    border-radius: 2px;
}

/* ── Card — single clickable callout ───────────────────────────────── */
.mcig-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.mcig-card:hover {
    border-color: #16a34a;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
    transform: translateY(-2px);
}

/* ── Icon ──────────────────────────────────────────────────────────── */
.mcig-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #dcfce7;
    border-radius: 10px;
}

.mcig-icon svg {
    display: block;
}

/* ── Text ──────────────────────────────────────────────────────────── */
.mcig-text {
    flex: 1;
    min-width: 0;
}

.mcig-desc {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.5;
}

/* ── CTA button ────────────────────────────────────────────────────── */
.mcig-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: #16a34a;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none !important;
}

.mcig-card:hover .mcig-cta {
    background: #15803d;
}

.mcig-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s;
}

.mcig-card:hover .mcig-arrow {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════════
   MCPE / Bedrock variant — purple theme
   ═══════════════════════════════════════════════════════════════════ */
.mcig-mcpe h3::after {
    background: linear-gradient(90deg, #9333ea 0%, #c084fc 100%);
}

.mcig-mcpe .mcig-card {
    background: #faf5ff;
    border-color: #e9d5ff;
}

.mcig-mcpe .mcig-card:hover {
    border-color: #9333ea;
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.15);
}

.mcig-mcpe .mcig-icon {
    background: #f3e8ff;
}

.mcig-mcpe .mcig-cta {
    background: #9333ea;
}

.mcig-mcpe .mcig-card:hover .mcig-cta {
    background: #7e22ce;
}

/* ═══════════════════════════════════════════════════════════════════
   Adjacent spacing — khi Install Guide + Requirements liền nhau
   ═══════════════════════════════════════════════════════════════════ */
.mcig-section + .mcap-requires-section {
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tablet ≤ 900px ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .mcig-card {
        gap: 14px;
        padding: 14px 18px;
    }
}

/* ── Mobile ≤ 600px ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .mcig-section h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }
    .mcig-card {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px;
    }
    .mcig-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
    .mcig-icon svg {
        width: 22px;
        height: 22px;
    }
    .mcig-desc {
        font-size: 14px;
    }
    .mcig-cta {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ── Small mobile ≤ 420px ─────────────────────────────────────────── */
@media (max-width: 420px) {
    .mcig-desc {
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Dark mode
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
    .mcig-section h3 {
        color: #f1f5f9;
    }
    /* Java */
    .mcig-java .mcig-card {
        background: #0f2919;
        border-color: #166534;
    }
    .mcig-java .mcig-icon {
        background: #14532d;
    }
    .mcig-java .mcig-desc {
        color: #f1f5f9;
    }
    /* MCPE */
    .mcig-mcpe .mcig-card {
        background: #1a0a2e;
        border-color: #581c87;
    }
    .mcig-mcpe .mcig-icon {
        background: #3b0764;
    }
    .mcig-mcpe .mcig-desc {
        color: #f1f5f9;
    }
}
