/* Mobs list page: /mobs */

.mobs-wrap {
    padding: 8px 0 48px;
    font-family: 'Baloo 2', Arial, sans-serif;
    color: var(--cartoon-ink);
}

/* Heading */
.mobs-head {
    margin-bottom: 20px;
}

.mobs-title {
    margin: 0;
    font-family: 'Baloo 2', Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--cartoon-ink);
}

.mobs-sub {
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--gx-muted);
}

/* Search and category row */
.mobs-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.mobs-search {
    position: relative;
    flex: 0 1 420px;
    max-width: 420px;
    min-width: 0;
}

.mobs-search form {
    position: relative;
    margin: 0;
}

.mobs-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gx-blue-dark);
    font-size: 17px;
    pointer-events: none;
}

.mobs-search-input {
    width: 100%;
    height: 50px;
    padding: 0 44px 0 46px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--cartoon-ink);
    background: #fff;
    border: 2px solid var(--cartoon-line);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobs-search-input::placeholder {
    color: #7a869c;
    font-weight: 500;
}

.mobs-search-input:focus {
    border-color: var(--gx-blue);
    box-shadow: 0 0 0 4px rgba(76, 175, 36, 0.18);
}

.mobs-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--gx-muted);
    padding: 4px;
    line-height: 0;
}

.mobs-search-clear:hover {
    color: var(--gx-blue-dark);
}

.mobs-select {
    min-width: 220px;
    height: 50px;
    padding: 0 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--cartoon-ink);
    background: #fff;
    border: 2px solid var(--cartoon-line);
    border-radius: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.mobs-select:hover,
.mobs-select[aria-expanded="true"] {
    border-color: var(--gx-blue);
    background: var(--cartoon-soft);
}

/* Category menu: solid panel, same as the other dropdowns */
.mobs-tools .dropdown-menu {
    min-width: 280px;
    padding: 8px;
    border: 1px solid var(--nav-border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(32, 33, 36, 0.15);
    background: #fff;
}

.mobs-tools .sidebar-dropdown-item {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--gx-muted);
    font-size: 16px;
    text-decoration: none;
}

.mobs-tools .sidebar-dropdown-item:hover {
    background: var(--nav-hover);
    color: var(--cartoon-ink);
}

.mobs-tools .sidebar-dropdown-item.active {
    background: var(--cartoon-soft);
    color: var(--gx-blue-dark);
    font-weight: 700;
}

/* Trading-card style mob cards */
.mob-tcg {
    --tcg-accent: var(--gx-blue);
    --tcg-accent-dark: var(--gx-blue-dark);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 0 12px;
    background: #fff;
    border: 2px solid var(--tcg-accent-dark);
    border-radius: 16px;
    overflow: hidden;
    color: var(--cartoon-ink);
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mob-tcg:hover {
    transform: translateY(-3px);
}

/* Category colours, one solid colour each */
.mob-tcg-passive {
    --tcg-accent: #4caf24;
    --tcg-accent-dark: #2e7d12;
}

.mob-tcg-neutral {
    --tcg-accent: #e0a526;
    --tcg-accent-dark: #a87812;
}

.mob-tcg-hostile {
    --tcg-accent: #d93654;
    --tcg-accent-dark: #9c2339;
}

.mob-tcg-boss {
    --tcg-accent: #8e5cd9;
    --tcg-accent-dark: #5f3aa6;
}

/* Name bar, solid accent colour */
.mob-tcg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: var(--tcg-accent);
    color: #fff;
}

.mob-tcg-name {
    font-family: 'Baloo 2', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mob-tcg-hp {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 800;
}

.mob-tcg-hp small {
    font-size: 10px;
    font-weight: 700;
}

/* Picture area: pale slot */
.mob-tcg-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin: 0 12px;
    border-radius: 12px;
    background: #f1f5ee;
    border: 2px solid #dde6d4;
}

.mob-tcg-img {
    max-width: 88%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.mob-tcg-img-fallback {
    font-size: 48px;
    color: var(--tcg-accent-dark);
}

.mob-tcg-egg {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff;
    border: 2px solid #dde6d4;
}

.mob-tcg-egg img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
}

/* Category and dimension tags */
.mob-tcg-type {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 12px;
}

.mob-tcg-type-badge,
.mob-tcg-dim {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mob-tcg-type-badge {
    background: var(--tcg-accent);
    color: #fff;
}

.mob-tcg-dim.mob-tcg-dim-overworld {
    background: #4caf24;
    color: #fff;
}

.mob-tcg-dim.mob-tcg-dim-nether {
    background: #b5462a;
    color: #fff;
}

.mob-tcg-dim.mob-tcg-dim-end,
.mob-tcg-dim.mob-tcg-dim-the-end {
    background: #3b3b58;
    color: #fff;
}

.mob-tcg-dim {
    background: #eef2f6;
    color: var(--gx-muted);
}

/* Attack and XP stats */
.mob-tcg-stats {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding: 0 12px;
}

.mob-tcg-stat {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    background: var(--cartoon-soft);
    font-size: 15px;
    font-weight: 800;
    color: var(--cartoon-ink);
}

.mob-tcg-stat i {
    color: var(--tcg-accent-dark);
}

/* Empty states */
.mobs-wrap .catalog-empty-state {
    padding: 48px 20px;
    text-align: center;
    border: 2px dashed var(--cartoon-line);
    border-radius: 18px;
    background: #fff;
}

.mobs-wrap .catalog-empty-icon i {
    font-size: 40px;
    color: var(--gx-blue);
}

.mobs-wrap .catalog-empty-title {
    margin: 12px 0 6px;
    font-family: 'Baloo 2', Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
}

.mobs-wrap .catalog-empty-text {
    color: var(--gx-muted);
}

@media (max-width: 575.98px) {
    .mobs-title {
        font-size: 26px;
    }

    .mob-tcg-art {
        height: 96px;
    }

    .mob-tcg-name {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mob-tcg {
        transition: none;
    }
}

/* Search section in its own panel, matching the blocks page */
.mobs-search-panel {
    margin-bottom: 24px;
    padding: 18px;
    background: #fff;
    border: 2px solid var(--cartoon-line);
    border-radius: 18px;
    box-shadow: 0 3px 0 var(--cartoon-line);
}

.mobs-search-panel .mobs-tools {
    margin-bottom: 0;
}

/* Site logo: same size as the home and blocks pages */
.mobs-wrap .hw-logo {
    display: block;
    width: 560px;
    max-width: 92vw;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 10px rgba(31, 42, 68, 0.2));
}

/* Same width as the blocks and block detail pages */
.mobs-page main.container {
    max-width: 1140px;
}

/* Logo header: same structure and spacing as the blocks page (blocks.css isn't loaded here) */
.mobs-wrap .hw-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0;
}

.mobs-wrap .hw-logo-link {
    display: block;
    margin: 0 auto 28px;
    line-height: 0;
}

/* Search and category controls: same size and styling as the blocks page */
.mobs-search-input {
    height: 48px;
    padding: 0 44px 0 46px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--cartoon-line);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(31, 45, 26, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobs-search-input:focus {
    border-color: var(--gx-blue);
    box-shadow: 0 0 0 4px rgba(76, 175, 36, 0.18);
}

.mobs-select {
    height: 48px;
    min-width: 0;
    padding: 0 16px;
    font-size: 15px;
    border: 2px solid var(--cartoon-line);
    border-radius: 14px;
}

/* "/ to search" keycap hint, same as the blocks page */
.mobs-search form {
    position: relative;
}

.mobs-kbd-hint {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gx-muted);
    white-space: nowrap;
    pointer-events: none;
}

@media (min-width: 768px) {
    .mobs-kbd-hint {
        display: inline-flex;
    }
}

/* Hide the hint once something is typed, so it doesn't sit on top of the text */
.mobs-search form:has(input:not(:placeholder-shown)) .mobs-kbd-hint {
    display: none;
}

.mobs-kbd-hint .sx-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--gx-blue-dark);
    background: var(--cartoon-soft);
    border: 1px solid var(--cartoon-line);
    border-radius: 7px;
    box-shadow: 0 2px 0 var(--cartoon-line);
}

/* Search row: input and Search button side by side, same as the blocks page */
.mobs-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.mobs-search-input-wrap {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
}

.mobs-search-input-wrap .mobs-search-input {
    width: 100%;
}

.mobs-search-btn {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--gx-blue);
    border: 1px solid var(--gx-blue-dark);
    border-radius: 14px;
    box-shadow: 0 3px 0 var(--gx-blue-dark);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.mobs-search-btn:hover {
    background: #58b92e;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--gx-blue-dark);
}

.mobs-search-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--gx-blue-dark);
}

/* Search button: no drop shadow */
.mobs-search-btn,
.mobs-search-btn:hover,
.mobs-search-btn:active {
    box-shadow: none;
}

/* Page scrollbar hidden on the mobs page; scrolling with the wheel, touch and keys still works */
html:has(body.mobs-page) {
    scrollbar-width: none;
}

html:has(body.mobs-page)::-webkit-scrollbar {
    display: none;
}

/* Final override: the search button never has a drop shadow */
.mobs-search-btn {
    box-shadow: none !important;
}
