/* =========================
   style.css — Weather Now (Enhanced)
   BEM + Bootstrap overrides
   ========================= */

/* Variables */
:root{
  --bg: #070826;         /* page background */
  --panel: #0f1230;      /* card background */
  --muted: #98a0b0;      /* secondary text */
  --accent: #6a5df6;     /* purple-blue accent */
  --card-glass: rgba(255,255,255,0.03);
}

/* Global reset */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin:0;
  font-family: Inter, "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial;
  background: var(--bg);
  color: #e8eefb;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.35;
  transition: background 0.4s ease;
}

/* Subtle fade-in on page load */
body {
  opacity: 0;
  animation: fadeInBody 1s ease forwards;
}
@keyframes fadeInBody {
  to { opacity: 1; }
}

/* Header */
.site-header__inner { margin-top: 8px; margin-bottom: 8px; }
.site-header__title { color:#fff; font-size:1.05rem; }
.site-header__input {
  min-width: 420px;
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  transition: background 0.3s ease;
}
.site-header__input:focus {
  background: rgba(255,255,255,0.07);
}
.site-header__btn-search { 
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.site-header__btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(106,93,246,0.4);
}
@media (max-width: 576px) {
  .site-header__input {
    min-width: auto; /* deixa encolher */
    width: 100%;     /* ocupa toda a largura disponível */
  }
}
/* MAIN intro */
.site-header {
  transition: transform 1s ease, min-height 1s ease;
}

.site-header.centralize {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0); /* Começa centralizado */
}

.site-header.centralize-up {
  min-height: 200px; /* altura final menor */
  transform: translateY(-0vh); /* sobe suavemente */
  
}

.site-header__input::placeholder {
  color: #98a0b0; /* ou qualquer cor que você quiser */
  opacity: 1;     /* garante que a cor não fique apagada */
}

.site-main__headline { 
  font-size: 2.2rem; 
  font-weight:700; 
  color:#f8fbff;
  animation: slideUp 0.8s ease forwards;
  opacity: 0;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* TODAY large card */
.today {
  background: linear-gradient(135deg, rgba(106,93,246,0.12), rgba(24,24,50,0.55));
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.03);
  overflow:hidden;
  position:relative;
  transform: translateY(10px);
  opacity: 0;
  animation: slideFade 1s ease 0.3s forwards;
}
@keyframes slideFade {
  to { opacity: 1; transform: translateY(0); }
}
.today__bg {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.95;
  filter: saturate(1.05);
}
.today__content { position:relative; z-index:2; padding:28px; }

/* location & date */
.today__location { font-size:1.25rem; margin:0; color:#fff; }
.today__date { color: var(--muted); margin:0; }

/* temperature */
.today__temp .today__temp-temperature { font-size:4.5rem; line-height:0.9; color:#fff; transition: color 0.3s ease; }

/* stat cards inside main */
.stat {
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 6px 18px rgba(2,6,23,0.45);
  transition: transform 0.3s ease, background 0.3s ease;
}
.stat:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
}
.stat__label { color: var(--muted); }
.stat__value { color:#fff; }

/* daily list */
.daily__list { padding-bottom:6px; }

.day {
  min-width:84px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  padding:12px;
  box-shadow: 0 8px 20px rgba(2,6,23,0.45);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.day--visible {
  opacity: 1;
  transform: translateY(0);
}
.day:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 22px rgba(106,93,246,0.25);
  cursor: pointer;
}

/* HOURLY SIDEBAR */
.hourly {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.03);
  padding: 18px;
  animation: slideUp 1s ease 0.6s forwards;
  opacity: 0;
}
.hourly__list { margin:0; padding:0; }
.hourly__item {
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  margin-bottom:10px;
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border:1px solid rgba(255,255,255,0.02);
  transition: background 0.3s ease, transform 0.3s ease;
}
.hourly__item:hover {
  background: rgba(255,255,255,0.05);
  transform: translateX(3px);
}
.hourly__item time { color: var(--muted); }

/* make the hourly column scrollable if needed */
.hourly { max-height: 560px; overflow:auto; padding-right:12px; }

/* small tweaks */
.card { background: transparent; border:0; }
.btn-primary {
  background: linear-gradient(90deg, var(--accent), #4b6aff);
  border:none;
  border-radius:12px;
  padding:10px 18px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(106,93,246,0.4);
  transform: translateY(-2px);
}
.form-select { background: rgba(255,255,255,0.02); color: #e8eefb; border-radius:10px; border: 1px solid rgba(255,255,255,0.02); }

/* responsiveness */
@media (max-width: 992px) {
  .site-header__input { min-width:220px; }
  .today__temp .display-1 { font-size:3rem; }
  .daily__list { gap: 10px; }
  .today__content { padding:18px; }
  .hourly { max-height: 420px; }
}

/* focus outlines accessible */
button:focus, input:focus, select:focus, a:focus {
  outline: 3px solid rgba(90,209,255,0.12);
  outline-offset: 2px;
}
