/* 
   ParkWise Premium CSS 
   Mobile-First, Vanilla CSS 
*/

:root {
    --bg-color: #F7F8FA;
    --text-main: #111827;
    --text-secondary: #6B7280;
    --primary-blue: #2563EB;
    --primary-blue-hover: #1D4ED8;
    --success-green: #16A34A;
    --warning-yellow: #FACC15;
    --danger-red: #EF4444;
    --gray-soft: #E5E7EB;
    --white: #FFFFFF;
    
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-up: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }
.hidden { display: none !important; }
.bg-white { background-color: var(--white); }
.shadow { box-shadow: var(--shadow-md); }

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 { font-size: 2rem; line-height: 1.2; }
h2 { font-size: 1.5rem; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gray-soft);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--gray-soft);
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar .logo a {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.navbar .nav-links a {
    margin-left: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Home / Search Container */
.home-container {
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-hero {
    margin-bottom: 2.5rem;
    position: relative;
}

.hero-title {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.search-box {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-full);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    outline: none;
    border-radius: var(--radius-full);
    background: transparent;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 20;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-results li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-soft);
    cursor: pointer;
    transition: background 0.2s;
}
.search-results li:last-child { border-bottom: none; }
.search-results li:hover { background: var(--bg-color); }

/* Quick Actions Chips */
.quick-actions h3 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    background: var(--white);
    border: 1px solid var(--gray-soft);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.chip:hover {
    background: var(--gray-soft);
    transform: translateY(-1px);
}

/* Cards & Lists */
.recent-list {
    list-style: none;
}
.recent-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-soft);
}
.recent-list li a {
    color: var(--primary-blue);
    font-weight: 500;
}

/* Auth Pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 1.5rem;
}

.auth-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-soft);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.alert-error {
    background-color: #FEF2F2;
    color: var(--danger-red);
    border: 1px solid #FECACA;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Spinner */
.spinner {
    border: 3px solid rgba(0,0,0,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-blue);
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

