/* Assets > Artworks (/rwa-token/), Originals (/artworks/originals/) and Art Basket (/art-basket/). Loads after exchange.css. */

/* ---------- Section heads ---------- */
.aw-section-head { align-items: baseline; }
.aw-section-note { font-size: .85rem; color: var(--ap-muted, #8E9AB3); }
.aw-link { margin-left: auto; font-size: .88rem; font-weight: 600; color: var(--ap-gold, #D9B26F); text-decoration: none; white-space: nowrap; }
.aw-link:hover { color: var(--ap-gold, #D9B26F); text-decoration: underline; }

/* ---------- Collection rows (Artworks page) ---------- */
.rwa-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; padding: 16px;
    border: 1px solid var(--ap-border, #1E2840); border-radius: 16px; background: var(--ap-surface, #0D1220); margin-bottom: 16px; }
.rwa-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rwa-info .rwa-group { font-size: .75rem; color: var(--ap-muted, #8E9AB3); letter-spacing: .04em; text-transform: uppercase; }
.rwa-info .rwa-name { font-size: 1.1rem; font-weight: 700; color: var(--ap-text, #E9EDF5); }
.rwa-info .rwa-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rwa-info .rwa-tag { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--ap-border, #1E2840); font-size: .75rem; color: var(--ap-text-2, #AEB8CC); }
.rwa-info .rwa-meta { font-size: .82rem; color: var(--ap-muted, #8E9AB3); }
.rwa-info .rwa-meta a { color: var(--ap-gold, #D9B26F); }
.rwa-info .btn-view { margin-top: auto; align-self: flex-start; }
.rwa-works { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rwa-work { display: block; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--ap-border, #1E2840);
    background: #0A0E19; color: inherit; text-decoration: none; }
.rwa-work:hover { border-color: var(--ap-gold, #D9B26F); color: inherit; }
.rwa-work:focus-visible { outline: 2px solid var(--ap-gold, #D9B26F); outline-offset: 2px; }
.rwa-work img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.rwa-work .rwa-work-meta { padding: 6px 8px 8px; }
.rwa-work .rwa-work-name { font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rwa-work .rwa-work-artist { font-size: .72rem; color: var(--ap-muted, #8E9AB3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rwa-work .rwa-sold { position: absolute; top: 6px; left: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(0,0,0,.65); color: #fff; font-size: .68rem; font-weight: 700; }
.rwa-empty { display: flex; align-items: center; justify-content: center; min-height: 140px; padding: 16px; border: 1px dashed var(--ap-border, #1E2840);
    border-radius: 12px; color: var(--ap-muted, #8E9AB3); font-size: .9rem; text-align: center; }
@media (max-width: 991px) { .rwa-row { grid-template-columns: minmax(0, 1fr); } .rwa-info .btn-view { margin-top: 6px; } }
@media (max-width: 575px) {
    .rwa-works { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
    .rwa-work { scroll-snap-align: start; }
}

/* ---------- Original cards ---------- */
.aw-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1199px) { .aw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991px) { .aw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .aw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.aw-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ap-border, #1E2840); border-radius: 14px; overflow: hidden;
    background: var(--ap-surface, #0D1220); color: inherit; text-decoration: none; }
.aw-card:hover { border-color: var(--ap-gold, #D9B26F); color: inherit; }
.aw-card:focus-visible { outline: 2px solid var(--ap-gold, #D9B26F); outline-offset: 2px; }
.aw-card-img { display: block; background: #0A0E19; }
.aw-card-img img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.aw-card-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; min-width: 0; }
.aw-card-title { font-weight: 700; font-size: .92rem; color: var(--ap-text, #E9EDF5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-card-sub { font-size: .78rem; color: var(--ap-muted, #8E9AB3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-card-price { margin-top: 6px; font-size: .95rem; font-weight: 700; color: var(--ap-gold, #D9B26F); font-variant-numeric: tabular-nums; }

/* status pill: ACTIVE (for sale / trading), OFFERED (coming soon), BUYOUT */
.aw-status { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700;
    background: rgba(7, 10, 18, .78); color: var(--ap-text-2, #AEB8CC); border: 1px solid rgba(255, 255, 255, .12); }
.aw-status-active { color: #7FE0A8; border-color: rgba(127, 224, 168, .45); }
.aw-status-buyout { color: var(--ap-gold, #D9B26F); border-color: rgba(217, 178, 111, .5); }
.aw-status.inline { position: static; display: inline-block; }

/* ---------- Art Basket CTA (Artworks page) ---------- */
.aw-basket-cta { display: flex; align-items: center; gap: 16px; margin: -24px 0 56px; padding: 18px 20px; border: 1px solid var(--ap-border, #1E2840);
    border-radius: 16px; background: linear-gradient(90deg, rgba(217, 178, 111, .10), rgba(217, 178, 111, 0) 60%), var(--ap-surface, #0D1220);
    color: var(--ap-text, #E9EDF5); text-decoration: none; }
.aw-basket-cta:hover { border-color: var(--ap-gold, #D9B26F); color: var(--ap-text, #E9EDF5); }
.aw-basket-cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
    background: rgba(217, 178, 111, .14); color: var(--ap-gold, #D9B26F); font-size: 1.3rem; }
.aw-basket-cta-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.aw-basket-cta-text strong { font-size: 1.02rem; }
.aw-basket-cta-text span { font-size: .85rem; color: var(--ap-muted, #8E9AB3); }
.aw-basket-cta > .bi-arrow-right { color: var(--ap-gold, #D9B26F); font-size: 1.1rem; }

/* ---------- Pagination ---------- */
.aw-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.aw-pages a, .aw-pages span { min-width: 38px; padding: 6px 10px; border: 1px solid var(--ap-border, #1E2840);
    border-radius: 8px; text-align: center; color: var(--ap-text, #E9EDF5); text-decoration: none; font-size: .9rem; }
.aw-pages a:hover { border-color: var(--ap-gold, #D9B26F); }
.aw-pages .current { background: var(--ap-gold, #D9B26F); border-color: var(--ap-gold, #D9B26F); color: #17120A; font-weight: 700; }
.aw-pages .gap { border-color: transparent; }

/* ---------- Basket cards (/art-basket/) ---------- */
.ab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ab-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ap-border, #1E2840); border-radius: 16px; overflow: hidden;
    background: var(--ap-surface, #0D1220); color: inherit; text-decoration: none; }
.ab-card:hover { border-color: var(--ap-gold, #D9B26F); color: inherit; }
.ab-card:focus-visible { outline: 2px solid var(--ap-gold, #D9B26F); outline-offset: 2px; }
.ab-cover { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 16 / 10; background: #070A12; }
.ab-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-cover.n1 img { grid-column: 1 / -1; grid-row: 1 / -1; }
.ab-cover.n2 img { grid-row: 1 / -1; }
.ab-cover.n3 img:first-child { grid-row: 1 / -1; }
.ab-cover-empty { grid-column: 1 / -1; grid-row: 1 / -1; display: flex; align-items: center; justify-content: center; color: var(--ap-muted, #8E9AB3); font-size: 2rem; }
.ab-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.ab-name { font-size: 1.05rem; font-weight: 700; color: var(--ap-text, #E9EDF5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-sub { font-size: .82rem; color: var(--ap-muted, #8E9AB3); }
.ab-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ap-line, #141C2E); }
.ab-figure span { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ap-muted, #8E9AB3); }
.ab-figure strong { font-size: 1rem; color: var(--ap-text, #E9EDF5); font-variant-numeric: tabular-nums; }
.ab-figure strong.gold { color: var(--ap-gold, #D9B26F); }

.ab-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
@media (max-width: 767px) { .ab-how { grid-template-columns: minmax(0, 1fr); } }
.ab-how div { padding: 16px; border: 1px solid var(--ap-border, #1E2840); border-radius: 14px; background: var(--ap-surface, #0D1220); }
.ab-how b { display: block; margin-bottom: 4px; color: var(--ap-text, #E9EDF5); }
.ab-how b i { color: var(--ap-gold, #D9B26F); margin-right: 6px; }
.ab-how p { margin: 0; font-size: .86rem; color: var(--ap-text-2, #AEB8CC); line-height: 1.55; }

/* ---------- Basket detail ---------- */
.ab-detail { padding-top: calc(var(--ap-header-h, 72px) + 72px); }
@media (max-width: 767px) { .ab-detail { padding-top: calc(var(--ap-header-h, 64px) + 36px); } }
.ab-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; font-size: .85rem; color: var(--ap-muted, #8E9AB3); }
.ab-crumbs a { color: var(--ap-text-2, #AEB8CC); text-decoration: none; }
.ab-crumbs a:hover { color: var(--ap-gold, #D9B26F); }
.ab-crumbs .current { color: var(--ap-text, #E9EDF5); }
.ab-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 36px; }
@media (max-width: 991px) { .ab-head { grid-template-columns: minmax(0, 1fr); } }
.ab-head .ab-cover { border: 1px solid var(--ap-border, #1E2840); border-radius: 16px; overflow: hidden; }
.ab-eyebrow { font-size: .75rem; letter-spacing: .08em; color: var(--ap-muted, #8E9AB3); margin-bottom: 10px; }
.ab-title { font-size: 1.7rem; font-weight: 700; color: var(--ap-text, #E9EDF5); margin: 6px 0 4px; overflow-wrap: anywhere; }
.ab-panel { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--ap-border, #1E2840); border-radius: 12px; background: var(--ap-surface, #0D1220); }
.ab-panel .ab-figures { margin: 0; padding: 0; border: 0; }
.ab-panel .ab-figure strong { font-size: 1.3rem; }
.ab-note { font-size: .78rem; color: var(--ap-muted, #8E9AB3); margin-top: 8px; }
.ab-dl { display: grid; grid-template-columns: auto 1fr; margin: 0 0 16px; border-top: 1px solid var(--ap-line, #141C2E); }
.ab-dl dt, .ab-dl dd { padding: 10px 0; margin: 0; border-bottom: 1px solid var(--ap-line, #141C2E); }
.ab-dl dt { padding-right: 24px; color: var(--ap-muted, #8E9AB3); font-weight: 400; white-space: nowrap; }
.ab-dl dd { color: var(--ap-text, #E9EDF5); overflow-wrap: anywhere; }
.ab-dl code { color: var(--ap-text, #E9EDF5); font-size: .85rem; }
.ab-copy { margin-left: 6px; border: 0; background: none; color: var(--ap-gold, #D9B26F); padding: 0 4px; }

.ab-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ab-table th { text-align: left; font-weight: 600; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ap-muted, #8E9AB3);
    padding: 8px 10px; border-bottom: 1px solid var(--ap-border, #1E2840); }
.ab-table td { padding: 10px; border-bottom: 1px solid var(--ap-line, #141C2E); color: var(--ap-text, #E9EDF5); vertical-align: middle; }
.ab-table td.num, .ab-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ab-table tfoot td { font-weight: 700; border-bottom: 0; }
.ab-table img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: #0A0E19; display: block; }
.ab-table .ab-art-title { font-weight: 600; }
.ab-table .ab-art-sub { font-size: .78rem; color: var(--ap-muted, #8E9AB3); }
.ab-table a { color: var(--ap-gold, #D9B26F); }
.ab-table-wrap { overflow-x: auto; border: 1px solid var(--ap-border, #1E2840); border-radius: 14px; background: var(--ap-surface, #0D1220); padding: 4px 8px; }
@media (max-width: 575px) { .ab-table .hide-sm { display: none; } }

/* ---------- Originals search ---------- */
.aw-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 10px; margin-bottom: 22px; }
.aw-filters select, .aw-filters input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--ap-border, #1E2840);
    border-radius: 10px; background: var(--ap-bg-2, #0A0E19); color: var(--ap-text, #E9EDF5); }
.aw-filter-actions { display: flex; gap: 8px; }
.aw-filter-actions button, .aw-filter-actions a { height: 40px; padding: 0 16px; border-radius: 10px; white-space: nowrap; }
.aw-filter-actions button { border: 0; background: var(--ap-gold, #D9B26F); color: #17120A; font-weight: 700; }
.aw-filter-actions a { display: inline-flex; align-items: center; border: 1px solid var(--ap-border, #1E2840); color: var(--ap-text-2, #AEB8CC); text-decoration: none; }
@media (max-width: 991px) { .aw-filters { grid-template-columns: 1fr 1fr; } .aw-filters input[type=search], .aw-filter-actions { grid-column: 1 / -1; } }
