/**
 * HubSpot-Style Bottom Navigation
 * Mobile-first navigation pattern matching HubSpot's UX
 */

/* Bottom Navigation Container */
.hs-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: none; /* Hidden on desktop */
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Navigation Items */
.hs-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    color: #6B7280;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    min-width: 64px;
    -webkit-tap-highlight-color: transparent;
}

.hs-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    transition: all 0.2s ease;
}

/* Active State */
.hs-nav-item.active {
    color: #FF7A59; /* HubSpot orange */
}

.hs-nav-item.active svg {
    transform: scale(1.1);
}

/* Hover State (for desktop touch) */
.hs-nav-item:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

/* Badge for notifications */
.hs-nav-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .hs-bottom-nav {
        display: flex;
    }

    /* Add padding to content to prevent overlap */
    .app-content {
        padding-bottom: 80px !important;
    }

    /* Hide desktop sidebar on mobile */
    .sidebar {
        transform: translateX(-110%);
    }
}

/* Dark Mode Support */
[data-theme="dark"] .hs-bottom-nav {
    background: #1F2937;
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hs-nav-item {
    color: #9CA3AF;
}

[data-theme="dark"] .hs-nav-item.active {
    color: #FF7A59;
}
