/* ==========================================================================
 * hot-candy.css — dark theme override layer for the LBRY block explorer.
 *
 * Thin skin layer ONLY: every rule restyles an existing main.css selector;
 * nothing here depends on new markup. Load AFTER main.css (Layout/default.ctp).
 * Palette = hot-candy tokens (LBC dashboard / Android / desktop theme family):
 *   bg #070B10, surface #0E161F / #111B26, border #1D3644,
 *   mint #34E5B0 (primary), mint-deep #2BBB90, cyan #36ADBA,
 *   blue #2C5C8C / #4E8FC4, candy yellow #F4E866 (warnings),
 *   coral #FF6B6B (destructive/errors), text #E8EEF2, muted #93A3B0.
 * Card: t_3c741e0e
 * ========================================================================== */

/* ---------- base ---------- */
html, body { background: #070B10; color: #E8EEF2 }
html { color-scheme: dark } /* native scrollbars/form controls dark too */
a:link, a:visited { color: #34E5B0 }
a:hover { color: #2BBB90 }

/* ---------- header ---------- */
.header { border-bottom: 1px solid #1D3644 }
.header a:link, .header a:visited { color: #E8EEF2 }
.header .search .input-group { border: 2px solid #1D3644; background: #0E161F }
.header .search .input-group input { background: #0E161F; color: #E8EEF2 }
.header .search .input-group .btn-inline-search { background: #34E5B0; color: #070B10 }
.header .search .input-group .btn-inline-search:hover { background: #2BBB90 }

/* ---------- home ---------- */
.home-container-cell > .main > .title { color: #E8EEF2 }
.home-container-cell .search-input { background: #0E161F; color: #E8EEF2; border-color: #1D3644 }
.home-container-cell .search-input::placeholder { color: #93A3B0 }
.home-container-cell .ctls .btn-search { background: #34E5B0; color: #070B10 }
.home-container-cell .ctls .btn-search:hover { background: #2BBB90; color: #070B10 }
.home-container-cell .ctls a:hover { color: #2BBB90 }

/* ---------- panels (all boxed surfaces) ---------- */
.home-container-cell .recent-blocks,
.home-container-cell .recent-claims,
.all-blocks,
.block-summary,
.block-transactions,
.block-size-chart-container,
.realtime-main .realtime-blocks,
.realtime-main .realtime-tx,
.stats,
.stats-main .richlist,
.tx-summary,
.tx-details-layout,
.address-head .tag-address-container,
.address-summary,
.recent-transactions,
.claims-body .claim-info,
.claims-body .claim-metadata {
    background: #0E161F;
    border: 1px solid #1D3644;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .55);
}

/* ---------- claim cards ---------- */
.home-container-cell .recent-claims .claim-box,
.claims-grid .claim-grid-item {
    background: #0E161F;
    border: 1px solid #1D3644;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .55);
}
.home-container-cell .recent-claims .claim-box:hover,
.claims-grid .claim-grid-item:hover { background: #111B26 }
.home-container-cell .recent-claims .claim-box .thumbnail,
.claims-grid .claim-grid-item .thumbnail,
.claims-body .claim-info .thumbnail { background: #111B26 }
.home-container-cell .recent-claims .claim-box .thumbnail img,
.claims-grid .claim-grid-item .thumbnail img { border-bottom: 1px solid #1D3644 }
.home-container-cell .recent-claims .claim-box .tx-link { background: #2BBB90; color: #070B10 }
.home-container-cell .recent-claims .claim-box .tx-link:hover { background: #34E5B0; color: #070B10 }

/* auto-thumb placeholder colors -> candy set (mt_rand picks these classes) */
.home-container-cell .recent-claims .claim-box .thumbnail.purple,
.claims-grid .claim-grid-item .thumbnail.purple,
.claims-body .claim-info .thumbnail.purple { background: #4E8FC4 }
.home-container-cell .recent-claims .claim-box .thumbnail.orange,
.claims-grid .claim-grid-item .thumbnail.orange,
.claims-body .claim-info .thumbnail.orange { background: #FF6B6B }
.home-container-cell .recent-claims .claim-box .thumbnail.blue,
.claims-grid .claim-grid-item .thumbnail.blue,
.claims-body .claim-info .thumbnail.blue { background: #36ADBA }
.home-container-cell .recent-claims .claim-box .thumbnail.teal,
.claims-grid .claim-grid-item .thumbnail.teal,
.claims-body .claim-info .thumbnail.teal { background: #2BBB90 }
.home-container-cell .recent-claims .claim-box .thumbnail.green,
.claims-grid .claim-grid-item .thumbnail.green,
.claims-body .claim-info .thumbnail.green { background: #34E5B0 }
/* yellow class -> calm deep blue: a full-bleed #F4E866 field on a dark canvas
   reads as a stray light panel; yellow is reserved for warnings only */
.home-container-cell .recent-claims .claim-box .thumbnail.yellow,
.claims-grid .claim-grid-item .thumbnail.yellow,
.claims-body .claim-info .thumbnail.yellow { background: #2C5C8C }
.home-container-cell .recent-claims .claim-box .thumbnail.yellow .autothumb,
.claims-grid .claim-grid-item .thumbnail.yellow .autothumb,
.claims-body .claim-info .thumbnail.yellow .autothumb { color: #E8EEF2 }
/* letters sit on bright candy fills -> dark ink */
.home-container-cell .recent-claims .claim-box .thumbnail .autothumb,
.claims-grid .claim-grid-item .thumbnail .autothumb,
.claims-body .claim-info .thumbnail .autothumb { color: #070B10 }

/* tags & price chips */
.home-container-cell .recent-claims .claim-box .tags .nsfw,
.claims-grid .claim-grid-item .tags .nsfw { background: #FF6B6B; color: #070B10 }
.home-container-cell .recent-claims .claim-box .tags .content-type,
.claims-grid .claim-grid-item .tags .content-type { background: #36ADBA; color: #070B10 }
.claims-grid .claim-grid-item .price-tag { background: #2BBB90; color: #070B10 }

/* field labels on navy */
.claims-grid .claim-grid-item .label,
.claims-body .claim-info .content .label,
.claims-body .claim-metadata .details .label,
.claims-body .claim-metadata .title,
.claims-body .more-claims h4,
.block-summary .label,
.stats .box .title,
.tx-summary .box .title,
.address-summary .box .title,
.address-head .tag, .address-head .tag a:link, .address-head .tag a:visited { color: #34E5B0 }
.claims-body .claim-metadata .details { border-top: 1px solid #1D3644 }
.claims-body .claim-metadata .open-lbry-link { background: #34E5B0; color: #070B10 }
.claims-body .claim-metadata .open-lbry-link:hover { background: #2BBB90; color: #070B10 }

/* ---------- tables ---------- */
.table thead tr th { border-top: 1px solid #1D3644; border-bottom: 1px solid #1D3644 }
.table tbody tr td { border-bottom: 1px solid #1D3644 }

/* ---------- block pages ---------- */
.block-nav .btn { border: 1px solid #1D3644 }
.block-nav .btn:link, .block-nav .btn:visited { color: #E8EEF2 }
.block-nav .btn:hover { background: #111B26; color: #E8EEF2; text-decoration: none }
.block-size-chart-container .load-progress { background: #34E5B0 }
.block-size-chart-container .chart { border: 1px solid #1D3644; background: #0E161F }
.block-size-chart-container .block-size-data-links a.active:link,
.block-size-chart-container .block-size-data-links a.active:visited { color: #93A3B0 }

/* ---------- tx pages ---------- */
.tx-time h3 { border-bottom: 1px dotted #93A3B0 }
.tx-details-layout { background: #0E161F }
.tx-summary .box, .stats .box, .address-summary .box { border-right: 1px solid #1D3644 }
.tx-details-layout .inputs .input, .tx-details-layout .outputs .output {
    border: 1px solid #1D3644; background: #111B26; color: #E8EEF2
}
.tx-details-layout .inputs .input.is-source, .tx-details-layout .outputs .output.is-source {
    border-right-color: #34E5B0; background: rgba(52, 229, 176, .10)
}
.tx-details-layout .inputs .input.highlighted, .tx-details-layout .outputs .output.highlighted {
    background: rgba(78, 143, 196, .16)
}
.tx-details-layout .outputs .output .labels .support { background: #F4E866; color: #070B10 }
.tx-details-layout .outputs .output .labels .update { background: #4E8FC4; color: #070B10 }
.tx-details-layout .outputs .output .labels .claim { background: #34E5B0; color: #070B10 }
.tx-details-layout .tag, .tx-details-layout .tag a:link, .tx-details-layout .tag a:visited { color: #93A3B0 }
.tx-table td.credit, .tx-table td div.credit { color: #34E5B0 }
.tx-table td.debit, .tx-table td div.debit { color: #FF6B6B }

/* ---------- address pages ---------- */
.address-head .tag-address-container .form-group .col input,
.address-head .tag-address-container .form-group .col textarea {
    border: 2px solid #1D3644; background: #0E161F; color: #E8EEF2
}
.address-head .tag-address-container .form-group .error-message { color: #FF6B6B }
.address-head .tag-address-container .btn-tag { background: #34E5B0; color: #070B10 }
.address-head .tag-address-container .btn-close { background: #FF6B6B; color: #070B10 }
.address-qr img { border: 1px solid #1D3644; background: #E8EEF2 }

/* ---------- stats ---------- */
.stats-main .richlist .tag { color: #93A3B0 }
.stats-main .richlist .tag a:link, .tx-details-layout .tag a:visited { color: #93A3B0 }
.stats-main .richlist .top500-percent { background: rgba(78, 143, 196, .30) }

/* ---------- misc chrome ---------- */
.recent-transactions .results-meta, .all-blocks .results-meta { color: #93A3B0 }
footer .content { border-top: 1px solid #1D3644 }
footer .content .page-time { color: #93A3B0 }
