/* ============================================================
   CODEWORD FIXED SIDE HACKATHON TABS
   ============================================================ */


/* ============================================================
   THEME VARIABLES
   ============================================================ */

:root {
    --cw-purple: #4F46D8;
    --cw-purple-dark: #3932B8;
    --cw-purple-light: #6366F1;

    --cw-orange: #F6A623;
    --cw-orange-dark: #D98C08;
    --cw-orange-light: #FFB83D;

    --cw-white: #FFFFFF;
    --cw-dark: #172033;

    --cw-shadow: rgba(23, 32, 51, 0.25);
    --cw-shadow-dark: rgba(23, 32, 51, 0.38);
}


/* ============================================================
   FIXED SIDE CONTAINER
   ============================================================ */

.cw-fixed-side {
    position: fixed;

    top: 50%;
    transform: translateY(-50%);

    z-index: 99999;

    display: flex;
    flex-direction: column;

    gap: 8px;

    pointer-events: none;

    width: auto;

    margin: 0;
    padding: 0;
}


/* ============================================================
   LEFT SIDE
   ============================================================ */

.cw-fixed-left {
    left: 0;
}


/* ============================================================
   RIGHT SIDE
   ============================================================ */

.cw-fixed-right {
    right: 0;
}


/* ============================================================
   COMMON SIDE TAB
   ============================================================ */

.cw-side-tab {
    width: 48px;
    min-height: 190px;

    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 7px;

    box-sizing: border-box;

    color: var(--cw-white);

    text-decoration: none;

    pointer-events: auto;

    overflow: hidden;

    border: none;

    outline: none;

    border-radius: 0 11px 11px 0;

    box-shadow:
        0 10px 28px rgba(23, 32, 51, 0.22),
        0 4px 10px rgba(23, 32, 51, 0.14);

    transition:
        width 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease,
        filter 0.35s ease;
}


/* ============================================================
   RIGHT TAB BORDER RADIUS
   ============================================================ */

.cw-fixed-right .cw-side-tab {
    border-radius: 11px 0 0 11px;
}


/* ============================================================
   GVMITM TAB
   ============================================================ */

.cw-gvmitm-tab {
    background:
        linear-gradient(
            180deg,
            #5B55E8 0%,
            #4F46D8 48%,
            #3932B8 100%
        );
}


/* ============================================================
   CODEWORD 2.0 TAB
   ============================================================ */

.cw-codeword-tab {
    background:
        linear-gradient(
            180deg,
            #FFB52F 0%,
            #F6A623 48%,
            #D98C08 100%
        );
}


/* ============================================================
   COMPANY / SPONSORSHIP TAB
   ============================================================ */

.cw-company-tab {
    background:
        linear-gradient(
            180deg,
            #FFB52F 0%,
            #F6A623 48%,
            #D98C08 100%
        );
}


/* ============================================================
   ICON
   ============================================================ */

.cw-tab-icon {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.18);

    color: #FFFFFF;

    font-size: 14px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        0 3px 8px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


/* ============================================================
   VERTICAL TEXT
   ============================================================ */

.cw-tab-text {
    writing-mode: vertical-rl;

    transform: rotate(180deg);

    white-space: nowrap;

    display: block;

    color: #FFFFFF;

    font-family:
        'Manrope',
        Arial,
        sans-serif;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.35px;

    line-height: 1;

    text-align: center;

    text-transform: none;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15);
}


/* ============================================================
   ARROW
   ============================================================ */

.cw-tab-arrow {
    width: 22px;
    height: 22px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.16);

    color: #FFFFFF;

    font-size: 9px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


/* ============================================================
   LEFT TAB HOVER
   ============================================================ */

.cw-fixed-left .cw-side-tab:hover {
    width: 64px;

    transform: translateX(3px);

    box-shadow:
        0 16px 38px rgba(23, 32, 51, 0.32),
        0 6px 15px rgba(23, 32, 51, 0.18);

    filter: brightness(1.04);
}


/* ============================================================
   RIGHT TAB HOVER
   ============================================================ */

.cw-fixed-right .cw-side-tab:hover {
    width: 64px;

    transform: translateX(-3px);

    box-shadow:
        0 16px 38px rgba(23, 32, 51, 0.32),
        0 6px 15px rgba(23, 32, 51, 0.18);

    filter: brightness(1.04);
}


/* ============================================================
   ICON HOVER
   ============================================================ */

.cw-side-tab:hover .cw-tab-icon {
    transform: scale(1.08);

    background: rgba(255, 255, 255, 0.25);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.15);
}


/* ============================================================
   LEFT ARROW HOVER
   ============================================================ */

.cw-fixed-left .cw-side-tab:hover .cw-tab-arrow {
    transform: translateX(3px);

    background: rgba(255, 255, 255, 0.28);

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.12);
}


/* ============================================================
   RIGHT ARROW HOVER
   ============================================================ */

.cw-fixed-right .cw-side-tab:hover .cw-tab-arrow {
    transform: translateX(-3px);

    background: rgba(255, 255, 255, 0.28);

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.12);
}


/* ============================================================
   GLOW LINE
   ============================================================ */

.cw-side-tab::before {
    content: "";

    position: absolute;

    top: 12px;
    bottom: 12px;

    width: 2px;

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255, 255, 255, 0.75),
            transparent
        );

    opacity: 0;

    transition:
        opacity 0.3s ease,
        height 0.3s ease;
}


/* LEFT GLOW */

.cw-fixed-left .cw-side-tab::before {
    right: 5px;
}


/* RIGHT GLOW */

.cw-fixed-right .cw-side-tab::before {
    left: 5px;
}


/* SHOW GLOW */

.cw-side-tab:hover::before {
    opacity: 1;
}


/* ============================================================
   PULSE DOT
   ============================================================ */

.cw-side-tab::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #FFFFFF;

    box-shadow:
        0 0 0 0 rgba(255, 255, 255, 0.55);

    animation:
        cwSidePulse 2s infinite;
}


/* LEFT DOT */

.cw-fixed-left .cw-side-tab::after {
    top: 9px;
    right: 9px;
}


/* RIGHT DOT */

.cw-fixed-right .cw-side-tab::after {
    top: 9px;
    left: 9px;
}


/* ============================================================
   PULSE ANIMATION
   ============================================================ */

@keyframes cwSidePulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(255, 255, 255, 0.55);
    }

    70% {
        box-shadow:
            0 0 0 8px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(255, 255, 255, 0);
    }

}


/* ============================================================
   3D TOP HIGHLIGHT
   ============================================================ */

.cw-side-tab {
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 10px 28px rgba(23, 32, 51, 0.22),
        0 4px 10px rgba(23, 32, 51, 0.14);
}


/* ============================================================
   FOCUS ACCESSIBILITY
   ============================================================ */

.cw-side-tab:focus-visible {
    outline: 3px solid #FFFFFF;

    outline-offset: 3px;

    box-shadow:
        0 0 0 5px rgba(79, 70, 216, 0.35),
        0 12px 30px rgba(23, 32, 51, 0.30);
}


/* ============================================================
   ACTIVE / PRESS EFFECT
   ============================================================ */

.cw-side-tab:active {
    transform: scale(0.97);
}


.cw-fixed-left .cw-side-tab:active {
    transform:
        translateX(2px)
        scale(0.97);
}


.cw-fixed-right .cw-side-tab:active {
    transform:
        translateX(-2px)
        scale(0.97);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .cw-fixed-side {
        gap: 6px;
    }


    .cw-side-tab {
        width: 40px;

        min-height: 155px;

        padding: 10px 5px;

        gap: 7px;

        border-radius: 0 9px 9px 0;
    }


    .cw-fixed-right .cw-side-tab {
        border-radius: 9px 0 0 9px;
    }


    .cw-tab-icon {
        width: 25px;
        height: 25px;

        font-size: 11px;
    }


    .cw-tab-text {
        font-size: 10px;

        letter-spacing: 0.2px;
    }


    .cw-tab-arrow {
        width: 18px;
        height: 18px;

        font-size: 8px;
    }


    .cw-fixed-left .cw-side-tab:hover,
    .cw-fixed-right .cw-side-tab:hover {
        width: 48px;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .cw-fixed-side {
        gap: 5px;
    }


    .cw-side-tab {
        width: 36px;

        min-height: 135px;

        padding: 8px 4px;

        gap: 6px;
    }


    .cw-tab-icon {
        width: 22px;
        height: 22px;

        font-size: 9px;
    }


    .cw-tab-text {
        font-size: 9px;

        letter-spacing: 0.1px;
    }


    .cw-tab-arrow {
        width: 17px;
        height: 17px;

        font-size: 7px;
    }


    .cw-fixed-left .cw-side-tab:hover,
    .cw-fixed-right .cw-side-tab:hover {
        width: 42px;
    }

}


/* ============================================================
   EXTRA SMALL DEVICES
   ============================================================ */

@media (max-width: 360px) {

    .cw-side-tab {
        width: 33px;

        min-height: 125px;

        padding: 7px 3px;

        gap: 5px;
    }


    .cw-tab-icon {
        width: 20px;
        height: 20px;

        font-size: 8px;
    }


    .cw-tab-text {
        font-size: 8px;
    }


    .cw-tab-arrow {
        display: none;
    }


    .cw-fixed-left .cw-side-tab:hover,
    .cw-fixed-right .cw-side-tab:hover {
        width: 38px;
    }

}


/* ============================================================
   REDUCE MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .cw-side-tab,
    .cw-tab-icon,
    .cw-tab-arrow,
    .cw-side-tab::before {
        transition: none !important;
    }


    .cw-side-tab::after {
        animation: none !important;
    }

}