/* ============================================
   WeatherPro - Professional Weather Dashboard
   CSS3 Stylesheet with Modern Design
   ============================================ */

/* ============================================
   CSS Variables & Root Styles
   ============================================ */
:root {
    /* Color Palette - WCAG AA Compliant */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    
    /* Background Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.8);
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Spacing (8px grid system) */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container Max Width */
    --container-max-width: 1400px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   Loading Screen
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 9999;
    opacity: 1;
    transition: opacity var(--transition-base);
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-screen p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-secondary);
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-light);
    background: rgba(59, 130, 246, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    padding: var(--spacing-xl) 0;
}

/* ============================================
   Glass Effect
   ============================================ */
.glass-effect {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Search Section
   ============================================ */
.search-section {
    margin-bottom: var(--spacing-xl);
}

.search-container {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
    transition: all var(--transition-base);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-icon {
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: white;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.location-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    min-height: 44px;
}

.location-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Search Suggestions */
.search-suggestions {
    position: relative;
    margin-top: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* ============================================
   Alerts Section
   ============================================ */
.alerts-section {
    margin-bottom: var(--spacing-xl);
}

.alert-card {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-left: 4px solid var(--error);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    animation: slideIn var(--transition-base);
}

.alert-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.alert-header i {
    font-size: 1.5rem;
    color: var(--error);
}

.alert-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--error);
}

.alert-description {
    color: var(--text-secondary);
    margin-left: 2rem;
}

/* ============================================
   Current Weather Section
   ============================================ */
.current-weather-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.current-weather-card {
    padding: var(--spacing-xl);
}

.weather-header {
    margin-bottom: var(--spacing-lg);
}

.location-name {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.local-time {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.weather-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.temperature-section {
    flex: 1;
}

.temp-display {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.current-temp {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.temp-unit {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.feels-like {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.weather-condition {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: capitalize;
}

.weather-icon-display {
    position: relative;
}

.weather-icon-large {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

/* Weather Details Grid */
.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.detail-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Air Quality Section
   ============================================ */
.air-quality-card {
    padding: var(--spacing-xl);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.section-title i {
    color: var(--primary-color);
}

.aqi-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.aqi-value-display {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.aqi-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.aqi-category {
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aqi-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.aqi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.aqi-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.aqi-item-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* AQI Color Coding */
.aqi-good { color: var(--success); }
.aqi-moderate { color: #f59e0b; }
.aqi-unhealthy-sensitive { color: #fb923c; }
.aqi-unhealthy { color: #ef4444; }
.aqi-very-unhealthy { color: #991b1b; }
.aqi-hazardous { color: #7f1d1d; }

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.section-header .material-icons {
    color: var(--primary-color);
    font-size: 2rem;
}

/* ============================================
   Hourly Forecast Section
   ============================================ */
.hourly-forecast-section {
    margin-bottom: var(--spacing-xl);
}

.hourly-scroll-container {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding: var(--spacing-sm) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hourly-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.hourly-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.hourly-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.hourly-card {
    min-width: 120px;
    padding: var(--spacing-md);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
    scroll-snap-align: start;
    transition: all var(--transition-fast);
}

.hourly-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.hourly-time {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.hourly-icon {
    width: 60px;
    height: 60px;
    margin: var(--spacing-sm) auto;
}

.hourly-temp {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.hourly-condition {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   3-Day Forecast Section
   ============================================ */
.forecast-section {
    margin-bottom: var(--spacing-xl);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.forecast-card {
    padding: var(--spacing-xl);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.forecast-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.forecast-date {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.forecast-day {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.forecast-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.forecast-temps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.forecast-temp-max {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.forecast-temp-min {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.forecast-icon {
    width: 80px;
    height: 80px;
}

.forecast-condition {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.forecast-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.forecast-detail-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.forecast-detail-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.forecast-detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Astronomy Section
   ============================================ */
.astronomy-section {
    margin-bottom: var(--spacing-xl);
}

.astronomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.astronomy-card {
    padding: var(--spacing-xl);
}

.astronomy-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.astronomy-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.astronomy-icon-sun {
    font-size: 2.5rem;
    color: #f59e0b;
}

.astronomy-icon-moon {
    font-size: 2.5rem;
    color: #94a3b8;
}

.astronomy-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.astronomy-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.astronomy-item .material-icons {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.astronomy-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.astronomy-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Marine Weather Section
   ============================================ */
.marine-section {
    margin-bottom: var(--spacing-xl);
}

.marine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.marine-card {
    padding: var(--spacing-xl);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.marine-date {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.marine-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.marine-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.marine-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.marine-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all var(--transition-fast);
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn var(--transition-base);
}

.modal-content h2 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--error);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.close {
    position: absolute;
    right: var(--spacing-md);
    top: var(--spacing-md);
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close:hover {
    color: var(--text-primary);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
    min-width: 44px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   Responsive Design - Mobile First
   ============================================ */

/* Tablet: 768px - 1023px */
@media (max-width: 1023px) {
    .current-weather-section {
        grid-template-columns: 1fr;
    }
    
    .forecast-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile: 320px - 767px */
@media (max-width: 767px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: left var(--transition-base);
        box-shadow: var(--shadow-xl);
        padding: var(--spacing-md) 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .location-btn {
        width: 100%;
        justify-content: center;
    }
    
    .current-temp {
        font-size: 4rem;
    }
    
    .temp-unit {
        font-size: 1.5rem;
    }
    
    .weather-icon-large {
        width: 100px;
        height: 100px;
    }
    
    .weather-details-grid {
        grid-template-columns: 1fr;
    }
    
    .aqi-details {
        grid-template-columns: 1fr;
    }
    
    .forecast-details {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Large Screens: 1440px+ */
@media (min-width: 1440px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* ============================================
   Accessibility
   ============================================ */

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e5e5e5;
        --bg-primary: #000000;
        --bg-secondary: #1a1a1a;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .search-section,
    .hamburger {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-effect {
        background: white;
        border: 1px solid black;
    }
}
.author-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 2px solid rgba(99, 102, 241, 0.2);
}

.author-card {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.author-info h3 {
  font-size: 24px;
  color: #1e293b;
  margin-bottom: 20px;
  font-weight: 700;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.author-name {
  font-size: 20px;
  margin: 0;
}

.author-name strong {
  color: #6366f1;
  font-size: 22px;
}

.author-title {
  display: block;
  color: #64748b;
  font-size: 16px;
  margin-top: 5px;
  font-weight: 500;
}

.author-bio {
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  margin: 10px 0;
}

.author-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.author-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.author-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.author-links svg {
  width: 20px;
  height: 20px;
}

.copyright {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .author-card {
    background: rgba(30, 41, 59, 0.9);
  }
  
  .author-info h3,
  .author-name strong {
    color: #818cf8;
  }
  
  .author-bio,
  .copyright {
    color: #cbd5e1;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .author-section {
    padding: 30px 15px;
  }
  
  .author-card {
    padding: 20px;
  }
  
  .author-links {
    flex-direction: column;
  }
  
  .author-links a {
    width: 100%;
    justify-content: center;
  }
}
