/* Importing Google Fonts - Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

:root {
    --bg-primary: #0a173f;
    --bg-secondary: #1a2f5f;
    --surface: rgba(255, 255, 255, 0.1);
    --surface-light: rgba(255, 255, 255, 0.15);
    --surface-inner: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.22);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent: #53d5f5;
    --icon-yellow: #ffd700;
    --icon-blue: #87ceeb;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0a173f 0%, #1a2f5f 50%, #0d1b3d 100%);
    color: var(--text);
}

.app-shell {
    width: 100%;
    max-width: 420px;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* Search Section */
.search-section {
    width: 100%;
}

.search-section .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.search-section .search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 24px;
    pointer-events: none;
    z-index: 1;
}

.search-section .search-input {
    flex: 1;
    height: 100%;
    padding: 0 16px 0 52px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

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

/* Glass Cards */
.glass-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.main-weather-card {
    padding: 22px 20px 24px;
    margin-bottom: 0;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-header .city-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    font-weight: 500;
}

.card-header .city-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.2;
}

.card-header .local-date {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.icon-button {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.icon-button span {
    font-size: 18px;
}

/* Current Weather */
.current-weather {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0 20px;
}

.current-weather .weather-icon {
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.current-weather .temperature {
    font-size: 5.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0 12px;
    line-height: 1;
    display: flex;
    align-items: flex-start;
}

.current-weather .temperature span {
    font-size: 1.6rem;
    font-weight: 600;
    margin-left: 3px;
    line-height: 1;
    align-self: flex-start;
    margin-top: 0.2em;
}

.current-weather .description {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 10px;
}

.current-weather .min-max {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Details Card Inner */
.details-card-inner {
    margin-top: 20px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(15px);
}

/* Stat Row */
.stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    padding: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat span {
    font-size: 32px;
    color: #87ceeb;
    line-height: 1;
}

.stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.stat .value {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 700;
}

.stat-wind {
    grid-column: 1;
    grid-row: 2;
}

/* Sections */
.section {
    margin-top: 18px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title p {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.section-title .today-range {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.section-title span {
    font-size: 18px;
    color: var(--text);
}

/* Hourly Weather */
.hourly-weather {
    padding: 4px 0;
}

.hourly-weather .weather-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.hourly-weather .weather-list::-webkit-scrollbar {
    height: 6px;
}

.hourly-weather .weather-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
}

.hourly-weather .weather-list .weather-item {
    min-width: 88px;
    padding: 14px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
}

.hourly-weather .weather-item .time {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hourly-weather .weather-item .weather-icon {
    width: 36px;
    height: 36px;
}

.hourly-weather .weather-item .temperature {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* Daily List */
.next-forecast .daily-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.daily-list li {
    list-style: none;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(20px);
}

.daily-list .day {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.daily-list .mini-icon {
    width: 32px;
    height: 32px;
}

.daily-list .temps {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
}

/* No Results */
.no-results {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    display: none;
    padding: 40px;
    text-align: center;
    align-items: center;
    flex-direction: column;
    transform: translate(-50%, -50%);
    transition: 0.2s ease;
    color: var(--text);
    z-index: 10;
}

body.show-no-results .no-results {
    display: flex;
}

.no-results .icon {
    width: 120px;
    opacity: 0.6;
}

.no-results .title {
    font-weight: 700;
    font-size: 1.3rem;
    margin: 25px 0 15px;
}

.no-results .message {
    font-weight: 500;
    line-height: 23px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

body.show-no-results .weather-section {
    visibility: hidden;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .app-shell {
        max-width: 100%;
    }
    
    .glass-card {
        padding: 20px;
        border-radius: 22px;
    }
    
    .current-weather .temperature {
        font-size: 3.8rem;
    }
    
    .current-weather .temperature span {
        font-size: 1.8rem;
    }
    
    .stat-row {
        gap: 12px;
    }
    
    .stat span {
        font-size: 24px;
    }
}
