/* mania.market styles */

:root {
    --pm-accent: #7c3aed;
    --pm-accent-light: #a78bfa;
    --pm-accent-glow: rgba(124, 58, 237, 0.15);
}

/* ===== NAV ===== */
nav {
    border-bottom: 1px solid var(--pico-muted-border-color);
    padding: 0.5rem 0;
}
.brand {
    text-decoration: none;
    font-size: 1.25rem;
}
.brand strong {
    color: var(--pm-accent-light);
}
.brand-dot {
    opacity: 0.5;
}
nav li a:not(.brand) {
    text-decoration: none !important;
    position: relative;
}
nav li a:not(.brand)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--pm-accent-light);
    border-radius: 1px;
    transition: width 0.25s ease, left 0.25s ease;
}
nav li a:not(.brand):hover::after {
    width: 100%;
    left: 0;
}
.nav-wallet-btn {
    font-size: 0.85rem;
    padding: 0.3rem 1rem;
    cursor: pointer;
}
@media (max-width: 768px) {
    .nav-link-desktop {
        display: none;
    }
    nav {
        padding: 0.3rem 0;
    }
    nav ul {
        gap: 0.25rem;
    }
    .brand {
        font-size: 1rem;
    }
    .nav-wallet-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.7rem;
    }
    .lang-current {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ===== DASHBOARD HEADER ===== */
.dash-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.sub-expires {
    font-size: 0.8rem;
    color: var(--pm-accent-light);
    opacity: 0.7;
    white-space: nowrap;
}
.sub-expires-urgent {
    color: #ef4444;
    opacity: 1;
}

/* ===== LANGUAGE DROPDOWN ===== */
.lang-dropdown {
    position: relative;
}
.lang-current {
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: border-color 0.15s;
}
.lang-current::after {
    content: "";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.5;
}
.lang-current:hover {
    border-color: var(--pm-accent-light);
}
.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 0.35rem 0;
    margin: 0;
    list-style: none;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 100;
    overflow: hidden;
}
.lang-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
.lang-dropdown:hover .lang-menu {
    display: block;
}
.lang-menu li {
    display: block;
    margin: 0;
    padding: 0;
}
.lang-menu a {
    display: block;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.1s;
}
.lang-menu a:hover {
    background: var(--pm-accent-glow);
}
.lang-menu a.active {
    color: var(--pm-accent-light);
    font-weight: 600;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 5rem 1rem 4rem;
    background: radial-gradient(ellipse at 50% 0%, var(--pm-accent-glow) 0%, transparent 60%);
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.accent {
    color: var(--pm-accent-light);
}
.hero-tag {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}
.hero-sub {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}
.hero-cta {
    display: inline-block;
    background: var(--pm-accent);
    color: #fff;
    padding: 0.75rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--pm-accent-glow);
    color: #fff;
}

/* ===== STATS BAR ===== */
.stats-bar {
    border-top: 1px solid var(--pico-muted-border-color);
    border-bottom: 1px solid var(--pico-muted-border-color);
    padding: 1.5rem 1rem;
}
.stat {
    text-align: center;
}
.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pm-accent-light);
}
.stat-label {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ===== TRACK RECORD ===== */
.track-record {
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
}
.track-stats {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.track-stat strong {
    color: var(--pm-accent-light);
}
.track-divider {
    margin: 0 0.6rem;
    opacity: 0.4;
}
.ticker-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.ticker-wrap::before,
.ticker-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--pico-background-color), transparent);
}
.ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--pico-background-color), transparent);
}
.ticker {
    display: flex;
    gap: 1.5rem;
    animation: ticker-scroll 60s linear infinite;
    width: max-content;
}
.ticker:hover {
    animation-play-state: paused;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}
.ticker-item:hover {
    border-color: var(--pm-accent-light);
    color: inherit;
}
.ticker-win {
    border-color: rgba(16, 185, 129, 0.3);
}
.ticker-loss {
    opacity: 0.5;
}
.ticker-icon {
    font-weight: 700;
    color: #10b981;
    font-size: 0.8rem;
}
.ticker-icon-loss {
    color: #ef4444;
    font-size: 1rem;
}
.ticker-q {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticker-call {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: var(--pm-accent-glow);
    color: var(--pm-accent-light);
}
@media (prefers-reduced-motion: reduce) {
    .ticker {
        animation: none;
    }
}
@media (max-width: 768px) {
    .track-stats {
        font-size: 0.9rem;
    }
    .track-divider {
        display: none;
    }
    .track-stats {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }
}

/* ===== VITALIK QUOTE ===== */
.vitalik-quote {
    border-left: 4px solid var(--pm-accent);
    background: var(--pico-card-background-color);
    border-radius: 0 var(--pico-border-radius) var(--pico-border-radius) 0;
    padding: 1.5rem 2rem;
    margin: 2rem auto;
    max-width: 700px;
}
.vitalik-quote p {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.vitalik-quote p em {
    color: var(--pm-accent-light);
}
.vitalik-quote > footer {
    text-align: right;
    font-size: 0.85rem;
    opacity: 0.7;
    padding: 0;
}
.vitalik-quote > footer small {
    font-size: 0.75rem;
    opacity: 0.8;
}
.vitalik-quote > footer a {
    color: var(--pm-accent-light);
}

/* ===== STEP CARDS ===== */
.step-card {
    text-align: center;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--pm-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.step-card h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

/* ===== CATEGORIES ===== */
.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.categories-grid > div {
    text-align: center;
    padding: 1rem;
}
.categories-grid .badge {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.categories-grid p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0.5rem 0 0;
}

/* ===== PRICING ===== */
.pricing-card {
    text-align: center;
}
.pricing-card h3 {
    font-size: 2.5rem;
    margin: 0;
}
.pricing-card h3 small {
    font-size: 1rem;
    opacity: 0.6;
}
.pricing-card ul {
    text-align: left;
    padding-left: 1.5rem;
}
.pricing-featured {
    border: 2px solid var(--pm-accent);
    box-shadow: 0 0 30px var(--pm-accent-glow);
}
.pay-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pay-buttons button {
    width: 100%;
}
.depay-link {
    display: inline-block;
    background: var(--pm-accent);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.depay-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--pm-accent-glow);
    color: #fff;
}

/* ===== BOTTOM CTA ===== */
.hero-bottom {
    padding: 4rem 1rem;
    background: radial-gradient(ellipse at 50% 100%, var(--pm-accent-glow) 0%, transparent 60%);
}
.hero-bottom h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 1.5rem;
}

/* ===== FINDING CARDS (dashboard) ===== */
.finding-card {
    margin-bottom: 1rem;
}
.finding-card header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}
.finding-card h4 {
    margin: 0.5rem 0;
}
.finding-card h4 a {
    text-decoration: none;
}
.finding-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* ===== JUDGE OPINIONS ===== */
.judge-opinions {
    margin-top: 0.5rem;
    font-size: 0.9em;
}
.judge-opinions summary {
    cursor: pointer;
    user-select: none;
}
.judge-opinion {
    margin: 0.3rem 0 0.3rem 1.2rem;
    opacity: 0.85;
    font-size: 0.95em;
}

/* ===== TL;DR BLOCK ===== */
.tldr-block {
    white-space: pre-line;
    line-height: 1.6;
}

/* ===== CATEGORY BADGES ===== */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.badge-absurd { background: #f59e0b; color: #000; }
.badge-mispricing { background: #10b981; color: #000; }
.badge-misleading { background: #ef4444; color: #fff; }
.badge-arbitrage { background: #3b82f6; color: #fff; }
.badge-5050_trap { background: #8b5cf6; color: #fff; }

.severity {
    font-size: 0.85rem;
}

/* ===== AUTH MODAL ===== */
.auth-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.auth-overlay.open {
    display: flex;
}
.auth-modal {
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 16px;
    padding: 36px 32px 32px;
    width: 360px;
    max-width: calc(100vw - 32px);
    margin: 0;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.auth-modal h3 {
    margin: 0 0 20px;
    font-size: 18px;
}
.auth-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    line-height: 1;
}
.auth-close:hover {
    opacity: 1;
}
.auth-option-hidden {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 14px 0;
    opacity: 0.5;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--pico-muted-border-color);
}
.auth-wallet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 24px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
    transition: border-color 0.15s, color 0.15s;
    margin-bottom: 0;
}
.auth-wallet-btn:hover {
    border-color: var(--pm-accent-light);
    color: var(--pm-accent-light);
}
.auth-option:hover .auth-google-visual {
    border-color: var(--pm-accent-light);
    color: var(--pm-accent-light);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 2rem 0;
    opacity: 0.6;
}

/* ===== TRACK RECORD PAGE ===== */
.track-filter-btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--pico-muted-border-color);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.track-filter-btn:hover {
    border-color: var(--pm-accent-light);
}
.track-filter-btn.active {
    background: var(--pm-accent);
    border-color: var(--pm-accent);
    color: #fff;
}
.overflow-auto {
    overflow-x: auto;
}
.track-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.track-item {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.15s;
}
.track-item-win {
    border-left: 3px solid #10b981;
}
.track-item-loss {
    border-left: 3px solid #ef4444;
    opacity: 0.7;
}
.track-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}
.track-result {
    font-weight: 700;
    font-size: 0.9rem;
}
.track-result-win {
    color: #10b981;
}
.track-result-loss {
    color: #ef4444;
}
.track-item-q {
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    text-decoration: none;
}
.track-item-q:hover {
    text-decoration: underline;
}
.track-item-meta {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===== PROFILE ===== */
.profile-card {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.profile-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}
.profile-sub-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.profile-sub-status {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
}
.profile-sub-active {
    background: #10b981;
    color: #000;
}
.profile-sub-inactive {
    background: #ef4444;
    color: #fff;
}

/* ===== REFERRAL ===== */
.referral-section {
    border-color: var(--pm-accent);
    background: var(--pm-accent-glow);
}
.referral-section h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--pm-accent-light);
}
.ref-desc {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0 0 0.75rem;
}
.ref-stats {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    align-items: center;
}
.ref-stats strong {
    color: var(--pm-accent-light);
}
#ref-link {
    font-size: 0.8rem;
    cursor: text;
}

/* ===== PROMO CODE ===== */
.promo-section {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}
.promo-section h4 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}
.promo-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.promo-row input {
    margin-bottom: 0;
    flex: 1;
    max-width: 250px;
}
.promo-row button {
    margin-bottom: 0;
    white-space: nowrap;
}
.promo-msg {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.promo-msg.success { color: #10b981; }
.promo-msg.error { color: #ef4444; }

.disclaimer {
    opacity: 0.7;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 0.5rem;
}
