﻿/* Updated app.css - Mobile-First Foundation for DMV Wait Times */

/* CSS Custom Properties - Matching your site.css */
:root {
    --primary-color: #198754;
    --primary-hover: #146c43;
    --primary-light: #d1e7dd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --secondary-color: #6c757d;
    --info-color: #17a2b8;
    /* Mobile-first additions */
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Mobile-first base improvements */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-First Header */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.community-icon {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

    .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

/* Mobile slide-out menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--neutral-200);
    background: var(--primary-color);
    color: white;
}

    .mobile-menu-header h5 {
        margin: 0;
        font-weight: 600;
    }

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

    .btn-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.mobile-menu-nav {
    padding: 1rem 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--neutral-800);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

    .mobile-nav-item:hover {
        background: var(--neutral-50);
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        text-decoration: none;
    }

    .mobile-nav-item i {
        width: 1.5rem;
        margin-right: 1rem;
        font-size: 1.125rem;
    }

    .mobile-nav-item span {
        font-weight: 500;
    }

/* Navigation styling - Desktop only */
.navbar .nav-link {
    color: var(--neutral-800) !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .navbar .nav-link:hover {
        background: var(--primary-light);
        color: var(--primary-color) !important;
    }

    .navbar .nav-link.active {
        background: var(--primary-color);
        color: white !important;
    }

/* Mobile bottom navigation - DISABLED */
.bottom-nav {
    display: none !important; /* Hide bottom nav since we're keeping top nav */
}

/* Content spacing adjustments - No bottom nav needed */
.main-content {
    padding-bottom: 2rem; /* Same padding on all screen sizes */
}

/* FAB positioning - No need to account for bottom nav */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    z-index: 999;
}

    .fab:hover {
        transform: scale(1.1);
        background: var(--primary-hover);
    }

/* Enhanced button styling for mobile */
.btn {
    border-radius: var(--radius-lg);
    font-weight: 600;
    padding: 0.75rem 1rem;
    min-height: 44px; /* iOS touch target */
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background: var(--primary-hover);
        border-color: var(--primary-hover);
    }

/* Enhanced cards for mobile */
.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

    .card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }

/* Responsive design */
@media (max-width: 576px) {
    .hero-section {
        margin: 0 -1rem 2rem -1rem;
        border-radius: 0;
        padding: 1.5rem 1rem !important;
    }

    .content {
        padding: 0.5rem !important;
    }
}

/* Responsive design - Hide horizontal nav on mobile, show hamburger */
@media (max-width: 767px) {
    .nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .mobile-menu {
        display: block !important; /* Enable mobile menu on mobile */
    }

    /* Hide the horizontal navigation on mobile */
    .navbar.navbar-expand-lg {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none; /* Hide hamburger on desktop */
    }

    .mobile-menu {
        display: none !important; /* Hide mobile menu on desktop */
    }

    /* Show horizontal navigation on desktop */
    .navbar.navbar-expand-lg {
        display: block !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus, .nav-item:focus, .mobile-nav-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn:active, .card:active, .nav-item:active, .mobile-nav-item:active {
        transform: scale(0.98);
    }
}
