/* ============================================================
   Pokemon Generator – Scoped Styles
   All selectors begin with .pg- so they never bleed into
   the WordPress theme or other plugins.
   ============================================================ */

.pg-wrap {
    background: #0f172a;
    color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    max-width: 1100px;
    margin: 20px auto;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

/* ---- Heading ---- */
.pg-heading {
    text-align: center;
    color: #ff4d6d;
    margin: 0 0 20px;
    font-size: 1.6em;
}

/* ---- Selector row ---- */
.pg-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pg-box {
    flex: 1;
    background: #16213e;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    min-width: 140px;
}

.pg-sprite {
    width: 90px;
    height: 90px;
    display: block;
    margin: 0 auto 8px;
    image-rendering: pixelated;
}

.pg-select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-transform: capitalize;
}

/* ---- Buttons ---- */
.pg-btns {
    text-align: center;
    margin: 20px 0;
}

.pg-btn {
    padding: 10px 16px;
    margin: 5px;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.2s;
}

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

.pg-btn-fuse   { background: #000000; border: 1px solid #ffffff; }
.pg-btn-swap   { background: #222222; }
.pg-btn-random { background: #333333; }
.pg-btn-reset  { background: #444444; }

/* ---- Result cards ---- */
.pg-result {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pg-card {
    flex: 1;
    background: #16213e;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #0f3460;
    min-width: 240px;
}

.pg-card h3 {
    text-align: center;
    color: #ff4d6d;
    margin: 0 0 12px;
    text-transform: capitalize;
    font-size: 1.2em;
}

/* ---- Type badges ---- */
.pg-badges {
    text-align: center;
    margin-bottom: 14px;
}

.pg-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin: 2px;
    display: inline-block;
    text-transform: capitalize;
    font-weight: bold;
    color: #ffffff;
}

/* ---- Stat rows ---- */
.pg-stat {
    display: flex;
    justify-content: space-between;
    margin: 6px 0 2px;
    font-size: 13px;
}

.pg-bar-bg {
    height: 6px;
    background: #0f3460;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.pg-bar-fill {
    height: 6px;
    border-radius: 4px;
}

/* ---- Total row ---- */
.pg-total {
    font-weight: bold;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.pg-total-value {
    color: #4ade80;
}

/* ---- Weaknesses note ---- */
.pg-weak {
    margin-top: 10px;
    font-size: 12px;
    color: #aaaaaa;
    line-height: 1.5;
}

/* ---- Loading / error notice ---- */
.pg-notice {
    text-align: center;
    padding: 20px;
    color: #aaaaaa;
    font-size: 14px;
}

/* ============================================================
   Responsive – narrow screens (mobile)
   ============================================================ */
@media (max-width: 600px) {
    .pg-wrap {
        padding: 12px;
    }

    .pg-row,
    .pg-result {
        flex-direction: column;
    }

    .pg-btn {
        padding: 9px 12px;
        font-size: 13px;
    }

    .pg-sprite {
        width: 72px;
        height: 72px;
    }
}
