/* ============================================================
   MONDAY AUCTIONS — fonts.css v3
   ============================================================ */

/* ── Plus Jakarta Sans: headings + display elements ── */
h1, h2, h3,
.section-title,
.footer-section h3,
.ma-card-title,
.ma-card-stat-value,
.listing-card-overlay__title,
.listing-card-overlay__price,
.ma-overlay-title,
.ma-stat-value,
.ma-calendar-day {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* ── DM Mono: data, badges, timers, labels ── */
.section-mono-label,
.badge, .badge *,
.listing-time-badge,
.countdown-timer,
.ma-card-timer,
.ma-card-timer-body,
.ma-card-stat-label,
.ma-card-meta,
.ma-card-bids,
.ma-stat-label,
.ma-featured-badge,
.ma-ticker-bar,
.ma-ticker-bar *,
.ma-ticker-item,
.ma-ticker-item *,
.ma-ticker-label,
.ma-calendar-dow,
.ma-calendar-mon {
    font-family: 'DM Mono', monospace !important;
}

/* ── Footer headings — Plus Jakarta Sans ── */
.footer-section h3 {
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    font-size: 15px !important;
}

/* ── Footer bottom — DM Mono ── */
.footer-bottom, .footer-bottom *,
.footer-powered, .footer-powered a {
    font-family: 'DM Mono', monospace !important;
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
}

/* ── Nav letter-spacing fix (prevents clipping) ── */
.nav a, .nav-dropdown-toggle, .nav-dropdown-menu a,
.header .btn, .header .btn-primary, .header .btn-text,
.user-section *, .mobile-nav-links a {
    letter-spacing: 0.01em !important;
}

/* ================================================================
   DEPTH + GLOW — make the page match the design doc atmosphere
   ================================================================ */

/* Stronger atmospheric radial glows */
[data-theme="dark"] body::before {
    background:
        radial-gradient(ellipse 70% 55% at 15% 8%, rgba(100,149,237,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 85%, rgba(46,207,143,0.10) 0%, transparent 50%),
        radial-gradient(ellipse 45% 35% at 65% 25%, rgba(123,97,255,0.10) 0%, transparent 45%) !important;
}

/* Stronger grid overlay */
[data-theme="dark"] body::after {
    background-image:
        linear-gradient(rgba(100,149,237,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100,149,237,0.05) 1px, transparent 1px) !important;
    background-size: 48px 48px !important;
}

/* Header: stronger frosted glass + glow line */
[data-theme="dark"] .header {
    background: rgba(10, 18, 38, 0.95) !important;
    border-bottom-color: rgba(100,149,237,0.18) !important;
    box-shadow: 0 1px 0 rgba(100,149,237,0.08), 0 4px 24px rgba(0,0,0,0.4) !important;
}

[data-theme="dark"] .header::after {
    width: 180px !important;
    box-shadow: 0 0 20px rgba(100,149,237,0.5), 0 0 40px rgba(100,149,237,0.2) !important;
}

/* Footer: deeper background */
[data-theme="dark"] .footer {
    background: rgba(8, 14, 30, 0.98) !important;
    border-top-color: rgba(100,149,237,0.15) !important;
}

/* Section titles: subtle glow on text */
[data-theme="dark"] .section-title {
    text-shadow: 0 0 40px rgba(100,149,237,0.15) !important;
}

/* Carousel: stronger overlay panel glow */
[data-theme="dark"] .ma-overlay {
    background: rgba(13, 24, 52, 0.88) !important;
    border-color: rgba(100,149,237,0.3) !important;
    box-shadow:
        0 0 0 1px rgba(100,149,237,0.08),
        0 0 30px rgba(100,149,237,0.12),
        0 12px 40px rgba(0,0,0,0.5) !important;
}

/* Carousel wrap: more breathing room from ticker */
.ma-carousel-wrap {
    margin-top: 28px !important;
}

/* Listing cards: stronger glow on hover, deeper base */
[data-theme="dark"] .ma-listing-card {
    background: rgba(16, 28, 58, 0.70) !important;
    border-color: rgba(100,149,237,0.18) !important;
}

[data-theme="dark"] .ma-listing-card:hover {
    border-color: rgba(100,149,237,0.5) !important;
    box-shadow:
        0 0 0 1px rgba(100,149,237,0.15),
        0 16px 48px rgba(0,0,0,0.5),
        0 0 80px rgba(100,149,237,0.08) !important;
}

/* Card stat value: green glow */
[data-theme="dark"] .ma-card-stat-value {
    text-shadow: 0 0 20px rgba(46,207,143,0.4) !important;
}

/* Tab buttons: stronger glow */
[data-theme="dark"] .tab-btn.active,
[data-theme="dark"] .tab-btn.btn-primary {
    box-shadow: 0 0 20px rgba(100,149,237,0.25), 0 0 40px rgba(100,149,237,0.1) !important;
}

/* Ticker: glow on the live dot / label */
.ma-ticker-label {
    text-shadow: 0 0 12px rgba(100,149,237,0.6) !important;
}

/* Dots: active dot glow */
[data-theme="dark"] .ma-dot.active {
    box-shadow: 0 0 8px rgba(100,149,237,0.6), 0 0 16px rgba(100,149,237,0.3) !important;
}

/* ================================================================
   BADGE SYSTEM — matches design doc exactly
   ================================================================ */

/* Live badge — green with blinking dot */
.badge-live {
    background: rgba(46,207,143,0.15) !important;
    border-color: rgba(46,207,143,0.4) !important;
    color: #2ECF8F !important;
    position: relative;
}
.badge-live::before {
    content: '●';
    margin-right: 4px;
    animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Featured badge — GOLD like doc (not purple) */
.badge-featured {
    background: rgba(255,209,102,0.12) !important;
    border-color: rgba(255,209,102,0.35) !important;
    color: #FFD166 !important;
}

/* Express badge — orange */
.badge-express {
    background: rgba(255,122,69,0.12) !important;
    border-color: rgba(255,122,69,0.35) !important;
    color: #FF7A45 !important;
}

/* No Reserve badge — cornflower */
.badge-no-reserve {
    background: rgba(100,149,237,0.12) !important;
    border-color: rgba(100,149,237,0.35) !important;
    color: #A3C3FF !important;
}

/* Buy Today badge — green */
.badge-buytoday {
    background: rgba(46,207,143,0.12) !important;
    border-color: rgba(46,207,143,0.35) !important;
    color: #2ECF8F !important;
}

/* Buy Now CTA button in card footer */
.ma-card-buynow-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: #2ECF8F;
    color: #071a0e;
    border-radius: 6px;
    font-family: 'DM Mono', monospace !important;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(46,207,143,0.3);
    transition: box-shadow 0.15s;
}
.ma-card-buynow-btn:hover {
    box-shadow: 0 0 20px rgba(46,207,143,0.5);
}

/* ================================================================
   LISTINGS GRID — 3 col
   ================================================================ */
.listings-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}
@media (max-width: 1024px) {
    .listings-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
    .listings-grid { grid-template-columns: 1fr !important; }
}

/* ================================================================
   LISTING CARD — design doc style
   ================================================================ */
/* Card base — surface-card from design doc */
.ma-listing-card {
    display: block;
    text-decoration: none;
    background: rgba(26, 46, 82, 0.6);
    border: 1px solid rgba(100,149,237,0.15);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.ma-listing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100,149,237,0.4), transparent);
    z-index: 1;
}
.ma-listing-card:hover {
    border-color: rgba(100,149,237,0.45);
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(100,149,237,0.12),
        0 16px 48px rgba(0,0,0,0.5),
        0 0 80px rgba(100,149,237,0.07);
}
.ma-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: #060d1e;
    position: relative;
    overflow: hidden;
}
.ma-card-img-blur {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: blur(18px);
    transform: scale(1.1);
    opacity: 0.55;
    z-index: 0;
}
.ma-card-img-main {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    z-index: 1;
    transition: transform 0.4s ease;
}
.ma-listing-card:hover .ma-card-img-main { transform: scale(1.03); }
.ma-card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #0a1428 0%, #0f1e3a 100%);
}
.ma-card-badges {
    position: absolute; top: 10px; left: 10px;
    z-index: 5; display: flex; gap: 5px; flex-wrap: wrap;
}
.ma-card-timer {
    position: absolute; top: 10px; right: 10px;
    z-index: 5;
    font-family: 'DM Mono', monospace !important;
    font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
    background: rgba(0,0,0,0.82);
    border: 1px solid rgba(255,209,102,0.25);
    border-radius: 6px; padding: 4px 10px;
    color: #FFD166;
    text-shadow: 0 0 8px rgba(255,209,102,0.4);
}
/* Card body — doc uses surface-card navy, not black */
.ma-card-body {
    padding: 16px;
    background: rgba(22, 36, 68, 0.9);
    border-top: 1px solid rgba(100,149,237,0.1);
}
.ma-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15px; font-weight: 700;
    color: #e8eaed; margin-bottom: 4px;
    letter-spacing: -0.01em; line-height: 1.3;
}
.ma-card-meta {
    font-family: 'DM Mono', monospace !important;
    font-size: 11px; color: rgba(255,255,255,0.3);
    letter-spacing: 0.05em; text-transform: uppercase;
    margin-bottom: 14px;
}
.ma-card-stats {
    display: flex; justify-content: space-between; align-items: flex-end;
}
.ma-card-stat-label {
    font-family: 'DM Mono', monospace !important;
    font-size: 10px; color: rgba(255,255,255,0.3);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px;
}
/* Bid value — green like doc */
.ma-card-stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 22px; font-weight: 700;
    color: #2ECF8F; letter-spacing: -0.02em; line-height: 1;
    text-shadow: 0 0 20px rgba(46,207,143,0.35);
}
/* Buy Today price — cornflower blue like doc */
.ma-card-stat-value.blue {
    color: #6495ED;
    text-shadow: 0 0 20px rgba(100,149,237,0.35);
}
.ma-card-timer-body {
    font-family: 'DM Mono', monospace !important;
    font-size: 14px; font-weight: 500;
    color: #FFD166; letter-spacing: 0.04em; text-align: right;
    text-shadow: 0 0 8px rgba(255,209,102,0.3);
}
.ma-card-divider {
    height: 1px;
    background: rgba(100,149,237,0.1);
    margin: 14px 0;
}
.ma-card-footer {
    display: flex; align-items: center; justify-content: space-between;
}
.ma-card-bids {
    font-family: 'DM Mono', monospace !important;
    font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.05em;
}

/* ================================================================
   TICKER BAR
   ================================================================ */
.ma-ticker-wrap {
    background: rgba(8,15,32,0.95);
    border-top: 1px solid rgba(100,149,237,0.1);
    border-bottom: 1px solid rgba(100,149,237,0.14);
    box-shadow: 0 1px 0 rgba(100,149,237,0.06), inset 0 1px 0 rgba(100,149,237,0.04);
    overflow: hidden;
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}
.ma-ticker-wrap::before, .ma-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.ma-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgba(8,15,32,1), transparent);
}
.ma-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(8,15,32,1), transparent);
}
.ma-ticker-label {
    position: absolute;
    left: 20px;
    z-index: 3;
    font-family: 'DM Mono', monospace !important;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6495ED;
    white-space: nowrap;
    background: rgba(8,15,32,0.95);
    padding-right: 16px;
    text-shadow: 0 0 12px rgba(100,149,237,0.6);
}
.ma-ticker-track {
    display: flex;
    align-items: center;
    animation: ma-ticker-scroll 45s linear infinite;
    padding-left: 120px;
    white-space: nowrap;
}
.ma-ticker-track:hover { animation-play-state: paused; }
@keyframes ma-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ma-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Mono', monospace !important;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    padding: 0 24px;
    white-space: nowrap;
}
.ma-ticker-item .t-name  { color: rgba(255,255,255,0.7); }
.ma-ticker-item .t-price { color: #ffffff; font-weight: 500; }
.ma-ticker-item .t-up    { color: #2ECF8F; text-shadow: 0 0 8px rgba(46,207,143,0.4); }
.ma-ticker-item .t-sep   { color: rgba(100,149,237,0.25); margin: 0 2px; }

/* ── Listing page title — Plus Jakarta Sans ── */
html .listing-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
    text-shadow: none !important;
}
