/* =============================================================
   platform-selector.css — Minecraft Java / Bedrock toggle
   ============================================================= */

/* ── Cards wrapper ──────────────────────────────────────────── */

.platform-cards {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

/* ── Individual platform card ───────────────────────────────── */

.platform-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    background: var(--dominant-700);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--dominant-100);
    cursor: pointer;
    padding: 20px 16px 14px;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.platform-card:hover {
    border-color: var(--accent-300);
    background: var(--dominant-600);
    box-shadow: 0 4px 16px rgba(205, 97, 65, 0.1);
}

.platform-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(205, 97, 65, 0.25);
}

/* ── Selected state ─────────────────────────────────────────── */

.platform-card.platform-selected {
    border-color: var(--accent-400);
    background: rgba(205, 97, 65, 0.08);
    box-shadow: 0 0 0 1px var(--accent-400), 0 4px 20px rgba(205, 97, 65, 0.15);
}

/* ── Platform image ─────────────────────────────────────────── */

.platform-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 2px;
}

/* ── "Most Popular" badge ───────────────────────────────────── */

.platform-badge {
    display: inline-block;
    background: var(--success);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Hide badge on non-selected cards (only show on the one that has it) */
.platform-card:not(.platform-selected) .platform-badge {
    opacity: 0.5;
}

/* ── Platform name ──────────────────────────────────────────── */

.platform-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dominant-50);
    line-height: 1.2;
}

/* ── Platform description ───────────────────────────────────── */

.platform-desc {
    font-size: 0.8rem;
    color: var(--dominant-300);
    line-height: 1.2;
}

/* ── Tags row (Forge, Fabric, Mobile, etc.) ─────────────────── */

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 4px;
}

.platform-tag {
    display: inline-block;
    background: var(--dominant-600);
    border: 1px solid var(--border);
    color: var(--dominant-200);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.platform-card.platform-selected .platform-tag {
    border-color: var(--accent-400);
    color: var(--dominant-100);
}

/* ── Locked config option (when Bedrock selected) ───────────── */

.option-locked select {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.option-locked label::after {
    content: ' (locked)';
    font-size: 0.75rem;
    color: var(--dominant-400);
    font-weight: 400;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 480px) {
    .platform-cards {
        flex-direction: column;
    }
}
