/* navigation.css - Common navigation styling for Craft Review PWA */

/* Standard Header Styling */
.app-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h1 {
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
    flex-grow: 1;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.header-icon {
    background: none;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
}

.header-icon svg {
    width: 24px;
    height: 24px;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #777;
    padding: 0.5rem;
    flex: 1;
    transition: color 0.2s ease;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Special styling for the review button */
.nav-item.review-nav {
    transform: translateY(-10px);
}

.nav-item.review-nav .nav-icon {
    background-color: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.nav-item.review-nav:hover .nav-icon,
.nav-item.review-nav.active .nav-icon {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.nav-item.review-nav .nav-icon svg {
    margin-bottom: 0;
}

/* Adjust main content to account for bottom navigation */
body {
    padding-bottom: 70px; /* Height of bottom nav + some padding */
}

/* Hide floating action button since we have nav bar now */
.fab {
    display: none;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
    }
}