/**
 * Styles for: HEXAGON CYBER DOCK (PC) & BOTTOM MENU (MOBILE)
 */

/* --- COMMON HIDE/SHOW --- */
.show-for-small { display: none; }
@media (max-width: 767px) {
    .hide-for-small { display: none; }
    .show-for-small { display: block; }
}

/* --- PC: HEXAGON CYBER DOCK --- */
.cenova-cyber {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
}

.cenova-cyber__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.cenova-cyber__item { position: relative; }
.cenova-cyber__link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none !important;
}

.cenova-cyber__hexagon {
    width: 48px;
    height: 52px;
    background: #e8d44d;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 2;
}

.cenova-cyber__hexagon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #000;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
}

.cenova-cyber__hexagon svg {
    width: 22px;
    height: 22px;
    fill: #e8d44d;
    transition: all 0.3s ease;
}

.cenova-cyber__zalo-text {
    font-size: 11px;
    font-weight: 800;
    color: #e8d44d;
    text-transform: uppercase;
}

.cenova-cyber__info {
    position: absolute;
    right: 35px;
    background: #000;
    padding: 10px 25px 10px 20px;
    border: 1px solid #e8d44d;
    border-right: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s ease;
    z-index: 1;
}

.cenova-cyber__label {
    color: #e8d44d;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Sequential Pulse PC */
.cenova-cyber__pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(232, 212, 77, 0.4);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0;
}

@keyframes auto-hex-pulse {
    0% { transform: scale(0.8); opacity: 0; }
    30% { transform: scale(1.1); opacity: 1; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

.cenova-cyber__item:nth-child(1) .cenova-cyber__pulse { animation: auto-hex-pulse 8s infinite 0s; }
.cenova-cyber__item:nth-child(2) .cenova-cyber__pulse { animation: auto-hex-pulse 8s infinite 2s; }
.cenova-cyber__item:nth-child(3) .cenova-cyber__pulse { animation: auto-hex-pulse 8s infinite 4s; }
.cenova-cyber__item:nth-child(4) .cenova-cyber__pulse { animation: auto-hex-pulse 8s infinite 6s; }

.cenova-cyber__item:hover .cenova-cyber__hexagon {
    transform: scale(1.1) translateX(-5px);
    box-shadow: 0 0 25px rgba(232, 212, 77, 0.6);
}

.cenova-cyber__item:hover .cenova-cyber__hexagon::after { background: #e8d44d; }
.cenova-cyber__item:hover .cenova-cyber__hexagon svg,
.cenova-cyber__item:hover .cenova-cyber__zalo-text { fill: #000; color: #000; }
.cenova-cyber__item:hover .cenova-cyber__info { opacity: 1; visibility: visible; transform: translateX(0); }

/* --- MOBILE: BOTTOM NAVIGATION BAR --- */
@media (max-width: 767px) {
    .cenova-mobile-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        z-index: 999999;
        padding: 8px 0;
        border-top: 1px solid #eee;
    }

    .cenova-mobile-menu__inner {
        display: flex;
        justify-content: space-around;
        align-items: flex-end;
        max-width: 450px;
        margin: 0 auto;
    }

    .cenova-mobile-menu__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none !important;
        flex: 1;
        gap: 4px;
    }

    .cenova-mobile-menu__icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cenova-mobile-menu__icon svg {
        width: 22px;
        height: 22px;
        fill: #333;
    }

    .cenova-mobile-menu__text {
        font-size: 11px;
        font-weight: 500;
        color: #666;
    }

    /* Highlight Zalo Center */
    .cenova-mobile-menu__item--active {
        position: relative;
        bottom: 5px; /* Lowered from 10px */
    }

    .cenova-mobile-menu__item--active .cenova-mobile-menu__icon {
        width: 50px;
        height: 50px;
        background: #e8d44d;
        border-radius: 50%;
        box-shadow: 0 5px 15px rgba(232, 212, 77, 0.4);
        border: 4px solid #fff;
    }

    .cenova-mobile-menu__item--active .zalo-text {
        color: #000;
        font-weight: 900;
        font-size: 13px;
    }

    .cenova-mobile-menu__item--active .cenova-mobile-menu__text {
        color: #e8d44d;
        font-weight: 700;
    }
}
