/* css/style.css - Fully Responsive & Mobile Friendly */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    background: #f4f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 8px 12px;
    font-weight: 500;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(30,58,138,0.75), rgba(59,130,246,0.75)), url('bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px 80px;
    border-radius: 0 0 30px 30px;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
}

/* Tables */
.flight-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: block;
    overflow: auto;
    margin: 20px 0;
}

.flight-table th,
.flight-table td {
    padding: 14px 10px;
    text-align: left;
    white-space: nowrap;
}

.flight-table th {
    background: #1e40af;
    color: white;
    position: sticky;
    top: 0;
}

/* Weather Widget */
.weather-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    margin: 25px auto;
    max-width: 380px;
}

.temp {
    font-size: 3.2em;
    font-weight: bold;
    color: #1e40af;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.05em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 8px 6px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav a {
        margin: 6px 10px;
        font-size: 0.95em;
    }
    
    .hero {
        padding: 80px 15px 60px;
    }
    
    .hero h1 {
        font-size: 2.2em;
    }
    
    .flight-table th,
    .flight-table td {
        padding: 10px 6px;
        font-size: 0.92em;
    }
    
    .weather-card {
        margin: 20px auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
}