/**
 * Game Flavor CSS - Ragnarok Frontier
 * Job class badges, stat grids, map names, and other game-specific styling.
 */

/* ==================== Job Class Badges ==================== */

.job-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

/* Swordsman family: warm red */
.job-swordsman {
    background: #fef2f2;
    color: #b91c1c;
}

/* Mage family: blue */
.job-mage {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Archer family: green */
.job-archer {
    background: #f0fdf4;
    color: #15803d;
}

/* Acolyte family: yellow/gold */
.job-acolyte {
    background: #fefce8;
    color: #a16207;
}

/* Merchant family: brown/amber */
.job-merchant {
    background: #fef3c7;
    color: #92400e;
}

/* Thief family: purple */
.job-thief {
    background: #faf5ff;
    color: #7e22ce;
}

/* Special classes */
.job-novice {
    background: var(--bg-muted);
    color: var(--text-secondary);
}

.job-taekwon {
    background: #fdf4ff;
    color: #a21caf;
}

.job-gunslinger {
    background: #f5f5f4;
    color: #57534e;
}

.job-ninja {
    background: #0f172a;
    color: #e2e8f0;
}

/* Dark theme adjustments */
[data-theme="dark"] .job-swordsman {
    background: rgba(185, 28, 28, 0.15);
    color: #fca5a5;
}

[data-theme="dark"] .job-mage {
    background: rgba(29, 78, 216, 0.15);
    color: #93c5fd;
}

[data-theme="dark"] .job-archer {
    background: rgba(21, 128, 61, 0.15);
    color: #86efac;
}

[data-theme="dark"] .job-acolyte {
    background: rgba(161, 98, 7, 0.15);
    color: #fde68a;
}

[data-theme="dark"] .job-merchant {
    background: rgba(146, 64, 14, 0.15);
    color: #fcd34d;
}

[data-theme="dark"] .job-thief {
    background: rgba(126, 34, 206, 0.15);
    color: #d8b4fe;
}

[data-theme="dark"] .job-novice {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

[data-theme="dark"] .job-taekwon {
    background: rgba(162, 28, 175, 0.15);
    color: #f0abfc;
}

[data-theme="dark"] .job-gunslinger {
    background: rgba(87, 83, 78, 0.15);
    color: #d6d3d1;
}

[data-theme="dark"] .job-ninja {
    background: rgba(15, 23, 42, 0.4);
    color: #94a3b8;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .job-swordsman {
        background: rgba(185, 28, 28, 0.15);
        color: #fca5a5;
    }
    :root:not([data-theme="light"]) .job-mage {
        background: rgba(29, 78, 216, 0.15);
        color: #93c5fd;
    }
    :root:not([data-theme="light"]) .job-archer {
        background: rgba(21, 128, 61, 0.15);
        color: #86efac;
    }
    :root:not([data-theme="light"]) .job-acolyte {
        background: rgba(161, 98, 7, 0.15);
        color: #fde68a;
    }
    :root:not([data-theme="light"]) .job-merchant {
        background: rgba(146, 64, 14, 0.15);
        color: #fcd34d;
    }
    :root:not([data-theme="light"]) .job-thief {
        background: rgba(126, 34, 206, 0.15);
        color: #d8b4fe;
    }
    :root:not([data-theme="light"]) .job-novice {
        background: rgba(255, 255, 255, 0.06);
        color: var(--text-secondary);
    }
    :root:not([data-theme="light"]) .job-taekwon {
        background: rgba(162, 28, 175, 0.15);
        color: #f0abfc;
    }
    :root:not([data-theme="light"]) .job-gunslinger {
        background: rgba(87, 83, 78, 0.15);
        color: #d6d3d1;
    }
    :root:not([data-theme="light"]) .job-ninja {
        background: rgba(15, 23, 42, 0.4);
        color: #94a3b8;
    }
}

/* ==================== Item Type Badges ==================== */

.item-type-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.item-type-weapon { background: #fef2f2; color: #b91c1c; }
.item-type-armor { background: #eff6ff; color: #1d4ed8; }
.item-type-consumable, .item-type-heal { background: #f0fdf4; color: #15803d; }
.item-type-card { background: #faf5ff; color: #7e22ce; }
.item-type-usable { background: #fefce8; color: #a16207; }
.item-type-special { background: #fdf4ff; color: #a21caf; }
.item-type-etc, .item-type-ammo, .item-type-pet_egg, .item-type-pet_equip {
    background: var(--bg-muted); color: var(--text-secondary);
}

[data-theme="dark"] .item-type-weapon { background: rgba(185, 28, 28, 0.15); color: #fca5a5; }
[data-theme="dark"] .item-type-armor { background: rgba(29, 78, 216, 0.15); color: #93c5fd; }
[data-theme="dark"] .item-type-consumable, [data-theme="dark"] .item-type-heal { background: rgba(21, 128, 61, 0.15); color: #86efac; }
[data-theme="dark"] .item-type-card { background: rgba(126, 34, 206, 0.15); color: #d8b4fe; }
[data-theme="dark"] .item-type-usable { background: rgba(161, 98, 7, 0.15); color: #fde68a; }
[data-theme="dark"] .item-type-special { background: rgba(162, 28, 175, 0.15); color: #f0abfc; }
[data-theme="dark"] .item-type-etc, [data-theme="dark"] .item-type-ammo,
[data-theme="dark"] .item-type-pet_egg, [data-theme="dark"] .item-type-pet_equip {
    background: rgba(255, 255, 255, 0.06); color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .item-type-weapon { background: rgba(185, 28, 28, 0.15); color: #fca5a5; }
    :root:not([data-theme="light"]) .item-type-armor { background: rgba(29, 78, 216, 0.15); color: #93c5fd; }
    :root:not([data-theme="light"]) .item-type-consumable, :root:not([data-theme="light"]) .item-type-heal { background: rgba(21, 128, 61, 0.15); color: #86efac; }
    :root:not([data-theme="light"]) .item-type-card { background: rgba(126, 34, 206, 0.15); color: #d8b4fe; }
    :root:not([data-theme="light"]) .item-type-usable { background: rgba(161, 98, 7, 0.15); color: #fde68a; }
    :root:not([data-theme="light"]) .item-type-special { background: rgba(162, 28, 175, 0.15); color: #f0abfc; }
    :root:not([data-theme="light"]) .item-type-etc, :root:not([data-theme="light"]) .item-type-ammo,
    :root:not([data-theme="light"]) .item-type-pet_egg, :root:not([data-theme="light"]) .item-type-pet_equip {
        background: rgba(255, 255, 255, 0.06); color: var(--text-secondary);
    }
}

/* ==================== Stat Grid ==================== */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 8px 0;
}

.stat-cell {
    background: var(--bg-muted);
    border-radius: var(--radius);
    padding: 8px 10px;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

/* ==================== Map Name ==================== */

.map-name {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--bg-muted);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ==================== Level Display ==================== */

.level-display {
    color: var(--primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.level-separator {
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 2px;
}
