/* Parking Watch - Glassmorphism Integration */
/* Import main glassmorphism theme variables and base styles */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Bright Harmonious Color Palette - matching main site */
    --primary-color: #27a5ff; /* Fresh Clean Blue */
    --secondary-color: #32ef8a; /* Light Lively Green */
    --accent-color: #32ef8a; /* Light Lively Green */
    --dark-color: #1a202c;
    --light-color: #ffffff;
    --text-color: #333;
    
    /* Harmonious Gradients */
    --primary-gradient: linear-gradient(135deg, #27a5ff 0%, #32ef8a 100%);
    --secondary-gradient: linear-gradient(135deg, #32ef8a 0%, #27a5ff 100%);
    --accent-gradient: linear-gradient(135deg, #32ef8a 0%, #27a5ff 100%);
    
    /* Glass Effects with Pale Backgrounds */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(39, 165, 255, 0.1);
    --glass-backdrop: blur(20px);
    
    /* Typography - matching main site */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Poppins', sans-serif;
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background: linear-gradient(135deg, #f8fffe 0%, #f0fff4 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-color);
    padding: 20px;
}

/* Animated Background - matching main site */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(39, 165, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(50, 239, 138, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(39, 165, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Loading Animation - matching main site */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fffe 0%, #f0fff4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(39, 165, 255, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.container {
    max-width: 1000px;
    margin: auto;
    position: relative;
    z-index: 1;
}

/* Main Title */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-family: var(--font-display);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about {
    color: rgba(26, 32, 44, 0.7);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Glass Search Input */
#searchInput {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    border-radius: 50px;
    box-sizing: border-box;
    transition: var(--transition-smooth);
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    box-shadow: var(--glass-shadow);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 165, 255, 0.1), var(--glass-shadow);
    transform: translateY(-2px);
}

#searchInput::placeholder {
    color: rgba(26, 32, 44, 0.5);
}

/* Autocomplete Glass Dropdown */
.autocomplete-items {
    position: relative;
    z-index: 100;
}

.autocomplete-items div {
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-top: none;
    color: var(--text-color);
    transition: var(--transition-smooth);
    font-family: var(--font-primary);
}

.autocomplete-items div:hover {
    background: rgba(39, 165, 255, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.autocomplete-items div:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.autocomplete-items div:last-child {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Glass Cards - matching main site */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    margin-top: 2rem;
    transition: var(--transition-bounce);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px 0 rgba(39, 165, 255, 0.12);
    border-color: rgba(50, 239, 138, 0.3);
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

#streetTitle {
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    font-family: var(--font-display);
}

.hidden {
    display: none;
}

/* Glass Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

th {
    background: rgba(39, 165, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-display);
}

td {
    color: var(--text-color);
}

tr:hover td {
    background: rgba(39, 165, 255, 0.05);
    transform: scale(1.01);
}

tr:last-child td {
    border-bottom: none;
}

/* Likelihood Color Coding with Glass Effects */
.ll-almost-certain { 
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(255, 50, 50, 0.1) 100%);
    color: #d53f41;
    font-weight: 600;
}

.ll-very-likely { 
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.2) 0%, rgba(255, 120, 50, 0.1) 100%);
    color: #f56500;
    font-weight: 600;
}

.ll-likely { 
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.2) 0%, rgba(255, 210, 50, 0.1) 100%);
    color: #d69e2e;
    font-weight: 600;
}

.ll-possible { 
    background: linear-gradient(135deg, rgba(39, 165, 255, 0.2) 0%, rgba(80, 180, 255, 0.1) 100%);
    color: var(--primary-color);
    font-weight: 500;
}

.ll-unlikely { 
    background: linear-gradient(135deg, rgba(50, 239, 138, 0.2) 0%, rgba(80, 250, 160, 0.1) 100%);
    color: var(--secondary-color);
    font-weight: 500;
}

.ll-extremely-unlikely { 
    background: linear-gradient(135deg, rgba(50, 239, 138, 0.15) 0%, rgba(100, 255, 180, 0.08) 100%);
    color: var(--accent-color);
    font-weight: 400;
}

/* Current Hour Card Special Styling */
#current-hour-card {
    background: linear-gradient(135deg, var(--glass-bg), rgba(39, 165, 255, 0.05));
    border: 2px solid rgba(39, 165, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(39, 165, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#current-hour-card h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

#currentHourResult {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    #searchInput {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
    
    th, td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .autocomplete-items div {
        padding: 0.8rem 1.2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .about {
        font-size: 1rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    th, td {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}
