/* PillNav Styles */
.pill-nav-container {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: max-content;
}

@media (max-width: 768px) {
    .pill-nav-container {
        width: calc(100% - 2rem);
        left: 1rem;
        transform: none;
    }
}

.pill-nav {
    --nav-h: 48px;
    --pill-pad-x: 20px;
    --pill-gap: 4px;
    
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .pill-nav {
        justify-content: space-between;
    }
}

/* Logo */
.pill-logo {
    width: var(--nav-h);
    height: var(--nav-h);
    border-radius: 50%;
    background: var(--base, #fff);
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pill-logo:hover {
    transform: scale(1.05);
}

.pill-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Nav Items Container */
.pill-nav-items {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    background: var(--base, #fff);
    border-radius: 9999px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pill-list {
    list-style: none;
    display: flex;
    align-items: stretch;
    gap: var(--pill-gap);
    margin: 0;
    padding: 4px;
    height: 100%;
}

.pill-list > li {
    display: flex;
    height: 100%;
}

/* Pill Links */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 var(--pill-pad-x);
    background: var(--pill-bg, #060010);
    color: var(--pill-text, #fff);
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.pill:hover {
    transform: scale(1.02);
}

/* Hover Circle Effect */
.pill .hover-circle {
    position: absolute;
    left: 50%;
    bottom: 0;
    border-radius: 50%;
    background: var(--base, #fff);
    z-index: 1;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Label Stack */
.pill .label-stack {
    position: relative;
    display: inline-block;
    line-height: 1;
    z-index: 2;
}

.pill .pill-label {
    position: relative;
    z-index: 2;
    display: inline-block;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pill .pill-label-hover {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--hover-text, #060010);
    z-index: 3;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active Indicator */
.pill.is-active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--base, #fff);
    border-radius: 50%;
    z-index: 4;
}

/* Mobile Menu Button */
.mobile-menu-button {
    width: var(--nav-h);
    height: var(--nav-h);
    border-radius: 50%;
    background: var(--base, #fff);
    border: none;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: var(--pill-bg, #060010);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile Menu Popover */
.mobile-menu-popover {
    position: fixed;
    top: 5.5rem;
    right: 1rem;
    width: auto;
    min-width: 200px;
    max-width: 280px;
    background: transparent;
    border-radius: 24px;
    z-index: 999;
    opacity: 0;
    transform: translateY(10px) scaleY(1);
    transform-origin: top right;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-link {
    display: block;
    padding: 14px 24px;
    color: var(--pill-text, #060010);
    background-color: var(--pill-bg, #060010);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-menu-link:hover {
    background-color: var(--base);
    color: var(--hover-text, #fff);
    transform: translateX(4px);
}

.mobile-menu-link.is-active {
    background-color: var(--pill-bg);
    color: var(--pill-text);
}

/* Responsive */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .mobile-menu-button {
        display: flex;
    }
}
