@font-face {
    font-family: "Seitu";
    src: url("../fonts/Seitu-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Seitu";
    src: url("../fonts/Seitu-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Seitu";
    src: url("../fonts/Seitu-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
}

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
    --bg-dark: #08050f;
    --bg-card: #100b1e;
    --purple: #7617b6;
    --purple-light: #c117e5;
    --pink: #ff54e0;
    --blue: #4b72f7;
    --cyan: #28cdff;
    --green: #00bb31;
    --nav-text: #ccbbee;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-glow: rgba(255, 84, 224, 0.3);
    --gradient-hero: linear-gradient(135deg, #4b72f7 0%, #ff54e0 100%);
    --gradient-card: linear-gradient(160deg, #7617b6 0%, #3a0a8c 100%);
}

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

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: "Seitu", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── NAVBAR ────────────────────────────────────────────── */
.jti-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #7617b6;
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.jti-navbar .nav-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo kiri */
.jti-navbar .logo-jti {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.jti-navbar .logo-jti img {
    height: 50px;
    width: auto;
}

/* Nav links tengah */
.jti-navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.jti-navbar .nav-links li a {
    color: var(--nav-text);
    text-decoration: none;
    font-family: "Seitu", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    transition:
        color 0.2s,
        background 0.2s;
    white-space: nowrap;
}

.jti-navbar .nav-links li a:hover,
.jti-navbar .nav-links li a.active {
    color: var(--text-white);
}

.jti-navbar .nav-links li a.active {
    color: #f5a623;
    border-bottom: 2px solid #f5a623;
    border-radius: 0;
}

/* Logo kanan (Futurum) */
.jti-navbar .logo-futurum {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.jti-navbar .logo-futurum a {
    color: var(--nav-text);
    text-decoration: none;
    font-family: "Seitu", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border-radius: 6px;
    transition:
        color 0.2s,
        background 0.2s;
    white-space: nowrap;
    margin-right: 1rem;
}

.jti-navbar .logo-futurum img {
    height: 36px;
    width: auto;
}

/* ─── MAIN CONTENT ──────────────────────────────────────── */
.main-content {
    padding-top: 72px;
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fff;
}

::-webkit-scrollbar-thumb {
    background: #c900c3;
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

/* ─── MOBILE HAMBURGER ──────────────────────────────────── */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ── Fade-in animation on scroll ── */
.fade-up {
    opacity: 0;
    transform: translateY(0);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── LIVE NOW BUTTON ──────────────────────────────────── */
.btn-live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #e5000a;
    color: #fff;
    border: none;
    border-radius: 50px 0 0 50px;
    font-family: "Seitu", sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    position: fixed;
    top: 200px;
    right: 0;
    z-index: 999;
    cursor: pointer;
    width: 32px;
    padding: 0.6rem;
    overflow: hidden;
    transition:
        width 0.3s ease,
        padding 0.3s ease;
}

.btn-live.expanded {
    width: 130px;
    padding: 0.6rem 1.2rem;
    justify-content: flex-start;
}

.btn-live .live-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: liveDot 1.4s ease-in-out infinite;
}

.btn-live .live-label {
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    max-width: 0;
    transition:
        opacity 0.2s ease 0.1s,
        max-width 0.3s ease;
}

.btn-live.expanded .live-label {
    opacity: 1;
    max-width: 100px;
}
.btn-live .live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: liveDot 1.4s ease-in-out infinite;
}

@keyframes liveDot {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* ── Live Now Popup ── */
.live-now-popup {
    display: none;
    position: fixed;
    top: 220px;
    right: 0;
    z-index: 998;
    width: 300px;
    background: #fff;
    border-radius: 1rem 0 0 1rem;
    padding: 1rem;
    color: #1a1a2e;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.15);
}

.live-now-popup.open {
    display: block;
}

.live-now-popup .lnp-item {
    padding: 0.75rem 0;
}

.live-now-popup .lnp-item:last-child {
    border-bottom: none;
}

.live-now-popup .lnp-badge {
    display: inline-block;
    color: #fff;
    font-size: 0.65rem;
    border-radius: 50px;
    padding: 2px 10px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.lnp-badge--plenary {
    background: #e828bb;
}
.lnp-badge--breakout {
    background: #7617b6;
}
.lnp-item:last-child {
    border-bottom: none;
}
.live-now-popup .lnp-item a {
    text-decoration: none;
}

.live-now-popup .lnp-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
    border-top: 1px solid #7617b6;
    padding-top: 6px;
    display: block;
}

.live-now-popup .lnp-speaker {
    font-size: 0.78rem;
    color: #888;
}

.live-now-popup .lnp-empty {
    font-size: 0.85rem;
    color: #aaa;
    text-align: center;
    padding: 10px 0;
}

/* ── My Schedule Modal ── */
.my-schedule-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    justify-content: flex-end;
    align-items: flex-start;
}
.my-schedule-overlay.open {
    display: flex;
}
.my-schedule-modal {
    background: #fff;
    width: 340px;
    max-height: 90vh;
    overflow-y: auto;
    margin-top: 72px;
    border-radius: 0 0 2rem 2rem;
    padding: 1.5rem 1.2rem;
    color: #1a1a2e;
    position: relative;
    margin-right: 85px;
}
.ms-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #555;
}
.ms-day-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1rem 0 4px;
}
.ms-day-date {
    font-size: 0.8rem;
    color: #4d4d4d;
    margin-bottom: 10px;
}
.ms-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}
.ms-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7617b6;
    margin-top: 4px;
    flex-shrink: 0;
}
.ms-item-time {
    font-size: 0.8rem;
    color: #808080;
    min-width: 80px;
}
.ms-item-title {
    font-size: 0.8rem;
    background: #7617b6;
    color: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    flex: 1;
}
.ms-empty {
    font-size: 0.85rem;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
}

/* ── Bookmark button ── */
.btn-bookmark {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
}
.btn-bookmark.active {
    color: #7617b6;
}
.nav-links .btn-my-schedule {
    display: none !important;
}
/* ─── ACTIVITIES DROPDOWN ───────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    user-select: none;
}

.nav-chevron {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 0 0 10px 10px;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0.25rem;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 1100;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.65rem 1.2rem;
    color: #7617b6 !important;
    font-family: "Seitu", sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0;
    transition:
        background 0.15s,
        color 0.15s;
}

.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a.active {
    background: #7617b6;
    color: #fff !important;
}

.nav-dropdown-toggle.active {
    color: #f5a623 !important;
    border-bottom: 2px solid #f5a623;
    border-radius: 0;
}

.nav-logout-btn {
    background: none;
    border: none;
    color: var(--nav-text);
    text-decoration: none;
    font-family: "Seitu", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border-radius: 6px;
    transition:
        color 0.2s,
        background 0.2s;
    white-space: nowrap;
    margin-right: 1rem;
}

.nav-logout-btn:hover {
    color: var(--text-white);
}

.logout-mobile {
    opacity: 0;
}

.logout-desktop {
    opacity: 1;
}

/* ── Power Words Button ── */
.btn-power-words {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #7617b6;
    color: #fff;
    border: none;
    border-radius: 50px 0 0 50px;
    font-family: "Seitu", sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    position: fixed;
    right: 0;
    z-index: 999;
    cursor: pointer;
    width: 32px;
    padding: 0.6rem;
    overflow: hidden;
    transition:
        width 0.3s ease,
        padding 0.3s ease;
    top: 248px;
}

.btn-power-words img {
    width: 15px;
}

.btn-power-words.expanded {
    width: 180px;
    padding: 0.6rem 1.2rem;
    justify-content: flex-start;
}

.btn-power-words .pw-arrow {
    font-size: 1rem;
    min-width: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-power-words:hover .pw-arrow {
    transform: translateX(2px);
}

.btn-power-words .pw-label {
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    max-width: 0;
    transition:
        opacity 0.2s ease 0.1s,
        max-width 0.3s ease;
    color: #fff;
}

.btn-power-words.expanded .pw-label {
    opacity: 1;
    max-width: 140px;
}

@media (max-width: 1100px) {
    .nav-toggle {
        display: block;
    }

    .logout-mobile {
        opacity: 1;
        margin-right: 0;
        color: #7617b6;
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .logout-desktop {
        opacity: 0;
    }

    .logo-futurum .btn-my-schedule {
        display: none !important;
    }

    .nav-links .btn-my-schedule {
        display: block !important;
    }

    .jti-navbar .logo-futurum img {
        margin-right: 2rem;
    }

    .jti-navbar .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-glow);
        gap: 0;
    }

    .jti-navbar .nav-links.open {
        display: flex;
    }

    .jti-navbar .nav-links li {
        width: 100%;
        text-align: center;
    }

    .jti-navbar .nav-links li a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    .my-schedule-modal {
        margin-right: 30px;
    }
    .jti-navbar .nav-links li a {
        color: #7617b6;
    }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f3eaff;
        border-radius: 0;
        min-width: unset;
        width: 100%;
    }

    .nav-dropdown-menu li a {
        padding: 0.65rem 2rem;
        color: #7617b6 !important;
    }

    .nav-dropdown-menu li a:hover,
    .nav-dropdown-menu li a.active {
        background: #7617b6;
        color: #fff !important;
    }

    .nav-dropdown-toggle {
        justify-content: center;
    }

    .jti-navbar .nav-links li a:hover,
    .jti-navbar .nav-links li a.active {
        color: #7617b6;
    }
}
