/* page overrides */
footer { position: relative; z-index: 1; }

/* ── WEATHER CANVAS (bg effects) ── */
    #wxCv { position:fixed; inset:0; z-index:0; pointer-events:none; }

    /* ── HEADER ── */

    /* ── HERO ── */
    .hero {
      position:relative; z-index:1;
      text-align:center; padding:80px 20px 50px;
    }
    .hero-title .t1 { color:var(--white); }
    .hero-title .t2 { background:linear-gradient(135deg,var(--purple-light),var(--gold)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

    /* ── SEARCH ── */
    .search-wrap { max-width:600px; margin:48px auto 0; position:relative; z-index:1; padding:0 24px; }
    .search-inner { display:flex; gap:0; position:relative; }
    .search-input {
      flex:1; padding:18px 24px;
      background:rgba(255,255,255,.04);
      border:1px solid rgba(107,33,212,.4); border-right:none;
      color:#fff; font-family:'Space Mono',monospace; font-size:14px; letter-spacing:2px;
      outline:none;
      transition:border-color .3s, background .3s;
    }
    .search-input::placeholder { color:rgba(255,255,255,.2); letter-spacing:2px; }
    .search-input:focus { border-color:var(--purple-light); background:rgba(107,33,212,.06); }
    .search-btn {
      padding:18px 28px;
      background:var(--purple); border:1px solid var(--purple);
      color:#fff; cursor:pointer;
      font-family:'Bebas Neue',sans-serif; font-size:18px; letter-spacing:2px;
      transition:background .3s, box-shadow .3s;
      white-space:nowrap;
    }
    .search-btn:hover { background:var(--purple-light); box-shadow:0 0 30px rgba(107,33,212,.5); }
    .search-suggestions {
      position:absolute; top:100%; left:0; right:60px;
      background:rgba(10,6,20,.97); border:1px solid rgba(107,33,212,.35); border-top:none;
      z-index:200; display:none;
    }
    .search-suggestions.show { display:block; }
    .sugg-item {
      padding:12px 24px; cursor:pointer;
      font-family:'Space Mono',monospace; font-size:12px; letter-spacing:1px;
      color:rgba(255,255,255,.6); border-bottom:1px solid rgba(107,33,212,.1);
      transition:background .2s, color .2s;
    }
    .sugg-item:last-child{ border-bottom:none; }
    .sugg-item:hover { background:rgba(107,33,212,.15); color:#fff; }
    .geo-btn {
      display:flex; align-items:center; justify-content:center; gap:8px;
      margin:16px auto 0; padding:10px 24px;
      background:transparent; border:1px solid rgba(107,33,212,.3);
      color:rgba(155,95,227,.7); cursor:pointer;
      font-family:'Space Mono',monospace; font-size:10px; letter-spacing:3px;
      transition:border-color .3s, color .3s;
    }
    .geo-btn:hover { border-color:var(--purple-light); color:var(--white); }

    /* ── MAIN WEATHER DISPLAY ── */
    .wx-main { max-width:1000px; margin:60px auto 0; padding:0 24px 100px; position:relative; z-index:1; }

    /* State panels */
    .wx-idle, .wx-loading, .wx-error { text-align:center; padding:80px 20px; }
    .wx-idle-icon { font-size:80px; display:block; margin-bottom:20px; animation:idleFloat 3s ease-in-out infinite; }
    .wx-idle-text { font-family:'Space Mono',monospace; font-size:12px; letter-spacing:3px; color:rgba(255,255,255,.25); }
    .wx-loading-ring {
      width:60px; height:60px; border-radius:50%;
      border:3px solid rgba(107,33,212,.2);
      border-top-color:var(--purple-light);
      animation:spin .8s linear infinite;
      margin:0 auto 20px;
    }
    .wx-loading-text { font-family:'Space Mono',monospace; font-size:11px; letter-spacing:3px; color:rgba(255,255,255,.3); animation:eyebBlink 1s ease-in-out infinite; }
    .wx-error-icon { font-size:60px; margin-bottom:16px; display:block; }
    .wx-error-text { font-family:'Space Mono',monospace; font-size:12px; letter-spacing:2px; color:rgba(255,80,80,.7); }

    /* Result */
    #wxResult { display:none; }
    #wxResult.show { display:block; animation:wxEnter .6s cubic-bezier(.16,1,.3,1); }
    @keyframes wxEnter{ from{opacity:0;transform:translateY(32px)} to{opacity:1;transform:translateY(0)} }

    /* Location + time */
    .wx-location { text-align:center; margin-bottom:48px; }
    .wx-city { font-family:'Bebas Neue',sans-serif; font-size:clamp(44px,8vw,88px); line-height:1; color:var(--white); letter-spacing:2px; }
    .wx-country { font-family:'Space Mono',monospace; font-size:11px; letter-spacing:5px; color:rgba(255,255,255,.35); display:block; margin-top:4px; }
    .wx-updated { font-family:'Space Mono',monospace; font-size:9px; letter-spacing:3px; color:rgba(107,33,212,.6); margin-top:8px; display:block; }

    /* Main reading */
    .wx-reading {
      display:grid; grid-template-columns:1fr auto 1fr;
      gap:40px; align-items:center;
      margin-bottom:48px;
      padding:48px 40px;
      background:rgba(255,255,255,.02);
      border:1px solid rgba(107,33,212,.2);
      position:relative; overflow:hidden;
    }
    .wx-reading::before {
      content:''; position:absolute; top:0; left:0; right:0; height:3px;
      background:linear-gradient(90deg,var(--purple),var(--purple-light),var(--gold));
    }
    .wx-temp-block { text-align:center; }
    .wx-temp {
      font-family:'Bebas Neue',sans-serif;
      font-size:clamp(80px,15vw,160px); line-height:1;
      background:linear-gradient(135deg,var(--white),var(--purple-light));
      -webkit-background-clip:text; -webkit-text-fill-color:transparent;
      background-clip:text;
      animation:tempGlitch 8s infinite;
    }
    @keyframes tempGlitch{
      0%,90%,100%{filter:none}
      92%{filter:drop-shadow(-3px 0 var(--purple-light))}
      94%{filter:drop-shadow(3px 0 var(--gold))}
    }
    .wx-temp-label { font-family:'Space Mono',monospace; font-size:9px; letter-spacing:4px; color:rgba(255,255,255,.3); text-transform:uppercase; display:block; margin-top:-8px; }
    .wx-icon-block { text-align:center; }
    .wx-icon { font-size:88px; display:block; animation:iconBob 3s ease-in-out infinite; }
    @keyframes iconBob{ 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-12px) scale(1.05)} }
    .wx-condition { font-family:'Bebas Neue',sans-serif; font-size:22px; letter-spacing:3px; color:var(--purple-light); display:block; margin-top:8px; }
    .wx-feels { text-align:center; }
    .wx-feels-num { font-family:'Bebas Neue',sans-serif; font-size:clamp(40px,7vw,72px); color:rgba(255,255,255,.5); }
    .wx-feels-label { font-family:'Space Mono',monospace; font-size:9px; letter-spacing:3px; color:rgba(255,255,255,.25); display:block; }

    /* Stats grid */
    .wx-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:2px; background:rgba(107,33,212,.15); margin-bottom:48px; }
    .wx-stat { background:rgba(6,6,8,.9); padding:28px 16px; text-align:center; position:relative; overflow:hidden; transition:background .3s; }
    .wx-stat::after { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,var(--purple-light),transparent); transform:translateX(-100%); animation:scan 3s linear infinite; }
    .wx-stat:nth-child(2)::after{ animation-delay:-.75s }
    .wx-stat:nth-child(3)::after{ animation-delay:-1.5s }
    .wx-stat:nth-child(4)::after{ animation-delay:-2.25s }
    @keyframes scan{ to{transform:translateX(100%)} }
    .wx-stat:hover { background:rgba(107,33,212,.08); }
    .wx-stat-icon { font-size:28px; margin-bottom:8px; display:block; }
    .wx-stat-num { font-family:'Bebas Neue',sans-serif; font-size:clamp(24px,4vw,40px); color:var(--purple-light); display:block; }
    .wx-stat-label { font-family:'Space Mono',monospace; font-size:8px; letter-spacing:3px; color:rgba(255,255,255,.3); text-transform:uppercase; display:block; margin-top:4px; }

    /* ya Commentary */
    .wx-comment-wrap {
      padding:36px 40px;
      background:rgba(107,33,212,.06);
      border-left:4px solid var(--purple);
      position:relative; overflow:hidden;
      margin-bottom:48px;
    }
    .wx-comment-wrap::before { content:'✌️'; position:absolute; right:24px; top:16px; font-size:64px; opacity:.06; }
    .wx-comment-label { font-family:'Space Mono',monospace; font-size:9px; letter-spacing:4px; color:var(--purple-light); text-transform:uppercase; margin-bottom:16px; display:block; }
    .wx-comment-text { font-size:clamp(16px,2.5vw,22px); line-height:1.8; color:var(--white); font-weight:700; }
    .wx-comment-sub { font-size:13px; line-height:1.8; color:rgba(255,255,255,.5); margin-top:12px; }

    /* 5-day forecast */
    .wx-forecast-title { font-family:'Bebas Neue',sans-serif; font-size:40px; letter-spacing:3px; color:var(--white); margin-bottom:24px; }
    .wx-forecast-title span { color:var(--purple-light); }
    .wx-forecast-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
    .wx-fday {
      padding:20px 12px; text-align:center;
      background:rgba(255,255,255,.02);
      border:1px solid rgba(107,33,212,.15);
      transition:border-color .3s, background .3s, transform .3s;
    }
    .wx-fday:hover { border-color:var(--purple-light); background:rgba(107,33,212,.08); transform:translateY(-4px); }
    .wx-fday-name { font-family:'Space Mono',monospace; font-size:9px; letter-spacing:3px; color:rgba(255,255,255,.35); text-transform:uppercase; display:block; margin-bottom:10px; }
    .wx-fday-icon { font-size:32px; margin-bottom:10px; display:block; }
    .wx-fday-hi { font-family:'Bebas Neue',sans-serif; font-size:28px; color:var(--white); display:block; }
    .wx-fday-lo { font-family:'Bebas Neue',sans-serif; font-size:20px; color:rgba(255,255,255,.3); display:block; }

    /* ── TODAY'S 3-HOUR TIMELINE ── */
    .wx-hourly-wrap { margin-bottom:48px; }
    .wx-hourly-scroll {
      display:flex; gap:10px;
      overflow-x:auto; padding:4px 0 14px;
      scrollbar-width:thin; scrollbar-color:rgba(107,33,212,.3) transparent;
    }
    .wx-hourly-scroll::-webkit-scrollbar { height:4px; }
    .wx-hourly-scroll::-webkit-scrollbar-track { background:transparent; }
    .wx-hourly-scroll::-webkit-scrollbar-thumb { background:rgba(107,33,212,.3); border-radius:2px; }
    .wx-hour {
      flex:0 0 76px; padding:14px 8px 12px;
      background:rgba(255,255,255,.02); border:1px solid rgba(107,33,212,.15);
      text-align:center; position:relative; overflow:hidden;
      transition:border-color .3s, background .3s, transform .2s;
    }
    .wx-hour:hover { border-color:var(--purple-light); background:rgba(107,33,212,.07); transform:translateY(-3px); }
    .wx-hour.wx-hour-now {
      border-color:var(--purple-light); background:rgba(107,33,212,.12);
      box-shadow:0 0 24px rgba(107,33,212,.25);
    }
    .wx-hour.wx-hour-now::before { content:'NOW'; position:absolute; top:0; left:0; right:0; padding:2px 0; background:var(--purple-light); font-family:'Bebas Neue',sans-serif; font-size:9px; letter-spacing:2px; color:#fff; }
    .wx-hour-time { font-family:'Space Mono',monospace; font-size:9px; letter-spacing:1px; color:rgba(255,255,255,.35); display:block; margin-bottom:8px; }
    .wx-hour.wx-hour-now .wx-hour-time { margin-top:16px; color:var(--purple-light); }
    .wx-hour-icon { font-size:26px; display:block; margin-bottom:6px; }
    .wx-hour-temp { font-family:'Bebas Neue',sans-serif; font-size:24px; color:var(--white); display:block; margin-bottom:10px; line-height:1; }
    .wx-hour-rain-wrap { height:36px; display:flex; align-items:flex-end; justify-content:center; margin-bottom:5px; }
    .wx-hour-rain-bar { width:10px; height:100%; background:rgba(107,33,212,.12); border-radius:2px; overflow:hidden; position:relative; }
    .wx-hour-rain-fill { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(to top,#81d4fa,rgba(107,33,212,.5)); border-radius:2px; min-height:0; transition:height .9s cubic-bezier(.25,1,.5,1); }
    .wx-hour-rain-pct { font-family:'Space Mono',monospace; font-size:8px; color:rgba(255,255,255,.3); display:block; }

    /* ── TODAY'S SUMMARY ── */
    .wx-today-wrap {
      margin-bottom:48px;
      background:rgba(255,255,255,.02); border:1px solid rgba(107,33,212,.2);
      position:relative; overflow:hidden;
    }
    .wx-today-wrap::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--purple),var(--purple-light),var(--gold)); }
    .wx-today-header { padding:20px 24px 0; font-family:'Space Mono',monospace; font-size:9px; letter-spacing:4px; color:rgba(107,33,212,.7); text-transform:uppercase; }
    .wx-today-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; background:rgba(107,33,212,.1); margin-top:16px; }
    .wx-today-cell { background:rgba(6,6,8,.88); padding:22px 12px; text-align:center; position:relative; overflow:hidden; transition:background .3s; }
    .wx-today-cell::after { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,var(--purple-light),transparent); transform:translateX(-100%); animation:scan 3.5s linear infinite; }
    .wx-today-cell:nth-child(2)::after{ animation-delay:-.58s }
    .wx-today-cell:nth-child(3)::after{ animation-delay:-1.17s }
    .wx-today-cell:nth-child(4)::after{ animation-delay:-1.75s }
    .wx-today-cell:nth-child(5)::after{ animation-delay:-2.33s }
    .wx-today-cell:nth-child(6)::after{ animation-delay:-2.92s }
    .wx-today-cell:hover { background:rgba(107,33,212,.09); }
    .wx-today-icon { font-size:22px; display:block; margin-bottom:6px; }
    .wx-today-val { font-family:'Bebas Neue',sans-serif; font-size:clamp(24px,3.5vw,40px); display:block; line-height:1; }
    .wx-today-val.hi { color:#ff8a65; }
    .wx-today-val.lo { color:#81d4fa; }
    .wx-today-val.neu { color:var(--purple-light); }
    .wx-today-lbl { font-family:'Space Mono',monospace; font-size:8px; letter-spacing:2px; color:rgba(255,255,255,.3); text-transform:uppercase; display:block; margin-top:5px; }

    @media(max-width:480px){
      .wx-forecast-grid{ grid-template-columns:repeat(2,1fr); }
    }

    /* ── FOOTER ── */
