/* ---------- Global Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* ---------- CSS Variables ---------- */
:root {
  --bg: #060720;
  --panel: #0f1430;
  --card: #14162a;
  --muted: #9aa0b8;
  --accent: #5b6bff;
  --glass: rgba(255,255,255,0.04);
  --card-radius: 14px;
}

/* ---------- Layout ---------- */
.page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: linear-gradient(180deg, #0b0d22 0%, #0a0b1f 100%);
}

.app {
  width: 100%;
  background: linear-gradient(180deg, #0b0d22 0%, #0a0b1f 100%);
  padding: 48px;
  color: #fff;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  color: #fff;
}

.logo .sun {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd24d, #ff9f1c);
  box-shadow: 0 6px 24px rgba(255,159,28,0.12);
}

.units-btn {
  background: var(--glass);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.units-btn:hover{
  background: #13206a;
}
.hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #f6f9ff;
}

.search > img {
  width: 20px;
  height: 22px;
}

.search-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
}

.search {
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.search:hover {
  background: #13206a;
  color: white;
}

.search input {
  background: transparent;
  border: 0;
  outline: none;
  color: #e6e9ff;
  font-size: 15px;
  width: 100%;
}

.search-btn {
  height: 45px;
  width: 70px;
  border: none;
  border-radius: 10px 2px 50px 2px;
  background: linear-gradient(90deg,#0e1aff22,#3713b711);
  color: whitesmoke;
  padding-right: 14px;
}

.search-btn:hover {
  background: #5b6bff;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-top: 28px;
}

.left {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 20px;
}

.big-card {
  background: linear-gradient(90deg,#3741ff22,#8b6cff11);
  border-radius: 18px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: center;
  gap: 16px;
  min-height: 286px;
}

.big-card .meta {
  color: #eaf0ff;
}

.big-card .meta .place {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
}

.big-card .meta .date {
  font-size: 13px;
  color: var(--muted);
}

.big-card .temp {
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.big-card .weather-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg,#ffd54d,#ffb24d);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(255,160,50,0.12);
  margin-right: 8px;
}

.info-row {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.info {
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
  min-height: 128px;
  flex: 1;
  text-align: left;
}

.info .label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.info .value {
  font-weight: 600;
  font-size: 20px;
  color: #fff;
}

.tit {
  padding-top: 50px;
  margin-right: 30px;
  display: grid;
  justify-content: start;
  font-weight: bold;
  font-size: 20px;
  padding-left: 3px;
}

.day-ico > img {
  width: 40px;
}

.daily {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 12px;
  align-items: center;
  padding-top: 6px;
}

.day {
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 12px;
  min-width: 64px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.day .day-ico {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  margin: 8px auto;
  background: rgba(255,255,255,0.03);
}

.day .t {
  font-weight: 600;
  color: #fff;
  margin-top: 6px;
}

.right {
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  padding: 16px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.right .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}

.day-select {
  background: rgba(255,255,255,0.02);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
}

.hour-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hour {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.time > img {
  width: 20px;
  height: 20px;
}

.hour .time {
  font-weight: 600;
  color: #fff;
}

.hour .temp-small {
  font-weight: 600;
  color: #fff;
}

/* -------- Responsive Breakpoints -------- */

/* --- Tablet view --- */
@media (max-width: 1160px) {
  .app {
    width: 100%;
    padding: 28px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .right {
    order: 2;
    min-height: auto;
  }
  .left {
    order: 1;
  }
}

/* --- Small devices / mobile --- */
@media (max-width: 768px) {
  .search-row {
    flex-direction: column;
    gap: 12px;
  }
  .search-btn {
    width: 100%;
  }
  .daily {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .layout{
    /* background: red; */
    padding-left: 0px;
  }
  .big-card {
    /* background: white; */
    width: 82%;
  }
  .place+.date{
    padding-bottom: 90%;
  }
  .temp{
    padding-right: 60%;
  }
  .info-row{
    display: grid;
    grid-template-columns: repeat(2,2fr);
    padding-right: 17%;
  }
  .daily{
    padding-right: 17%;
  }
  .temp>span{
    padding-right: 6%;
  }
  .right{
    /* padding-right: 17%; */
    margin-right: 17%;
  }
  /* .day-select{
    padding-right: 17%;
  }
} */
