/* ===============================================================
   SuperTwentyPlus Weather – Final Clean Neon Edition
   CLEAN REWRITE + HOURLY/WEEKLY ENHANCEMENTS + TEMPERATURE GAUGE
   =============================================================== */

:root {
  --bg: #04012b;
  --primary: #00c3ff;
  --primary-soft: rgba(0, 246, 255, 0.25);
  --accent: #00c3ff;
  --text: #e0faff;
  --muted: #6dd5ff;
  --border: #00c3ff;
  --radius: 14px;
}



/* ===============================================================
   GLOBAL
   =============================================================== */

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Orbitron', sans-serif;
  color: var(--text);
  padding-top: 120px;
}

@media (max-width: 900px) { body { padding-top: 130px; } }
@media (max-width: 600px) { body { padding-top: 140px; } }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.25;
  z-index: -1;
}

.label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.value {
  font-family: 'Roboto', sans-serif;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--text);
}

@media (max-width: 600px) {
  .value {
    font-size: .9rem;
    line-height: 1.25;
  }
}

/* ===============================================================
   RESULT GRID ALIGNMENT
   =============================================================== */

.result-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 6px 0;
  margin: 14px 0;
  align-items: start;
}

@media (max-width: 600px) {
  .result-row {
    grid-template-columns: 135px 1fr;
    gap: 4px 0;
  }
}

/* ===============================================================
   COORDINATES BLOCK
   =============================================================== */

.coord-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0px;
  margin-bottom: 12px;
}

.coord-line {
  display: flex;
  gap: 12px;
  align-items: center;
}

.coord-label {
  font-family: 'Orbitron', sans-serif;
}

.coord-value {
  font-family: 'Roboto', sans-serif;
}

/* ===============================================================
   HAMBURGER MENU
   =============================================================== */

.hamburger-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: rgba(0,0,0,0.75);
  border-bottom: 1px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  z-index: 99999;
}

.hamburger-brand {
  font-size: 1.1rem;
  color: var(--primary);
}

.hamburger-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

.hamburger-menu {
  position: absolute;
  right: 22px;
  top: 70px;
  background: rgba(0,0,0,0.9);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 10px 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  z-index: 99999;
}

.hamburger-menu.open { display: flex; }

.hamburger-menu a {
  padding: 10px 18px;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

.hamburger-menu a:hover {
  background: rgba(0,246,255,0.18);
  color: var(--text);
}

/* ===============================================================
   MAIN CONTAINER
   =============================================================== */

.app-container {
  max-width: 900px;
  margin: 0 auto 70px;
  padding: 42px 50px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--primary);
  border-radius: 22px;
    box-shadow:
    0 0 0 1px rgba(0,174,255,.9) inset,
    0 0 28px rgba(0,174,255,.9);
  display: flex;
  flex-direction: column;
  gap: 26px;
  
}

@media (max-width: 600px) {
  .app-container {
    padding: 34px 22px;
    margin: 0 14px 80px;
  }
}

.app-title {
  font-size: 2.5rem;
  text-align: center;
  margin: 0;
}

/* ===============================================================
   UNIT TOGGLE
   =============================================================== */

.unit-toggle {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.unit-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--muted);
  cursor: pointer;
    box-shadow:
    0 0 0 1px rgba(0,174,255,.38) inset,
    0 0 28px rgba(0,174,255,.38);
}

.unit-btn.active {
  background: var(--primary);
  color: #020312;
}

/* ===============================================================
   INPUTS + BUTTONS
   =============================================================== */

.neon-input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.55);
  color: var(--text);
  font-size: 1rem;
  box-sizing: border-box !important;
    box-shadow:
    0 0 0 1px rgba(0,174,255,.38) inset,
    0 0 28px rgba(0,174,255,.38);
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.neon-btn {
  padding: 14px 26px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
      box-shadow:
    0 0 0 1px rgba(0,174,255,.38) inset,
    0 0 28px rgba(0,174,255,.38);
}

.neon-btn.primary { background: var(--primary-soft); }
.neon-btn.full    { width: 100%; }


            .btn-clear {
              margin-left: 8px;
              padding: 8px 14px;
              border-radius: 14px;
            
              background: rgba(255, 60, 60, 0.25);   /* red fill */
              border: 1px solid #ff3c3c;             /* red outline */
              color: #ffb3b3;                        /* readable neon red text */
            
              cursor: pointer;
            }
            
            .btn-clear:hover {
              background: rgba(255, 60, 60, 0.45);
            }



.coord-row {
  display: flex;
  gap: 16px;
}

.coord-row .neon-input { flex: 1; }

/* ===============================================================
   RESULTS BOXES
   =============================================================== */

.results {
  padding: 26px 40px;
  border: 1px solid var(--primary);
  border-radius: 16px;
  background: rgba(0,0,0,0.62);
  box-shadow: inset 0 0 14px rgba(0,246,255,0.5);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
        box-shadow:
    0 0 0 1px rgba(0,174,255,.38) inset,
    0 0 28px rgba(0,174,255,.38);
}

@media (max-width: 600px) {
  .results { padding: 22px 26px; }
}

/* ===============================================================
   CURRENT CONDITIONS BOX
   =============================================================== */

#weatherDisplay {
  padding: 24px;
  min-height: 212px;
  border-radius: 16px;
  border: 1px solid var(--primary);
  background: rgba(0,0,0,0.62);
        box-shadow:
    0 0 0 1px rgba(0,174,255,.58) inset,
    0 0 28px rgba(0,174,255,.58);
  overflow: hidden;
}

.map-wrapper {
  position: relative;
  height: 260px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
        box-shadow:
    0 0 0 1px rgba(0,174,255,.58) inset,
    0 0 28px rgba(0,174,255,.58);
}


/* ===============================================================
   CENTERED CONDITION HEADER
   =============================================================== */

.current-condition-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 45px;
  margin-top: 4px;
  margin-bottom: 18px;
}

.current-condition-icon {
  font-size: 3rem;
  line-height: 1;
}

.current-condition-text {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 0 4px rgba(0,255,255,0.3);
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .current-condition-icon { font-size: 2.2rem; }
  .current-condition-text { font-size: 1.5rem; }
}

/* ===============================================================
   HOURLY SLIDER
   =============================================================== */

.hourly-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.hourly-card {
  min-width: 95;
  padding: 14px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.65);
  text-align: center;
  box-shadow: inset 0 0 12px rgba(0,174,255, 1);
  font-family: 'Roboto', sans-serif;
}

.hourly-time {
  font-size: 0.72rem;
  color: var(--primary);
  text-shadow: 0 0 6px rgba(0,255,255,0.4);
  margin-bottom: 6px;
}

.hourly-icon {
  font-size: 1.2rem;
  margin: 2px 0;
}

.hourly-desc {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}

.hourly-temp {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0,255,255,0.4);
}

.hourly-temp[data-level="cold"]    { color: #82c7ff; }
.hourly-temp[data-level="cool"]    { color: #6fffc9; }
.hourly-temp[data-level="mild"]    { color: #f6ff7a; }
.hourly-temp[data-level="warm"]    { color: #ffb347; }
.hourly-temp[data-level="hot"]     { color: #ff6f40; }
.hourly-temp[data-level="extreme"] { color: #ff3b3b; }

.hourly-mini-bar {
  height: 6px;
  width: 100%;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  margin-top: 6px;
  overflow: hidden;
}

.hourly-mini-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.5s ease;
  background: linear-gradient(to right,
    #00b7ff,
    #00fff0,
    #8bff00,
    #ffda00,
    #ff7b00,
    #ff2a00
  );
}

/* ===============================================================
   5-DAY OUTLOOK SLIDER (MATCH HOURLY STYLE)
   =============================================================== */

.weekly-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.forecast-card {
    
  min-width: 215px;
  padding: 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.65);
  text-align: center;
  box-shadow: inset 0 0 14px rgba(0,174,255,0.8);
  font-family: 'Roboto', sans-serif;
}

.forecast-card strong {
  font-size: 0.9rem;
  color: var(--primary);
  text-shadow: 0 0 6px rgba(0,255,255,0.4);
  
}

.forecast-icon {
  font-size: 1.3rem;
  margin: 4px 0;
}

.forecast-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.forecast-range {
  margin-top: 6px;
  font-size: 0.85rem;
  text-shadow: 0 0 6px rgba(0,255,255,0.4);
}

.forecast-range[data-level="cold"]    { color: #82c7ff; }
.forecast-range[data-level="cool"]    { color: #6fffc9; }
.forecast-range[data-level="mild"]    { color: #f6ff7a; }
.forecast-range[data-level="warm"]    { color: #ffb347; }
.forecast-range[data-level="hot"]     { color: #ff6f40; }
.forecast-range[data-level="extreme"] { color: #ff3b3b; }

.weekly-mini-bar {
  height: 6px;
  width: 100%;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.weekly-mini-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.5s ease;
  background: linear-gradient(to right,
    #00b7ff,
    #00fff0,
    #8bff00,
    #ffda00,
    #ff7b00,
    #ff2a00
  );
}

/* ===============================================================
   MAP
   =============================================================== */

.map-wrapper {
  position: relative;
  height: 260px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  
}

.map-frame {
  width: 100%;
  height: 100%;
  display: none;
  box-shadow: 0 0 12px rgba(0,174,255, 1);
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--muted);
}

/* ===============================================================
   FOOTER
   =============================================================== */

.stp-footer {
  text-align: center;
  padding: 30px 0 40px;
  font-size: 0.9rem;
  margin-bottom: 100px;
}

.stp-footer a { color: var(--primary); }

/* ===============================================================
   TEMPERATURE GAUGE (CURRENT CONDITIONS)
   =============================================================== */

#weatherDisplay .temp-gauge {
  position: relative;
  margin-top: 26px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding-top: 22px;
  padding-bottom: 22px;
}

.temp-gauge-labels span {
  display: inline-block;
  width: 40px;
  text-align: center;
}

#weatherDisplay .temp-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--primary);
  opacity: 0.9;
  text-shadow: 0 0 6px var(--primary);
  padding: 0 4px;
}

/* Fahrenheit labels */
.temp-gauge-labels-f {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--primary);
  opacity: 0.9;
  text-shadow: 0 0 6px var(--primary);
  padding: 0 4px;
  margin-top: 4px;
}

#weatherDisplay .temp-gauge-bar {
  width: 100%;
  height: 18px;
  background: linear-gradient(
    to right,
    #0b0175 0%,
    #0b0175 40%,
    #03fc84 65%,
    #03fc0f 70%,
    #fcca03 72.5%,
    #fc5a08 85%,
    #c20a04 95%,
    #c20a04 100%
  );
  border: 1px solid var(--primary);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 18px rgba(0,255,255,0.30);
}

.temp-gauge-fill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 4px;
  left: 0;
  transform: translateX(-50%);
  background: black;
  transition: left 0.45s ease-out;
}

.temp-gauge-arrow {
  position: absolute;
  width: 20px;
  height: 12px;
  left: 0;
  transform: translateX(-50%);
  pointer-events: none;
  filter:
    drop-shadow(0 0 6px rgba(0,255,255,0.8))
    drop-shadow(0 0 10px rgba(255,255,255,0.8));
}

.temp-gauge-arrow polygon {
  fill: #e0faff;
  stroke: var(--primary);
  stroke-width: 1;
}

.top-arrow { top: 0; }
.bottom-arrow { bottom: 0; transform: translateX(-40%); }

.temp-gauge-value {
  position: absolute;
  top: -14px;
  transform: translateX(-50%);
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  color: var(--text);
  opacity: 0.9;
  text-shadow: 0 0 6px black;
}



        #weatherDisplay:has(> p) {
          display: flex;
          align-items: center;
          justify-content: center;
        }


        /* ===============================================================
           STP EMPTY / PLACEHOLDER STATE (GLOBAL, LOCKED)
           =============================================================== */
        
        .stp-empty-placeholder {
          font-family: 'Orbitron', sans-serif;
          font-size: 0.85rem;
          color: var(--muted);
          text-align: center;
        }




/* MOBILE GAUGE LABEL SIZE */
@media (max-width: 600px) {
  #weatherDisplay .temp-gauge-labels,
  .temp-gauge-labels-f {
    font-size: 0.5rem;
  }

  .temp-gauge-arrow {
    width: 24px;
    height: 14px;
  }
}

/* ===============================================================
   DESKTOP RESULT COLUMN OPTIMISATION
   =============================================================== */

@media (min-width: 401px) {
  #weatherDisplay .result-row {
    grid-template-columns: 1fr 1fr !important;
    column-gap: 40px !important;
  }

  #weatherDisplay .label {
    text-align: right;
    padding-right: 14px;
  }

  #weatherDisplay .value {
    text-align: left;
    padding-left: 14px;
  }
}
