:root {
    --bg-start: #74ABE2;
    --bg-end: #5563DE;
    --card-bg: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-2: rgba(255, 255, 255, 0.04);
    --accent: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.85);
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box
}

html,
body,
#root {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(160deg, var(--bg-start), var(--bg-end));
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* App container */
.app {
    width: 100%;
    max-width: 720px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px) saturate(120%);
}

/* Header: title + search */
.header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.app-title {
    font-size: 2.4rem;
    margin: 0;
    letter-spacing: 0.4px;
    font-weight: 700;
    text-align: center;
}

/* Search form */
.search {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    max-width: 680px;
}

.search input {
    flex: 1;
    height: 56px;
    padding: 14px 18px;
    border-radius: 40px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: var(--glass);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search button {
    height: 56px;
    padding: 0 22px;
    border-radius: 40px;
    border: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.06));
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease;
}

.search button:active {
    transform: translateY(1px);
}

/* Main card */
.main {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* Location row */
.location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.city {
    font-size: 1.6rem;
    margin: 0;
}

.local-time {
    margin: 6px 0 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Icon */
.icon-wrap {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
}

.temp-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    margin-top: 12px;
}

.temp {
    font-size: 4rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -1px;
}

.condition-block {
    color: var(--muted);
    font-size: 1.05rem;
}

/* Extra info */
.extra {
    margin-top: 18px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.extra-item {
    flex: 1 1 160px;
    background: var(--glass-2);
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-weight: 600;
}

/* Message shown when no data */
.message {
    text-align: center;
    padding: 28px 18px;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border-radius: 12px;
}

/* Footer */

.footer {
    margin-top: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: white;
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #ffdf91;
    /* Hover color */
    transform: scale(1.1);
}

/* Accessibility helper */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

@media (max-width:480px) {
    .app-title {
        font-size: 1.6rem;
    }

    .temp {
        font-size: 3rem;
    }

    .search input {
        height: 48px;
    }

    .search button {
        height: 48px;
        padding: 0 14px;
        font-size: 0.95rem;
    }

    .icon-wrap {
        width: 68px;
        height: 68px;
    }

    .extra {
        gap: 10px;
    }
}