/* ============================================================
   Pokemon Infinite Fusion – Scoped Styles
   All selectors prefixed with .pif- / #pif- to avoid any
   conflict with the WordPress theme or other plugins.
   ============================================================ */

.pif-box {
    background: #333333;
    color: #ffffff;
    padding: 20px;
    width: 100%;
    max-width: 380px;
    margin: 30px auto;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ---- Heading ---- */
.pif-heading {
    color: #ffffff;
    margin: 0 0 18px;
    font-size: 1.4em;
}

/* ---- Input rows ---- */
.pif-field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.pif-input {
    flex: 1;
    padding: 10px;
    font-size: 15px;
    color: #ffffff;
    background: #555555;
    border: 1px solid #ffffff;
    border-radius: 5px;
    box-sizing: border-box;
    min-width: 0;
}

.pif-input::placeholder {
    color: #cccccc;
}

/* ---- Buttons ---- */
.pif-btn {
    padding: 10px 14px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.pif-btn:hover {
    opacity: 0.85;
}

.pif-btn-random {
    background: #ffea3b;
    color: #333333;
}

.pif-action-row {
    margin: 12px 0 6px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pif-btn-fuse {
    background: #ffea3b;
    color: #333333;
    font-size: 15px;
    padding: 10px 20px;
}

.pif-btn-frandom {
    background: #555555;
    color: #ffffff;
    font-size: 15px;
    padding: 10px 20px;
}

/* ---- Result area ---- */
.pif-result {
    margin-top: 20px;
}

.pif-result h3 {
    color: #ffea3b;
    margin: 0 0 10px;
    font-size: 1.3em;
    letter-spacing: 1px;
}

.pif-result p {
    color: #ffffff;
    margin: 8px 0 0;
    font-size: 14px;
}

.pif-sprites {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.pif-sprite {
    width: 120px;
    height: 120px;
    image-rendering: pixelated;
}

.pif-error {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 10px;
}

.pif-loading {
    color: #aaaaaa;
    font-size: 14px;
    margin-top: 10px;
}

/* ---- Mobile ---- */
@media (max-width: 440px) {
    .pif-box {
        padding: 14px;
        max-width: 100%;
    }

    .pif-input {
        font-size: 14px;
        padding: 8px;
    }

    .pif-sprite {
        width: 90px;
        height: 90px;
    }
}
