/* ── Grain texture overlay ────────────────────────────────────────────────── */
.grain-texture {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
}

/* ── Glassmorphic card ────────────────────────────────────────────────────── */
.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: #1e5af2;
    box-shadow: 0 0 20px rgba(30, 90, 242, 0.2);
}

/* ── Modal glass panel (darker, higher opacity) ───────────────────────────── */
.glass-panel {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Parallelogram button shape ───────────────────────────────────────────── */
.parallelogram {
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    display: inline-block;
    text-align: center;
}

/* ── Skewed decorative section ────────────────────────────────────────────── */
.skew-section {
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

/* ── Nav logo image sizing ────────────────────────────────────────────────── */
nav .custom-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* ── Material Symbols ─────────────────────────────────────────────────────── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

/* ── Countdown hidden when expired ───────────────────────────────────────── */
#countdown.expired {
    display: none;
}

/* ── Team search hidden items ─────────────────────────────────────────────── */
.team-card[hidden] {
    display: none;
}

/* ── Tighter side padding on mobile (px-margin = 32px → 16px) ────────────── */
@media (max-width: 639px) {
    .px-margin {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ── Registration modal bottom-sheet slide-up (mobile) ───────────────────── */
@media (max-width: 639px) {
    #registration-modal.flex > div:last-child {
        animation: modal-slide-up 0.28s cubic-bezier(0.32, 0.72, 0, 1) both;
    }
}

@keyframes modal-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* ── Desktop nav link underline effect ───────────────────────────────────── */
.nav-desktop li a {
    position: relative;
    padding-bottom: 3px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.nav-desktop li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1e5af2, transparent);
    box-shadow: 0 0 8px rgba(30, 90, 242, 0.5);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.nav-desktop li a:hover {
    color: #ffffff;
}

.nav-desktop li a:hover::after {
    transform: scaleX(1);
}

/* Active / current page — underline always visible */
.nav-desktop li.current-menu-item a,
.nav-desktop li.current_page_item a,
.nav-desktop li.current-menu-ancestor a {
    color: #b6c4ff;
}

.nav-desktop li.current-menu-item a::after,
.nav-desktop li.current_page_item a::after,
.nav-desktop li.current-menu-ancestor a::after {
    transform: scaleX(1);
    background: #1e5af2;
    box-shadow: 0 0 10px rgba(30, 90, 242, 0.4);
}

/* ── Page / post content block ───────────────────────────────────────────── */
.entry-content p,
.entry-content li {
    color: #c3c5d8;
    font-size: 1rem;
    line-height: 1.7;
}

.entry-content p { margin-bottom: 1rem; }

.entry-content h2 {
    color: #e1e1ee;
    font-family: Montserrat, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.entry-content h3 {
    color: #b6c4ff;
    font-family: Inter, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.entry-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.entry-content a {
    color: #b6c4ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content code {
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.06);
    padding: 1px 5px;
    border-radius: 3px;
    color: #e1e1ee;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: 1rem 0 1.5rem;
}

.entry-content th {
    text-align: left;
    font-family: Inter, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8d90a1;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.entry-content td {
    padding: 0.75rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #c3c5d8;
}

.entry-content tr:last-child td { border-bottom: none; }

/* ── Mobile nav menu links ────────────────────────────────────────────────── */
.mobile-nav-list li a {
    display: block;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s;
}
.mobile-nav-list li a:hover,
.mobile-nav-list li.current-menu-item a {
    color: #b6c4ff;
}
