/* ========================================
   MWC 2026 Popup Styles
   ======================================== */

/* Override base .popup styles for MWC overlay */
#popupBoxMwc.popup {
    width: 100%;
    max-width: none;
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
    z-index: 9999;
    background: radial-gradient(ellipse at 50% 60%, rgba(0,100,255,0.12) 0%, rgba(0,0,0,0.72) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: mwcFadeIn 0.4s ease;
}

@keyframes mwcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Card */
.mwc-card {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: #040d1a;
    border: 1px solid rgba(0,200,255,0.2);
    overflow: hidden;
    animation: mwcSlideUp 0.5s cubic-bezier(0.22,1,0.36,1);
    box-shadow:
        0 0 0 1px rgba(0,200,255,0.08),
        0 30px 80px rgba(0,0,0,0.8),
        0 0 60px rgba(0,100,255,0.15);
}

@keyframes mwcSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scan-line texture */
.mwc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,200,255,0.015) 3px,
        rgba(0,200,255,0.015) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* Top accent bar */
.mwc-top-bar {
    height: 3px;
    background: linear-gradient(90deg, #0066ff 0%, #00c8ff 50%, transparent 100%);
}

/* Corner brackets */
.mwc-bracket {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 2;
}
.mwc-tl { top: 12px; left: 12px; border-top: 2px solid #00c8ff; border-left: 2px solid #00c8ff; }
.mwc-tr { top: 12px; right: 12px; border-top: 2px solid #00c8ff; border-right: 2px solid #00c8ff; }
.mwc-bl { bottom: 12px; left: 12px; border-bottom: 2px solid #00c8ff; border-left: 2px solid #00c8ff; }
.mwc-br { bottom: 12px; right: 12px; border-bottom: 2px solid #00c8ff; border-right: 2px solid #00c8ff; }

/* Glow orb animation */
.mwc-glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,100,255,0.18) 0%, transparent 70%);
    top: -100px;
    right: -80px;
    pointer-events: none;
    animation: mwcOrb 5s ease-in-out infinite;
}

@keyframes mwcOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 20px); }
}

/* Header */
.mwc-header {
    padding: 36px 40px 24px;
    position: relative;
}

.mwc-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.mwc-badge {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 14px;
    border: 1px solid;
}

.mwc-badge-event {
    color: #ffb700;
    border-color: #ffb700;
    background: rgba(255,183,0,0.08);
}

.mwc-badge-year {
    color: #00c8ff;
    border-color: rgba(0,200,255,0.4);
    background: rgba(0,200,255,0.06);
}

.mwc-headline-sub {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7a9ab8;
    margin-bottom: 8px;
}

.mwc-headline-main {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 46px;
    font-weight: 800;
    line-height: 0.95;
    color: #fff;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.mwc-headline-main span {
    color: #00c8ff;
}

.mwc-headline-desc {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #7a9ab8;
    margin-top: 6px;
    letter-spacing: 0.04em;
}

/* Divider */
.mwc-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(0,200,255,0.3) 0%, rgba(0,200,255,0.05) 100%);
    margin: 0 40px;
}

/* Body */
.mwc-body {
    padding: 24px 40px 28px;
}

.mwc-collab-block {
    background: rgba(0,200,255,0.04);
    border-left: 3px solid #00c8ff;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.mwc-collab-block p {
    font-size: 13.5px;
    color: #e8f4ff;
    line-height: 1.7;
}

.mwc-collab-block p strong {
    color: #fff;
    font-weight: 700;
}

.mwc-section-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #00c8ff;
    margin-bottom: 12px;
}

.mwc-tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
}

.mwc-tech-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,200,255,0.08);
    transition: border-color 0.2s;
}

.mwc-tech-item:hover {
    border-color: rgba(0,200,255,0.25);
}

.mwc-tech-full {
    grid-column: 1 / -1;
}

.mwc-tech-dot {
    width: 6px;
    height: 6px;
    background: #00c8ff;
    margin-top: 5px;
    flex-shrink: 0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.mwc-tech-text {
    font-size: 12.5px;
    color: #e8f4ff;
    line-height: 1.4;
    font-weight: 400;
}

/* Info row */
.mwc-info-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mwc-info-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(0,200,255,0.15);
    flex: 1;
    min-width: 160px;
}

.mwc-info-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.mwc-info-label {
    font-size: 10px;
    color: #7a9ab8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
}

.mwc-info-val {
    font-size: 13px;
    color: #fff;
    font-weight: 400;
    line-height: 1.3;
}

/* Footer */
.mwc-footer {
    padding: 16px 40px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(0,200,255,0.1);
}

.mwc-check-box {
    display: flex;
    align-items: center;
}

.mwc-check-box label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #7a9ab8;
    cursor: pointer;
    letter-spacing: -0.5px;
}

.mwc-check-box label::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 1px solid rgba(0,200,255,0.3);
    border-radius: 2px;
    background: rgba(0,200,255,0.05);
    flex-shrink: 0;
}

.mwc-check-box input:checked + label::before {
    content: '\2714';
    text-align: center;
    line-height: 14px;
    font-size: 10px;
    color: #00c8ff;
    background: rgba(0,200,255,0.1);
    border-color: #00c8ff;
}

/* Close button - override any inherited .popup .closeBtn styles */
#popupBoxMwc .closeBtn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 10px 24px;
    background: linear-gradient(135deg, #0066ff, #00c8ff);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    width: auto;
    height: auto;
    position: static;
}

#popupBoxMwc .closeBtn:hover {
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 480px) {
    .mwc-header { padding: 28px 24px 18px; }
    .mwc-body { padding: 24px 24px 28px; }
    .mwc-footer { padding: 16px 24px 28px; flex-direction: column; align-items: flex-start; }
    .mwc-divider { margin: 0 24px; }
    .mwc-headline-main { font-size: 34px; }
    .mwc-tech-grid { grid-template-columns: 1fr; }
    .mwc-info-chip { min-width: 140px; }
}
