/* ============================================================
   Game Wiki Infobox — Fandom-style
   ============================================================ */

/* Force the article content area to allow float wrapping.
   Gaming KB sets content-wrapper to flex which kills floats. */
.gamekb-article-content-wrapper {
    display: block !important;
}

.gamekb-single-article .entry-content {
    overflow: visible !important;
}

/* Prevent WP block headings from clearing the float */
.entry-content h2.wp-block-heading,
.entry-content h3.wp-block-heading,
.entry-content h4.wp-block-heading,
.entry-content .wp-block-heading {
    clear: none !important;
}

/* Soledad wraps tables in pcrstb-wrap with overflow — disable for infobox */
.wiki-infobox .pcrstb-wrap {
    overflow: visible !important;
    display: contents !important;
}

.wiki-infobox {
    width: 280px;
    background: #1a1a2e;
    border: 1px solid #2d2d4a;
    border-radius: 10px;
    overflow: hidden;
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Alignment */
.wiki-infobox--right {
    float: right;
    margin-left: 1.5rem;
}

.wiki-infobox--left {
    float: left;
    margin-right: 1.5rem;
}

.wiki-infobox--center {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.wiki-infobox__header {
    background: linear-gradient(135deg, #c23434, #8b1a1a);
    padding: 14px 16px;
    text-align: center;
}

.wiki-infobox__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
}

/* Image */
.wiki-infobox__image {
    width: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wiki-infobox__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Data table */
.wiki-infobox__table {
    width: 100%;
    border-collapse: collapse;
}

.wiki-infobox__table tr {
    border-bottom: 1px solid #2d2d4a;
}

.wiki-infobox__table tr:last-child {
    border-bottom: none;
}

.wiki-infobox__label {
    padding: 10px 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    width: 35%;
    vertical-align: top;
    background: rgba(255, 255, 255, 0.03);
}

.wiki-infobox__value {
    padding: 10px 12px;
    color: #e2e8f0;
    vertical-align: top;
}

/* Type badge */
.wiki-infobox__type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: var(--type-color, #6b7280);
    border: 1px solid color-mix(in srgb, var(--type-color, #6b7280) 60%, transparent);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Location split */
.wiki-infobox__location-area {
    display: block;
    color: #e2e8f0;
    font-weight: 500;
}

.wiki-infobox__location-sub {
    display: block;
    color: #9ca3af;
    font-size: 0.82rem;
    margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .wiki-infobox {
        float: none !important;
        width: 100% !important;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1.2rem;
    }
}
