:root{ --bg:#02012b; /* page background */ --card:#25253f; /* dark card */ --muted:#9aa0b3; --accent:#2c1b9d; /* blue button */ --soft:#25253f; --glass: rgba(255,255,255,0.03); --radius:16px; } *{box-sizing:border-box} html,body{height:100%} body{ margin:0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial; background:var(--bg); color:#eef1fb; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; } /* header */ header{ max-width:1200px; margin:28px auto 10px; padding: 0 24px; display:flex; align-items:center; justify-content:space-between; gap:12px; } .logo{ display:flex; align-items:center; gap:12px; font-weight:700; color:#fff; font-size:18px; } .units-btn{ background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.04); color: #dbe3ff; padding:10px 14px; border-radius:12px; cursor: pointer; font-size:14px; } /* page container */ .page { max-width:1200px; margin: 0 auto; padding: 0 24px 60px; } h1.title{ text-align:center; font-size:44px; margin: 10px 0 28px; font-weight:800; letter-spacing:-0.02em; color: #ffffff; } /* search row */ .search-row { display:flex; align-items:center; justify-content:center; gap:16px; margin-bottom:28px; } .search-wrap{ width:720px; position:relative; } .search-input{ width:100%; height:56px; padding:14px 18px 14px 48px; border-radius:12px; background: rgba(47,47,73,0.9); border:1px solid rgba(255,255,255,0.04); color: #e6eefc; font-size:16px; outline: none; transition: box-shadow .18s, border .12s, transform .12s; } .search-input::placeholder{ color: rgba(230,238,252,0.35); } .search-wrap .icon-left{ position:absolute; left:14px; top:50%; transform:translateY(-50%); opacity:0.9; font-size:18px; color:var(--muted); pointer-events:none; } .search-input:focus{ box-shadow: 0 4px 30px rgba(85,104,255,0.12); border-color: rgba(85,104,255,0.3); } .btn-search{ height:56px; padding: 0 20px; background: #4657d9; border: none; color:white; border-radius:12px; font-weight:600; cursor:pointer; box-shadow: 0 8px 30px rgba(34,46,150,0.25); } .btn-search:hover{ background: #2c1b9d; box-shadow: 0 12px 40px rgba(34,46,150,0.35); } /* dropdown suggestions (search in progress) */ .suggestions { position:absolute; left:0; right:0; top:66px; background: rgba(11,12,30,0.95); border-radius:12px; padding:8px; border:1px solid rgba(255,255,255,0.03); box-shadow: 0 10px 30px rgba(2,3,10,0.6); display:none; /* toggled by JS */ z-index:40; } .suggestions .item{ display:flex; gap:12px; align-items:center; padding:10px 12px; border-radius:8px; color: #d8def5; font-size:14px; } .suggestions .item:hover{ background: rgba(255,255,255,0.02); } .suggestions .muted{ color:var(--muted); font-size:13px } /* layout columns */ .grid{ display:grid; grid-template-columns: 1fr 340px; gap:28px; align-items:start; } /* hero card */ .hero { background: url("./images/bg-today-large.svg") no-repeat center center; background-size: cover; border-radius: 20px; padding:28px; color: #fff; min-height:200px; position:relative; display: flex; flex-direction: column; justify-content: center; } .hero .city{ font-size:22px; font-weight:700; margin-bottom:8px; } .hero .date{ color: rgba(230,238,252,0.9); opacity:0.9; font-size:13px; } .hero .temp{ position:absolute; right:28px; top:36px; font-size:72px; font-weight:800; color:white; line-height:1; } .hero .icon-large{ position:absolute; right:34px; bottom:18px; width:64px; height:64px; } /* loading placeholder inside hero */ .hero.loading{ display:flex; align-items:center; justify-content:center; min-height:170px; } .dots { display:flex; gap:8px; align-items:center; color:rgba(255,255,255,0.9); font-weight:600; flex-direction:column; text-align:center; } .dots .circles{ display:flex; gap:8px; margin-bottom:8px; } .circle{ width:10px;height:10px;border-radius:50%; background:rgba(255,255,255,0.7); opacity:0.12; animation:pulse 1s linear infinite; } .circle:nth-child(1){ animation-delay:0s } .circle:nth-child(2){ animation-delay:0.12s } .circle:nth-child(3){ animation-delay:0.24s } @keyframes pulse{ 0%{opacity:0.12; transform:translateY(0)} 50%{opacity:0.95; transform:translateY(-6px)} 100%{opacity:0.12; transform:translateY(0)} } /* stats (feels like, humidity etc.) */ .stats{ margin-top:20px; display:flex; gap:14px; flex-wrap:wrap } .stat{ background:var(--card); border-radius:12px; padding:18px; min-width:150px; flex:1; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.01); } .stat .label{ color:var(--muted); font-size:13px } .stat .value{ font-size:20px; font-weight:700; margin-top:6px } /* sidebar hourly */ .sidebar{ background: #25253f; border-radius:12px; padding:18px; min-height:300px; } .sidebar h4{ margin:0 0 12px; font-size:16px } .hour-list{ display:flex; flex-direction:column; gap:10px; max-height:420px; overflow:auto } .hour{ background: rgba(47,47,73,255); border-radius:10px; padding:9px 12px; display:flex; justify-content:space-between; align-items:center; color:#e6eefc; } .hour .time{ color:var(--muted); font-size:13px } .hour .t{ font-weight:700 } /* daily forecast row */ .daily{ margin-top:22px; display:flex; gap:12px; flex-wrap:wrap; } .day-card{ background:var(--card); width:72px; height:110px; border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:#e8efff; font-size:12px; } .day-card .mini-temp{ font-weight:700; font-size:13px } /* No results / error states */ .empty{ padding:36px; text-align:center; color:var(--muted); border-radius:12px; background: rgba(255,255,255,0.015); margin-top:16px; } /* small responsive */ @media (max-width:980px){ .grid{ grid-template-columns: 1fr; } .search-wrap{ width: min(86vw,720px) } .sidebar{ order:2 } } .units-dropdown { position: relative; display: inline-block; font-family: "Inter", sans-serif; } .units-btn { background: #25253e; /* button color */ border: 1px solid #3f3f46; border-radius: 9px; padding: 8px 14px; cursor: pointer; font-size: 14px; font-weight: 500; color: #f9fafb; /* white text */ display: flex; align-items: center; gap: 6px; transition: all 0.2s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.25); } .units-btn:hover { background: #2f2f49; border-color: #3f3f46; } .icon-gear { width: 16px; height: 16px; } .dropdown-content { display: none; position: absolute; top: 110%; right: 0; background: #25253e; /* dropdown color */ min-width: 230px; border: 1px solid #3f3f46; border-radius: 12px; box-shadow: 0px 8px 20px rgba(0,0,0,0.35); z-index: 1000; padding: 10px 0; } .dropdown-section { padding: 8px 16px; border-bottom: 1px solid #2c2c48; } .dropdown-section:last-child { border-bottom: none; } .dropdown-section h4 { font-size: 12px; margin: 0 0 6px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .dropdown-section button { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; background: none; border: none; padding: 6px 0; font-size: 14px; cursor: pointer; border-radius: 6px; transition: background 0.2s, color 0.2s; color: #e5e7eb; } .dropdown-section button:hover { background: #2c2c48; color: #f9fafb; } .checkmark { width: 14px; height: 14px; } .selected { font-weight: 600; color: #60a5fa; } .selected .checkmark { margin-left: auto; } .dropdown-content.show { display: block; }