/**
 * Navigation Components
 * Seamless text-based navigation with shimmer effects
 */

/* Navigation Tabs Container */
.nav-tabs {
    display: flex;
    gap: 5px;
    justify-content: flex-start;
    padding-left: 0px;
    align-items: left;
}

/* Navigation Tab Links */
.nav-tab {
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    border-radius: 4px;
    outline: none;
    border: none;
}

/* Vertical layout for all nav tabs */
.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
}

.nav-tab .emoji {
    font-size: 14px;
    line-height: 1;
}

.nav-tab .text {
    line-height: 1;
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 4px;
    height: 2px;
    background: #ff7b47;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.nav-tab:hover::after {
    width: 80%;
    opacity: 1;
}

/* Remove hover text effects - only animate the line */

.nav-tab.active {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-shadow: none;
}

.nav-tab.active::after {
    width: 90%;
    opacity: 1;
    background: #ff7b47;
}

.nav-tab:focus {
    outline: none;
}

/* Coming Soon Pills */
.nav-pill.coming-soon {
    position: relative;
    overflow: hidden;
    padding-bottom: 16px;
}

.nav-pill.coming-soon::before {
    content: 'COMING SOON™';
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(45deg, #f59e0b, #f97316);
    color: white;
    font-size: 8px;
    font-weight: 700;
    text-align: center;
    line-height: 12px;
    letter-spacing: 0.5px;
    z-index: 10;
    transition: none;
}

/* Unfinished Pills */
.nav-pill.unfinished {
    position: relative;
    overflow: hidden;
    padding-bottom: 16px;
}

.nav-pill.unfinished::before {
    content: 'UNFINISHED';
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    font-size: 8px;
    font-weight: 700;
    text-align: center;
    line-height: 12px;
    letter-spacing: 0.5px;
    z-index: 10;
    transition: none;
}

/* Accessibility */
.nav-pill:focus {
    outline: 2px solid #4facfe;
    outline-offset: 2px;
}

/* Animations */
@keyframes navShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-tabs {
        padding: 15px 20px 0;
        gap: 8px;
    }

    .nav-pill {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nav-tabs {
        padding: 10px 15px 0;
        gap: 6px;
    }

    .nav-pill {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Header Controls (Preferences button + Version badge) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Preferences Button - matches Version Badge (Inverted Aksho Animation) */
.preferences-button {
    background: #ff7b47;
    color: #191970 !important;
    border: 1px solid rgba(255, 123, 71, 0.4);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-shadow: 0 1px 3px rgba(255, 123, 71, 0.3);
}

.preferences-button:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6) 0%, rgba(168, 85, 247, 0.5) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: white !important;
}

.preferences-button svg {
    width: 20px;
    height: 20px;
}