/* (Same visual style you already use, including Orbitron, navbar, guide, status, events grid) */
/* --- Fonts --- */
@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* --- Global --- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Orbitron",sans-serif;
    background: radial-gradient(circle at top,#0d1424,#05080f 85%);
    color: #d6e6ff;
    padding-top: 80px;
    overflow-x: hidden;
}

/* --- Navbar / Logo / Links --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(5,10,20,.9);
    border-bottom: 1px solid #0f3057;
    box-shadow: 0 2px 10px rgba(0,170,255,.1);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    box-sizing: border-box;
}

body.scrolled .navbar {
    background: rgba(5,10,20,.98);
    box-shadow: 0 3px 15px rgba(0,170,255,.15);
}

.logo {
    font-size: 1.5rem;
    color: #00aaff;
    text-shadow: 0 0 10px rgba(0,170,255,.6);
    justify-self: start;
    padding-left: 10px;
}

.navbar nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

    .navbar nav a {
        color: #d6e6ff;
        text-decoration: none;
        transition: color .2s;
    }

        .navbar nav a:hover {
            color: #00aaff;
        }

/* --- Status --- */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: .9rem;
    white-space: nowrap;
    text-align: right;
    padding-right: 10px;
    overflow: hidden;
}

#status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

    #status-light.online {
        background: #00ff80;
        box-shadow: 0 0 8px #00ff80;
        animation: pulse 2s infinite;
    }

    #status-light.offline {
        background: #ff4444;
        box-shadow: 0 0 8px #ff4444;
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 8px #00ff80
    }

    50% {
        box-shadow: 0 0 16px #00ff80
    }

    100% {
        box-shadow: 0 0 8px #00ff80
    }
}

#status-text {
    font-size: .9rem;
}

/* --- Sections --- */
.hero {
    text-align: center;
    padding: 100px 20px 80px;
}

    .hero h1 {
        font-size: 2.4rem;
        color: #00aaff;
        text-shadow: 0 0 15px rgba(0,170,255,.6);
    }

    .hero p {
        color: #9cb8d9;
        font-size: 1rem;
    }

.btn-primary {
    background: linear-gradient(90deg,#007bff,#00aaff);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .3s;
}

    .btn-primary:hover {
        background: linear-gradient(90deg,#00aaff,#00ccff);
    }

.section {
    padding: 60px 20px;
    text-align: center;
}

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: rgba(10,15,30,.85);
    border: 1px solid #0f3057;
    padding: 20px;
    border-radius: 12px;
    width: 260px;
    box-shadow: 0 0 20px rgba(0,170,255,.1);
}

/* --- Guide --- */
.connection-guide {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

    .connection-guide h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .connection-guide .guide-container {
        background: rgba(10,15,25,.6);
        border-radius: 12px;
        padding: 30px;
        box-shadow: 0 0 15px rgba(0,170,255,.1);
    }

    .connection-guide ol {
        padding-left: 40px;
        margin: 20px 0;
        line-height: 1.6em;
    }

    .connection-guide li {
        margin-bottom: 10px;
    }

    .connection-guide .code-block {
        background: #0b1020;
        border: 1px solid #0f3057;
        padding: 10px;
        border-radius: 8px;
        cursor: pointer;
        display: inline-block;
        box-shadow: inset 0 0 8px rgba(0,170,255,.3);
        transition: .2s;
        position: relative;
    }

        .connection-guide .code-block:hover {
            box-shadow: 0 0 12px rgba(0,170,255,.5);
        }

.copy-alert {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,30,50,.95);
    color: #d6e6ff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: .8rem;
    border: 1px solid #00aaff;
    box-shadow: 0 0 10px rgba(0,170,255,.4);
    opacity: 0;
    transition: opacity .3s ease, top .3s ease;
    pointer-events: none;
    z-index: 10;
}

.code-block.active .copy-alert {
    opacity: 1;
    top: -40px;
}

/* --- Events --- */
.events {
    max-width: 1100px;
    margin: 0 auto;
}

    .events .events-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
        gap: 20px;
        margin-top: 20px;
    }

    .events .event-panel {
        background: rgba(10,15,30,.85);
        border: 1px solid #0f3057;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 0 20px rgba(0,170,255,.1);
        text-align: left;
    }

    .events .event-list.empty {
        color: #9cb8d9;
    }

    .events .event-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px dashed rgba(0,170,255,.2);
    }

        .events .event-row:last-child {
            border-bottom: none;
        }

    .events .event-name {
        color: #00aaff;
    }

    .events .event-time {
        color: #d6e6ff;
        opacity: .9;
    }

    .events .events-note {
        margin-top: 16px;
        color: #9cb8d9;
        font-size: .9rem;
    }

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    font-size: .85rem;
    color: #7a8ba6;
}

/* --- Responsive --- */
@media (max-width:768px) {
    .navbar {
        grid-template-columns: 1fr auto 1fr;
        padding: 12px 10px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .status-indicator {
        font-size: .8rem;
        padding-right: 5px;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Discord button --- */
.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.discord-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    transition: filter .3s ease;
}

.discord-link:hover .discord-icon {
    filter: brightness(0) saturate(100%) invert(60%) sepia(60%) saturate(500%) hue-rotate(180deg);
}

/* ===== OmegaNode — 4-lane calendar (scoped) ===== */
.lane-cal.wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 16px;
}

.lane-cal.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.lane-cal.title {
    font-size: 1.8rem;
    font-weight: 700;
}

.lane-cal.controls {
    display: flex;
    gap: 8px;
}

.lane-btn {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: #0e1622;
    color: #e6f0ff;
    cursor: pointer;
}

    .lane-btn:hover {
        filter: brightness(1.1);
    }

.lane-cal.legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 8px 0 16px;
}

    .lane-cal.legend .chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        opacity: .9;
    }

    .lane-cal.legend .swatch {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

        .lane-cal.legend .swatch.oo {
            background: #ffb020;
        }

        .lane-cal.legend .swatch.armor {
            background: #6ea8ff;
        }

        .lane-cal.legend .swatch.mm {
            background: #58e6b9;
        }

        .lane-cal.legend .swatch.cc {
            background: #a98bff;
        }

.lane-cal.grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 42px; /* header / day number rows */
    gap: 10px;
}

/* header row (Sun..Sat) */
.lane-cal .lane.header {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.lane-cal .lane.headcell {
    padding: 10px 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    opacity: .85;
}

/* day number row (small muted numbers at top of columns) */
.lane-cal .lane.daynums {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 10px;
}

.lane-cal .lane.daynum {
    height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 6px 10px;
    font-weight: 600;
    opacity: .8;
}

    .lane-cal .lane.daynum.muted {
        opacity: .25;
    }

/* lane rows */
.lane-cal .lane.row {
    grid-column: 1 / -1;
    min-height: 46px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    position: relative;
}

/* event bars (chips spanning columns) */
.lane-cal .ev {
    min-height: 36px;
    border-radius: 10px;
    padding: 8px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

    .lane-cal .ev.oo {
        color: #ffb020;
        border-color: #ffb02033;
        background: #ffb02012;
    }

    .lane-cal .ev.armor {
        color: #6ea8ff;
        border-color: #6ea8ff33;
        background: #6ea8ff12;
    }

    .lane-cal .ev.mm {
        color: #58e6b9;
        border-color: #58e6b933;
        background: #58e6b912;
    }

    .lane-cal .ev.cc {
        color: #a98bff;
        border-color: #a98bff33;
        background: #a98bff12;
    }

.lane-cal .note {
    opacity: .7;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .lane-cal.wrap {
        padding-inline: 12px;
    }

    .lane-cal .ev {
        font-size: .9rem;
        padding: 6px 8px;
        min-height: 32px;
    }
}

/* make day-number row and each lane row use the full month column count */
.lane-cal .lane.daynums,
.lane-cal .lane.row {
    display: grid;
    grid-template-columns: repeat(var(--cols, 7), 1fr);
    gap: 10px;
}

.cal-day.out {
    background: rgba(0,0,0,.25);
}

.cal-day.out .cal-num {
    visibility: hidden;
}
