/* Paid Events — glass theme (matches /events, lounge, partners) */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

html.paid-events-page-doc,
html.paid-events-page-doc body {
    background-color: #050505;
}

body.paid-events-page-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #050505;
    color: #f5f5f5;
    padding: 0;
    min-height: 100vh;
    overflow-x: clip;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Top glow (matches /events, /tournaments) */
body.paid-events-page-body::before {
    content: '';
    position: fixed;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: min(140vw, 1600px);
    height: 320px;
    background: radial-gradient(
        ellipse 78% 92% at 50% 0%,
        rgba(99, 102, 241, 0.26) 0%,
        rgba(99, 102, 241, 0.1) 38%,
        transparent 72%
    );
    pointer-events: none;
    z-index: 0;
}

body.paid-events-page-body .paid-events-page button {
    font: inherit;
}

body.paid-events-page-body .paid-events-page {
    position: relative;
    z-index: 1;
    max-width: min(1000px, 100%);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px) clamp(40px, 5vw, 56px);
}

body.paid-events-page-body #headerContainer {
    position: relative;
    z-index: 2;
    width: 100%;
}

body.paid-events-page-body .pe-hero,
body.paid-events-page-body .pe-glass-section,
body.paid-events-page-body .pe-page-footer {
    position: relative;
    z-index: 1;
}

.pe-hero {
    margin: 0 0 clamp(20px, 3vw, 28px);
    padding: clamp(24px, 4vw, 40px) 0 clamp(20px, 4vw, 28px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pe-hero-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.1;
}

.pe-hero-lead {
    margin: 0;
    max-width: 40rem;
    font-size: clamp(15px, 2.2vw, 17px);
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.55;
}

.pe-hero-lead a {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 600;
}

.pe-hero-lead a:hover {
    text-decoration: underline;
    color: #c7d2fe;
}

.pe-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.pe-subnav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pe-subnav-link:hover {
    background: rgba(129, 140, 248, 0.15);
    border-color: rgba(129, 140, 248, 0.45);
    color: #fff;
}

.pe-subnav-link.is-active {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(129, 140, 248, 0.55);
    color: #fff;
}

.pe-glass-section {
    margin-bottom: clamp(20px, 3vw, 28px);
    padding: clamp(20px, 3vw, 28px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    min-width: 0;
    isolation: isolate;
}

.pe-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 16px;
    margin: 0;
}

.pe-stat-box {
    padding: 20px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.pe-stat-box .label {
    display: block;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.pe-stat-box .value {
    color: #a5b4fc;
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pe-events-list {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 18px);
}

.pe-event-card {
    position: relative;
    padding: 0;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.pe-event-card:hover {
    border-color: rgba(129, 140, 248, 0.35);
    transform: translateY(-1px);
}

.pe-event-card.is-closed {
    opacity: 0.62;
    background: rgba(0, 0, 0, 0.35);
}

.pe-event-card.is-closed:hover {
    opacity: 0.78;
    border-color: rgba(255, 255, 255, 0.12);
    transform: none;
}

.pe-event-card-cover-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
    color: transparent;
}

.pe-event-card-cover-link:focus-visible {
    outline: 2px solid #818cf8;
    outline-offset: 2px;
}

.pe-event-card .pe-card-body,
.pe-event-card .pe-card-banner {
    position: relative;
}

/* Let the stretch link receive clicks; re-enable on controls and profile links */
.pe-card-body {
    pointer-events: none;
}

.pe-card-body .list-card-actions,
.pe-card-body a,
.pe-card-body button {
    pointer-events: auto;
}

.pe-name-list a,
.pe-winners-block a,
.pe-payouts-block a {
    position: relative;
    z-index: 2;
}

.pe-event-card .pe-btn {
    position: relative;
    z-index: 2;
}

.pe-closed-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(80, 80, 80, 0.55);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.pe-section-label {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.42);
}

.pe-section-label.pe-section-closed {
    margin-top: clamp(20px, 3vw, 28px);
    color: rgba(255, 255, 255, 0.32);
}

.pe-signups-block,
.pe-payouts-block,
.pe-winners-block {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
}

.pe-signups-block strong,
.pe-payouts-block strong,
.pe-winners-block strong {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.pe-name-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.pe-name-list a {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 500;
}

.pe-name-list a:hover {
    text-decoration: underline;
}

.pe-name-more {
    color: rgba(255, 255, 255, 0.38);
    font-size: 12px;
}

.pe-payout-row,
.pe-winner-row {
    padding: 4px 0;
}

.pe-payout-row .placement,
.pe-winner-row .placement {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    margin-right: 6px;
}

.pe-card-banner {
    display: block;
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    background: #111;
}

.pe-card-body {
    padding: clamp(16px, 3vw, 22px);
}

.pe-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.pe-card-game {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pe-card-game.is-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.pe-card-head-text {
    flex: 1;
    min-width: 0;
}

.pe-event-card h3 {
    margin: 0 0 8px;
    font-size: clamp(17px, 2.5vw, 20px);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.pe-event-card .kind-badge {
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
    font-weight: 600;
}

.pe-event-card .meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 10px;
}

.pe-event-card .pot {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.pe-event-card .pot strong {
    color: #c7d2fe;
    font-weight: 600;
}

body.paid-events-page-body .pe-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
    transition: filter 0.15s ease, transform 0.15s ease;
}

body.paid-events-page-body .pe-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff;
}

.pe-winners-list,
.pe-contributions-list {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
}

.pe-payouts-block:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: none;
}

.pe-winners-list:empty,
.pe-contributions-list:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: none;
}

.pe-winners-list strong,
.pe-contributions-list strong {
    color: rgba(255, 255, 255, 0.75);
}

.pe-loading,
.pe-empty,
.pe-error {
    text-align: center;
    padding: clamp(32px, 5vw, 48px) 16px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 15px;
}

.pe-error {
    color: #fca5a5;
}

.pe-page-footer {
    margin-top: 32px;
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.38);
    font-size: 13px;
}

.pe-page-footer a {
    color: #a5b4fc;
    text-decoration: none;
}

@media (max-width: 560px) {
    .pe-stat-box .value {
        font-size: 20px;
    }
}
