/* ============================================
   Home Page Navigation - Modern Design
   ============================================ */

/* Bottom Navigation Bar */
.home-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-background-dark);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: var(--z-index-base);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    height: var(--nav-height);
    max-width: 100vw;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation Item - Base Styles */
.home-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all var(--transition-base);
    font-size: var(--nav-font-size);
    flex: 1;
    min-width: 0;
    max-width: none;
    position: relative;
    overflow: visible;
    background-color: transparent;
    border: none;
    cursor: pointer;
    gap: var(--spacing-xs);
}

/* Navigation Item Icons */
.home-nav-item i {
    font-size: 1.3rem; /* Reduced from 1.6rem */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    line-height: 1;
    width: 1.3rem; /* Reduced from 1.6rem */
    height: 1.3rem; /* Reduced from 1.6rem */
    color: inherit;
}

/* Navigation Item Text */
.home-nav-item span {
    font-size: var(--nav-font-size);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-align: center;
    line-height: 1.2;
    color: inherit;
    font-weight: 500;
}

/* Active State */
.home-nav-item.active {
    color: var(--color-white);
}

/* Remove animation from home icon - make it static like profile icon */
.home-nav-item.active i {
    transform: none;
    animation: none;
}

/* No hover effects for home and profile icons - keep them static */
.home-nav-item:hover {
    background-color: transparent;
    box-shadow: none;
    transform: none;
}

/* Only apply hover to add button, not home/profile */
.home-nav-item:not(.add-article-btn):hover i,
.home-nav-item:not(.add-article-btn):hover span {
    color: inherit;
}

.home-nav-item:not(.add-article-btn):hover i {
    transform: none;
}

/* Remove focus outlines for mouse clicks */
.home-nav-item:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.home-nav-item:active {
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    background-color: transparent !important;
}

.home-nav-item {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
    cursor: pointer;
}

/* Fix add button active state */
.add-article-btn:focus:not(:focus-visible) {
    outline: none !important;
}

.add-article-btn:active {
    transform: none !important;
}

.add-article-btn:active::before {
    transform: translate(-50%, -50%) scale(0.95);
    transition: transform 0.1s ease;
}

/* ============================================
   Add Article Button - Special Styling
   ============================================ */

.home-nav-item.add-article-btn {
    position: relative;
    justify-content: center;
}

/* Circular gradient background for add button - centered in nav item */
.add-article-btn::before {
    content: '';
    width: 2.3rem; /* Reduced from 2.75rem */
    height: 2.3rem; /* Reduced from 2.75rem */
    background: var(--color-primary-gradient);
    border-radius: 50%;
    box-shadow: var(--shadow-primary);
    display: block;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: all var(--transition-base);
}

/* Plus icon inside circle - perfectly centered */
.add-article-btn i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: var(--color-white);
    pointer-events: none;
    width: 1.3rem; /* Reduced from 1.6rem */
    height: 1.3rem; /* Reduced from 1.6rem */
    font-size: 1.3rem; /* Reduced from 1.6rem */
}

/* Hide the "Add" text below plus icon */
.add-article-btn span {
    display: none;
}

/* No hover effects on add button - keep it completely static */
.add-article-btn:hover {
    transform: none;
    background-color: transparent;
    box-shadow: none;
}

.add-article-btn:hover::before {
    box-shadow: var(--shadow-primary);
    transform: translate(-50%, -50%);
    background: var(--color-primary-gradient);
}

.add-article-btn:hover i {
    transform: translate(-50%, -50%);
    color: var(--color-white);
}

/* ============================================
   Profile Icon Wrapper
   ============================================ */

.profile-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem; /* Reduced from 1.6rem */
    height: 1.3rem; /* Reduced from 1.6rem */
    flex-shrink: 0;
    transition: color var(--transition-base);
    overflow: visible;
}

.profile-icon-wrapper i {
    font-size: 1.3rem; /* Reduced from 1.6rem */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

/* Super Admin Logo - Same size as other icons */
.super-admin-logo {
    width: 1.3rem; /* Reduced from 1.6rem */
    height: 1.3rem; /* Reduced from 1.6rem */
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
    transition: filter var(--transition-base);
}

/* Hide/show logic for super admin */
.profile-icon-wrapper.has-super-admin #regularUserIcon {
    display: none;
}

.profile-icon-wrapper.has-super-admin #superAdminLogo {
    display: block;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 480px) {
    .home-navigation {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .home-nav-item {
        padding: var(--spacing-xs);
    }
    
    .home-nav-item i {
        font-size: 1.2rem; /* Reduced from 1.5rem */
        width: 1.2rem; /* Reduced from 1.5rem */
        height: 1.2rem; /* Reduced from 1.5rem */
    }
    
    .add-article-btn::before {
        width: 2.1rem; /* Reduced from 2.5rem */
        height: 2.1rem; /* Reduced from 2.5rem */
    }
    
    .add-article-btn i {
        transform: translate(-50%, -50%);
        width: 1.2rem; /* Reduced from default */
        height: 1.2rem; /* Reduced from default */
        font-size: 1.2rem; /* Reduced from default */
    }
    
    .add-article-btn::before {
        width: 2.1rem; /* Reduced from 2.5rem */
        height: 2.1rem; /* Reduced from 2.5rem */
        transform: translate(-50%, -50%);
    }
}

/* ============================================
   Smooth Animations
   ============================================ */

/* No animations - all icons are static like profile icon */

/* Dark Theme Styles */
[data-theme="dark"] .home-navigation {
    background: var(--header-bg-dark, var(--color-background-dark));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

