/* Mesodrome depth layer: terminal / light-Matrix atmosphere. Loaded after style.css; delete this file's <link> to revert. */

/* Background: deep glow + faint terminal grid */
html, body { background-color: #07090E; }
body {
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(255, 84, 38, 0.13), transparent 70%),
        radial-gradient(ellipse 60% 45% at 100% 100%, rgba(255, 140, 60, 0.06), transparent 70%),
        linear-gradient(rgba(126, 136, 155, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 136, 155, 0.045) 1px, transparent 1px);
    background-size: auto, auto, 36px 36px, 36px 36px;
    background-attachment: fixed;
}

/* Vignette + very faint scanlines over the whole page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 3px),
        radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
}

/* Matrix rain canvas (created by matrix_rain.js) */
#meso-rain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.11;
    mix-blend-mode: screen;
}

/* Header: glowing base line + brand glow */
.meso-top-header {
    position: relative;
    border-bottom: 1px solid rgba(255, 84, 38, 0.22);
    box-shadow: 0 14px 24px -18px rgba(255, 84, 38, 0.35);
}
.brand-title { text-shadow: 0 0 14px rgba(255, 84, 38, 0.35); }
.brand-logo-img { filter: drop-shadow(0 0 8px rgba(255, 84, 38, 0.45)); }

/* Category chips */
.cat-chip { transition: box-shadow .25s ease, border-color .25s ease, transform .2s ease; }
.cat-chip:hover { transform: translateY(-1px); }
.cat-chip.active { box-shadow: 0 0 16px rgba(255, 84, 38, 0.35), inset 0 0 14px rgba(255, 84, 38, 0.12); }

/* Panels: depth with layered shadows and glass */
.summary-bar,
.meso-live-tracker-box,
.custom-select-options {
    background-image: linear-gradient(160deg, rgba(28, 33, 46, 0.92), rgba(13, 16, 24, 0.96));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 14px 30px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 84, 38, 0.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.meso-modal-window {
    background-image: linear-gradient(160deg, rgba(28, 33, 46, 0.97), rgba(11, 14, 21, 0.99));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 84, 38, 0.12);
}

/* Feed title */
.feed-header-title { text-shadow: 0 0 10px rgba(255, 84, 38, 0.35); }

/* Deal cards: depth, terminal corner brackets, hover lift */
.deal-card:not(.deal-card-reported) {
    background-color: #0E1119;
    background-image:
        linear-gradient(#FF5426, #FF5426), linear-gradient(#FF5426, #FF5426),
        linear-gradient(#FF5426, #FF5426), linear-gradient(#FF5426, #FF5426),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 3px),
        linear-gradient(160deg, rgba(30, 35, 49, 0.96), rgba(12, 15, 22, 0.98));
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat;
    background-position: top left, top left, bottom right, bottom right, 0 0, 0 0;
    background-size: 12px 1px, 1px 12px, 12px 1px, 1px 12px, auto, auto;
    border: 1px solid rgba(126, 136, 155, 0.16);
    border-radius: 12px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 12px 26px -10px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (hover: hover) {
    .deal-card:not(.deal-card-reported):hover {
        transform: translateY(-4px);
        border-color: rgba(255, 84, 38, 0.45);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 36px -12px rgba(0, 0, 0, 0.9), 0 0 22px rgba(255, 84, 38, 0.22);
    }
}
.deal-card .card-img { transition: transform .35s ease; }
@media (hover: hover) { .deal-card:hover .card-img { transform: scale(1.03); } }
.deal-card .price-tag { text-shadow: 0 0 10px currentColor; }

@media (prefers-reduced-motion: reduce) {
    #meso-rain { display: none; }
    .deal-card:not(.deal-card-reported), .deal-card .card-img, .cat-chip { transition: none; }
}