/* Navigation Bar - Shared Component Styles */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(14, 14, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-btn {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: linear-gradient(to bottom, var(--card), #1A1A1E);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    min-height: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(to bottom, #2A2A2E, #1A1A1E);
}

.nav-btn.gradient-btn {
    background: linear-gradient(90deg, 
        var(--gradient-1),
        var(--gradient-2),
        var(--gradient-1)
    );
    background-size: 300% 100%;
}

.nav-btn.gradient-btn:hover {
    background-position: 100% 0;
}

.nav-profile-btn {
    display: none;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.nav-profile-btn svg {
    width: 18px;
    height: 18px;
}

.nav-profile-btn span {
    font-size: 1rem;
}

.nav-btn.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-width: 3rem;
    width: 3rem;
    min-height: 2.2rem;
    height: 2.2rem;
}

.nav-btn.profile-btn svg {
    width: 20px;
    height: 20px;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.nav-btn:has(svg:only-child) {
    padding: 0.5rem;
    min-width: 3rem;
    width: 3rem;
    min-height: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav Icon Buttons - Using CSS background images */
.nav-btn.nav-icon-upload,
.nav-btn.nav-icon-liked,
.nav-btn.nav-icon-messages,
.nav-btn.nav-icon-map {
    padding: 0.5rem;
    min-width: 3rem;
    width: 3rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, var(--card), #1A1A1E);
    background-size: 20px 20px, 100% 100%;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
}

.nav-btn.nav-icon-upload {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3F4F6' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E"),
                      linear-gradient(to bottom, var(--card), #1A1A1E);
}

.nav-btn.nav-icon-liked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 9l5-5h8l5 5-9 12L3 9zm5.2-3l-2.7 3h12.9l-2.7-3H8.2z'/%3E%3C/svg%3E"),
                      linear-gradient(to bottom, var(--card), #1A1A1E);
}

.nav-btn.nav-icon-messages {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3F4F6' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"),
                      linear-gradient(to bottom, var(--card), #1A1A1E);
}

.nav-btn.nav-icon-map {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3F4F6' stroke-width='2'%3E%3Cpolygon points='1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6'/%3E%3Cline x1='8' y1='2' x2='8' y2='18'/%3E%3Cline x1='16' y1='6' x2='16' y2='22'/%3E%3C/svg%3E"),
                      linear-gradient(to bottom, var(--card), #1A1A1E);
}

.nav-btn.nav-icon-upload:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3F4F6' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E"),
                      linear-gradient(to bottom, #2A2A2E, #1A1A1E);
}

.nav-btn.nav-icon-liked:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 9l5-5h8l5 5-9 12L3 9zm5.2-3l-2.7 3h12.9l-2.7-3H8.2z'/%3E%3C/svg%3E"),
                      linear-gradient(to bottom, #2A2A2E, #1A1A1E);
}

.nav-btn.nav-icon-messages:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3F4F6' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"),
                      linear-gradient(to bottom, #2A2A2E, #1A1A1E);
}

.nav-btn.nav-icon-map:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3F4F6' stroke-width='2'%3E%3Cpolygon points='1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6'/%3E%3Cline x1='8' y1='2' x2='8' y2='18'/%3E%3Cline x1='16' y1='6' x2='16' y2='22'/%3E%3C/svg%3E"),
                      linear-gradient(to bottom, #2A2A2E, #1A1A1E);
}

/* Bottom Navigation Bar - Mobile Only */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 0;
    background: rgba(14, 14, 16, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.bottom-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.7;
}

.bottom-nav-btn:hover,
.bottom-nav-btn.active {
    opacity: 1;
}

.bottom-nav-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.bottom-nav-btn-text {
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Navigation - Hide main nav buttons, show bottom nav */
@media (max-width: 768px) {
    /* Hide navigation buttons except logo and profile */
    .nav-links .nav-btn:not(.nav-profile-btn):not(.profile-btn) {
        display: none !important;
    }
    
    /* Show bottom navigation */
    .bottom-nav {
        display: flex;
    }
    
    /* Add bottom padding to main content to account for bottom nav */
    main {
        padding-bottom: 4.5rem;
    }
    
    body {
        padding-bottom: 4.5rem;
    }
}

