/* ============================================================
   SkyKings — Auction House Stylesheet (ah.css)
   ============================================================ */

/* ── Tier colour tokens ─────────────────────────────────────── */
:root {
    --tier-common:    #aaaaaa;
    --tier-uncommon:  #55ff55;
    --tier-rare:      #5555ff;
    --tier-epic:      #aa00aa;
    --tier-legendary: #ffaa00;
    --tier-mythic:    #ff55ff;
    --tier-special:   #ff5555;
    --ah-card-bg:     #161616;
    --ah-border:      #2e2e2e;
    --ah-hover:       #1f1f1f;
}

/* ── Hero banner ────────────────────────────────────────────── */
.ah-hero {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border-bottom: 1px solid var(--ah-border);
    padding: 48px 24px 36px;
    text-align: center;
}
.ah-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    font-family: "Lexend Deca", sans-serif;
    margin: 0 0 8px;
    color: #f2f2f2;
}
.ah-hero-sub {
    color: #888;
    font-size: 1.05rem;
    margin: 0 0 24px;
}

/* ── Search ─────────────────────────────────────────────────── */
.ah-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.ah-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    color: #f2f2f2;
    font-size: 1rem;
    font-family: "Lexend Deca", sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.ah-search-input:focus {
    border-color: #ffaa00;
}
.ah-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 8px;
    z-index: 100;
    max-height: 360px;
    overflow-y: auto;
    display: none;
}
.ah-search-results.open { display: block; }
.ah-search-section-label {
    padding: 8px 14px 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
}
.ah-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: #f2f2f2;
}
.ah-search-row:hover { background: var(--ah-hover); }
.ah-search-row-name { font-size: 0.95rem; flex: 1; }
.ah-search-row-meta { font-size: 0.78rem; color: #888; }

/* ── Page wrapper ───────────────────────────────────────────── */
.ah-page-content {
    max-width: 1280px;
    margin: 28px auto;
    padding: 0 20px;
}

/* ── Sub-page search bar (item / player pages) ──────────────── */
.ah-subpage-search-wrap {
    background: #111;
    border-bottom: 1px solid var(--ah-border);
    padding: 14px 20px;
}
.ah-subpage-search-wrap .ah-search-wrap {
    max-width: 560px;
    margin: 0 auto;
}

/* ── Filter bar ─────────────────────────────────────────────── */
.ah-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--ah-card-bg);
    border: 1px solid var(--ah-border);
    border-radius: 10px;
}
.ah-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ah-filter-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #666;
}
.ah-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ah-chip {
    padding: 5px 14px;
    border-radius: 20px;
    background: #222;
    border: 1px solid #3a3a3a;
    color: #ccc;
    font-size: 0.82rem;
    font-family: "Lexend Deca", sans-serif;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ah-chip:hover { background: #2a2a2a; border-color: #555; }
.ah-chip.active { background: #1a2a1a; border-color: #3d8c3d; color: #6de06d; }

/* Tier chips get their own active colour */
.ah-chip.ah-tier-MYTHIC.active    { background: #2a0e2a; border-color: #ff55ff; color: #ff55ff; }
.ah-chip.ah-tier-LEGENDARY.active { background: #2a1e00; border-color: #ffaa00; color: #ffaa00; }
.ah-chip.ah-tier-EPIC.active      { background: #1a001a; border-color: #aa00aa; color: #cc44cc; }
.ah-chip.ah-tier-RARE.active      { background: #00001a; border-color: #5555ff; color: #8888ff; }
.ah-chip.ah-tier-UNCOMMON.active  { background: #001a00; border-color: #55ff55; color: #55ff55; }
.ah-chip.ah-tier-COMMON.active    { background: #1a1a1a; border-color: #aaaaaa; color: #cccccc; }

/* ── Section titles ─────────────────────────────────────────── */
.ah-section { margin-bottom: 32px; }
.ah-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: "Lexend Deca", sans-serif;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ah-border);
    color: #f2f2f2;
}

/* ── Sales list (home page feed) ────────────────────────────── */
.ah-sales-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ah-sale-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--ah-card-bg);
    border: 1px solid var(--ah-border);
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none;
    color: #f2f2f2;
}
.ah-sale-row:hover { background: var(--ah-hover); }
.ah-sale-icon {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
    flex-shrink: 0;
    border-radius: 4px;
}
.ah-sale-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}
.ah-sale-price {
    font-weight: 700;
    color: #ffcc44;
    font-size: 0.95rem;
    white-space: nowrap;
}
.ah-sale-type {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.ah-sale-type.bin     { background: #003a1a; color: #55ff99; }
.ah-sale-type.auction { background: #1a1a00; color: #ffdd44; }
.ah-sale-seller {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
}
.ah-sale-time {
    font-size: 0.78rem;
    color: #666;
    white-space: nowrap;
}
.ah-load-more {
    display: block;
    margin: 20px auto 0;
    padding: 10px 32px;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    color: #ccc;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}
.ah-load-more:hover { background: #2a2a2a; }

/* ── Item grid (home page) ──────────────────────────────────── */
.ah-grid-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 12px;
    min-height: 20px;
}
.ah-item-count {
    font-size: 0.82rem;
    color: #666;
}
.ah-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.ah-item-card {
    background: var(--ah-card-bg);
    border: 1px solid var(--ah-border);
    border-radius: 10px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: #f2f2f2;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.ah-item-card:hover {
    background: var(--ah-hover);
    border-color: #444;
    transform: translateY(-2px);
}
.ah-item-card-icon {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    flex-shrink: 0;
}
.ah-item-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}
.ah-item-card-name {
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #f2f2f2;
    word-break: break-word;
}
.ah-item-card-price {
    color: #ffcc44;
    font-size: 0.85rem;
    font-weight: 700;
}
.ah-item-card-sales {
    color: #666;
    font-size: 0.72rem;
}


.ah-tier {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.ah-tier-COMMON    { color: var(--tier-common);    background: #1e1e1e; border: 1px solid #444; }
.ah-tier-UNCOMMON  { color: var(--tier-uncommon);  background: #001a00; border: 1px solid #225522; }
.ah-tier-RARE      { color: var(--tier-rare);      background: #00001a; border: 1px solid #222266; }
.ah-tier-EPIC      { color: var(--tier-epic);      background: #130013; border: 1px solid #551155; }
.ah-tier-LEGENDARY { color: var(--tier-legendary); background: #1a1000; border: 1px solid #664400; }
.ah-tier-MYTHIC    { color: var(--tier-mythic);    background: #1a001a; border: 1px solid #882288; }
.ah-tier-SPECIAL   { color: var(--tier-special);   background: #1a0000; border: 1px solid #661111; }

/* ── Card ───────────────────────────────────────────────────── */
.ah-card {
    background: var(--ah-card-bg);
    border: 1px solid var(--ah-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.ah-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.ah-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: "Lexend Deca", sans-serif;
    margin: 0;
    color: #f2f2f2;
}
.ah-chart-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ah-chart-wrap {
    position: relative;
    height: 320px;
}

/* ── Item page layout ───────────────────────────────────────── */
.ah-item-page {
    display: flex;
    gap: 24px;
    max-width: 1280px;
    margin: 28px auto;
    padding: 0 20px;
    align-items: flex-start;
}
.ah-item-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ah-item-main { flex: 1; min-width: 0; }
.ah-item-header-card {
    background: var(--ah-card-bg);
    border: 1px solid var(--ah-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.ah-item-icon {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    border-radius: 8px;
}
.ah-item-name {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: "Lexend Deca", sans-serif;
    color: #f2f2f2;
    margin: 0;
}
.ah-item-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.ah-item-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 4px 0;
    border-bottom: 1px solid #222;
}
.ah-item-meta-row:last-child { border-bottom: none; }
.ah-item-meta-label { color: #888; }
.ah-item-meta-value { color: #f2f2f2; font-weight: 600; }

/* ── Attribute filters sidebar ──────────────────────────────── */
.ah-attr-filters {
    background: var(--ah-card-bg);
    border: 1px solid var(--ah-border);
    border-radius: 12px;
    padding: 16px;
}
.ah-attr-title {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: "Lexend Deca", sans-serif;
    margin: 0 0 12px;
    color: #f2f2f2;
}
.ah-attr-group {
    margin-bottom: 12px;
}
.ah-attr-group label {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 4px;
    text-transform: capitalize;
}
.ah-attr-group select,
.ah-attr-group input[type=number] {
    width: 100%;
    box-sizing: border-box;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #f2f2f2;
    padding: 6px 10px;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.85rem;
}

/* Pet level / price range paired inputs */
.ah-range-pair {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ah-range-pair input {
    flex: 1;
    min-width: 0;
}
.ah-range-pair span {
    color: #666;
    flex-shrink: 0;
}

/* Small hint text in filter labels */
.ah-filter-hint {
    font-size: 0.7em;
    color: #666;
    font-weight: normal;
    margin-left: 4px;
}

/* Unknown/missing buyer or seller */
.ah-unknown {
    color: #555;
}

/* MC head avatar next to player names in tables */
.ah-player-head {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 2px;
}

/* Hero logo for Auction Tracker header */
.ah-hero-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ah-hero-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    image-rendering: pixelated;
    border-radius: 6px;
}

/* Reuse premium header styles so AH can have a background image with text overlay */
.premium-image-header {
    margin-top: 0;
    height: 300px;
    position: relative;
    /* overflow: hidden; */
}

#premium-header-info {
    background: rgba(0,0,0,0.35);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.premium-header-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.7) saturate(1.2);
    z-index: -1;
}

#premium-header-title {
    font-size: 56px;
    text-shadow: 3px 3px 0 #000000;
    margin: 0.1em 0;
}

#premium-subheader-title {
    font-size: 20px;
    opacity: 0.95;
    margin: 0;
}

/* ── FAQ accordion ───────────────────────────────────────────── */
.ah-faq-item {
    border-bottom: 1px solid #222;
}
.ah-faq-item:last-child {
    border-bottom: none;
}
.ah-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 14px 4px;
    color: #e0e0e0;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    gap: 12px;
    transition: color 0.15s;
}
.ah-faq-q:hover {
    color: #ffaa00;
}
.ah-faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #555;
    transition: transform 0.25s ease;
}
.ah-faq-q[aria-expanded="true"] .ah-faq-chevron {
    transform: rotate(180deg);
    color: #ffaa00;
}
.ah-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 0 4px;
}
.ah-faq-a strong {
    color: #e0e0e0;
}
.ah-faq-link {
    color: #ffaa00;
    text-decoration: none;
}
.ah-faq-link:hover {
    text-decoration: underline;
}

/* ── Sale detail modal ──────────────────────────────────────── */
.ah-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: ah-fade-in 0.15s ease;
}
@keyframes ah-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.ah-modal {
    background: #1a1a1a;
    border: 1px solid var(--ah-border);
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    animation: ah-slide-up 0.18s ease;
}
@keyframes ah-slide-up {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.ah-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--ah-border);
}
.ah-modal-icon {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    flex-shrink: 0;
}
.ah-modal-title {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0;
}
.ah-modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.ah-modal-close:hover {
    color: #f0f0f0;
    background: #333;
}
.ah-modal-body {
    padding: 16px 20px 20px;
}
.ah-modal-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.ah-modal-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffaa00;
}
.ah-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.ah-modal-field {
    background: #111;
    border: 1px solid #252525;
    border-radius: 8px;
    padding: 10px 12px;
}
.ah-modal-field-label {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.ah-modal-field-value {
    font-size: 0.88rem;
    color: #e0e0e0;
    font-weight: 600;
    word-break: break-all;
}
.ah-modal-field-value a {
    color: #ffaa00;
    text-decoration: none;
}
.ah-modal-field-value a:hover {
    text-decoration: underline;
}
.ah-modal-attrs {
    background: #111;
    border: 1px solid #252525;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 0;
}
.ah-modal-attrs-label {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.ah-modal-attr-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ah-modal-attr-tag {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 0.78rem;
    color: #ccc;
}

/* Clickable rows in the sales table */
#ah-sales-tbody tr {
    cursor: pointer;
    transition: background 0.1s;
}
#ah-sales-tbody tr:hover {
    background: var(--ah-hover);
}

/* ── Estimated price badge in header ────────────────────────── */
.ah-est-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,170,0,0.08);
    border: 1px solid rgba(255,170,0,0.25);
    border-radius: 20px;
    padding: 4px 12px 4px 8px;
    font-size: 0.82rem;
    color: #ffaa00;
    margin-top: 6px;
}
.ah-est-price-label {
    font-size: 0.68rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ah-est-price-icon {
    font-size: 0.85rem;
}

/* ── Button ─────────────────────────────────────────────────── */
.ah-btn {
    padding: 7px 16px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ccc;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    margin-right: 6px;
    margin-top: 6px;
    transition: background 0.15s;
}
.ah-btn:hover { background: #2a2a2a; }
.ah-btn-primary {
    background: #1a4a1a;
    border-color: #3d8c3d;
    color: #6de06d;
}
.ah-btn-primary:hover { background: #1f5a1f; }

/* ── Table ──────────────────────────────────────────────────── */
.ah-table-wrap { overflow-x: auto; }
.ah-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.ah-table th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid var(--ah-border);
    color: #888;
    font-weight: 600;
    white-space: nowrap;
}
.ah-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #1e1e1e;
    vertical-align: middle;
}
.ah-table tr:last-child td { border-bottom: none; }
.ah-table tr:hover td { background: var(--ah-hover); }
.ah-table a { color: #5ba3f5; text-decoration: none; }
.ah-table a:hover { text-decoration: underline; }
.ah-sales-total {
    font-size: 0.82rem;
    color: #666;
}

/* ── Pagination ─────────────────────────────────────────────── */
.ah-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.ah-pagination button {
    padding: 5px 12px;
    background: #222;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ccc;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
}
.ah-pagination button.active {
    background: #1a2a1a;
    border-color: #3d8c3d;
    color: #6de06d;
}
.ah-pagination button:hover:not(.active) { background: #2a2a2a; }

/* ── Player page ────────────────────────────────────────────── */
.ah-player-header {
    background: var(--ah-card-bg);
    border: 1px solid var(--ah-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.ah-player-avatar {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    image-rendering: pixelated;
}
.ah-player-name {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: "Lexend Deca", sans-serif;
    margin: 0 0 4px;
    color: #f2f2f2;
}
.ah-player-uuid {
    font-size: 0.78rem;
    color: #555;
    font-family: monospace;
}
.ah-player-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.ah-stat-card {
    background: var(--ah-card-bg);
    border: 1px solid var(--ah-border);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ah-stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.ah-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffcc44;
    font-family: "Lexend Deca", sans-serif;
}

/* ── Tabs ───────────────────────────────────────────────────── */
.ah-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--ah-border);
}
.ah-tab {
    padding: 9px 22px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #888;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.92rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.ah-tab:hover { color: #ccc; }
.ah-tab.active { color: #f2f2f2; border-bottom-color: #ffaa00; }

/* ── Coin icon ──────────────────────────────────────────────── */
.ah-coin { color: #ffcc44; }
.ah-attrs-cell { font-size: 0.78rem; color: #888; }

/* ── Loading / empty ────────────────────────────────────────── */
.ah-loading {
    text-align: center;
    padding: 32px;
    color: #555;
    font-size: 0.95rem;
}
.ah-empty {
    text-align: center;
    padding: 32px;
    color: #555;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ah-item-page { flex-direction: column; }
    .ah-item-sidebar { width: 100%; }
    .ah-sale-seller, .ah-sale-time { display: none; }
}
@media (max-width: 600px) {
    .ah-hero-title { font-size: 1.7rem; }
    .ah-player-header { flex-direction: column; text-align: center; }
}

header {
    overflow: visible !important; /* Prevent child elements from going outside */
}

/* ── Section header (title + metadata on same row) ──────────── */
.ah-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ah-border);
}
.ah-section-header .ah-section-title { margin: 0; padding: 0; border: none; }
.ah-recent-status {
    font-size: 0.78rem;
    color: #555;
    white-space: nowrap;
}

/* ── Recent sales feed ──────────────────────────────────────── */
.ah-recent-section { margin-top: 8px; }
.ah-recent-feed {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* Each row in the recent feed */
.ah-sale-row {
    display: grid;
    grid-template-columns: 28px 1fr auto auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    background: var(--ah-card-bg);
    border: 1px solid var(--ah-border);
    border-radius: 8px;
    text-decoration: none;
    color: #f2f2f2;
    transition: background 0.15s;
    font-size: 0.88rem;
}
.ah-sale-row:hover { background: var(--ah-hover); }
.ah-sale-row-icon {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
    border-radius: 3px;
}
.ah-sale-row-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.ah-sale-row-type {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
}
.ah-sale-row-type.bin     { background: #003a1a; color: #55ff99; }
.ah-sale-row-type.auction { background: #1a1a00; color: #ffdd44; }
.ah-sale-row-price {
    font-weight: 700;
    white-space: nowrap;
}
.ah-sale-row-date {
    font-size: 0.78rem;
    color: #666;
    white-space: nowrap;
}
.ah-sale-row-player {
    font-size: 0.78rem;
    color: #5ba3f5;
    white-space: nowrap;
    text-decoration: none;
}
.ah-sale-row-player:hover { text-decoration: underline; }

@media (max-width: 700px) {
    .ah-sale-row { grid-template-columns: 28px 1fr auto auto; }
    .ah-sale-row-date, .ah-sale-row-player { display: none; }
}
