/* ============================================
   Weather Tomorrow - Main Stylesheet
   ============================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */

.site-header {
    background: rgba(0, 0, 0, 0.25);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    white-space: nowrap;
}

.logo:hover {
    opacity: 0.9;
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    font-weight: 500;
    transition: opacity 0.2s;
    font-size: 0.95rem;
}

.main-nav a:hover {
    opacity: 1;
}

/* ============================================
   Search Form
   ============================================ */

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    min-width: 200px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.search-form input:focus {
    outline: 2px solid #ff9f43;
}

.search-form button {
    padding: 10px 20px;
    background: #ff9f43;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #ff8c1a;
}

/* ============================================
   Main Content
   ============================================ */

main {
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.subtitle {
    opacity: 0.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: #ff9f43;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.6;
}

/* ============================================
   Weather Card
   ============================================ */

.weather-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.weather-icon {
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.weather-main {
    text-align: center;
}

.temp {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

.condition {
    font-size: 1.2rem;
    opacity: 0.9;
}

.weather-details {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.weather-details > div {
    text-align: center;
    min-width: 80px;
}

.weather-details span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-details strong {
    font-size: 1.2rem;
}

/* ============================================
   Insights & Content Sections
   ============================================ */

.insights,
.cities,
.video-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.insights h2,
.cities h2,
.video-info h2,
.video-list h2 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.insights ul {
    padding-left: 20px;
}

.insights li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.insights p {
    line-height: 1.7;
    opacity: 0.95;
}

/* ============================================
   City Grid
   ============================================ */

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.city-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid transparent;
}

.city-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.city-card.active {
    background: rgba(255, 159, 67, 0.3);
    border-color: #ff9f43;
}

.city-card small {
    opacity: 0.7;
    font-size: 0.8rem;
}

/* ============================================
   News Section
   ============================================ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 12px;
    gap: 10px;
}

.news-source {
    color: #ff9f43;
    font-weight: 600;
}

.news-card h2 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card p {
    font-size: 0.95rem;
    opacity: 0.85;
    flex-grow: 1;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #ff9f43;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: auto;
}

.read-more:hover {
    text-decoration: underline;
}

/* ============================================
   Video Section
   ============================================ */

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 25px;
    background: #000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info p {
    opacity: 0.85;
    margin-bottom: 10px;
    line-height: 1.6;
}

.video-region {
    display: inline-block;
    background: rgba(255, 159, 67, 0.2);
    color: #ff9f43;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.video-list {
    margin-top: 30px;
}

.video-list h2 {
    margin-bottom: 20px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: rgba(0, 0, 0, 0.25);
    padding: 25px 0;
    text-align: center;
    margin-top: 40px;
    opacity: 0.8;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 900px) {
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 700px) {
    h1 {
        font-size: 1.6rem;
    }

    .temp {
        font-size: 2.8rem;
    }

    .weather-icon {
        font-size: 4rem;
    }

    .weather-card {
        padding: 25px;
        gap: 20px;
    }

    .weather-details {
        gap: 15px;
    }

    .search-form input {
        min-width: 150px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .main-nav {
        display: none;
    }

    .site-header .container {
        justify-content: center;
    }

    .search-form {
        width: 100%;
    }

    .search-form input {
        flex-grow: 1;
    }

    .weather-card {
        flex-direction: column;
        text-align: center;
    }

    .weather-details {
        justify-content: center;
    }

    h1 {
        font-size: 1.4rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}