:root {
  /* ZÁKLAD */
  --bg-main: #0b1220;
  --panel-bg: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.08);

  /* TEXT */
  --text-main: #e5f3ff;
  --text-muted: #9fbcd6;
  --text-soft: #7fa6c7;

  /* GOODWE ACCENT */
  --gw-blue: #7dd3fc;
  --gw-blue-soft: rgba(125, 211, 252, 0.25);
  --gw-blue-glow: rgba(125, 211, 252, 0.45);

  /* HOVER */
  --hover-bg: rgba(125, 211, 252, 0.12);
}

body {
  background: #0b1220;
  color: #e5f3ff;
  font-family: system-ui;
}

.weather-app {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.glass {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  border-radius: 18px;
}

.top-panel {
  display: flex;
  align-items: flex-start;
  /* 🔴 kľúčové */
  justify-content: space-between;
  gap: 24px;
}

.top-panel.glass {
  padding: 22px 26px;
}

.top-left select {
  width: fit-content;
  background: rgba(255,255,255,0.1);
  color: #e5f3ff;
  border-radius: 8px;
  padding: 4px 8px;
  border: none;
}

.top-left .day {
  font-size: 14px;
  opacity: 0.7;
}

.top-left .temp {
  font-size: 36px;
  font-weight: 600;
}

.top-left .feels {
  font-size: 14px;
  opacity: 0.75;
}

.top-left .desc {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  color: #9fd4ff;
}

.top-left {
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.top-panel.glass {
  padding-bottom: 24px;
}

.top-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-right {
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-right: 2px;
}

.hero-icon {
  width: 150px;  
  margin-top: 8px;
  cursor: pointer;
  transition: transform 0.4s ease,
    filter 0.4s ease;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(120, 200, 255, 0.35)); 
  height: auto;
}

body.night .hero-icon {
  filter: drop-shadow(0 0 16px rgba(160, 200, 255, 0.25));
}

/* jemné "plávanie" */
@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

/* hover */
.hero-icon:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 28px var(--gw-blue-glow));
}


.clock {
  font-size: 14px;  
}

.day-card {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px;
}

.forecast-3 {
  display: flex;
  gap: 10px;
}

/* KARTIČKA */
.forecast-card {
  width: 80px;
  padding: 18px 8px 10px;
  /* viac miesta hore kvôli rohom */
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  position: relative;
  /* 🔴 KĽÚČOVÉ */
  cursor: pointer;
}

/* IKONA */
.forecast-card img {
  width: 36px;
  margin: 8px 0 6px;
}

/* DEŇ – ĽAVÝ HORNÝ ROH */
.forecast-card .day {
  position: absolute;
  /* 🔴 */
  top: 6px;
  left: 6px;
  font-size: 12px;
  opacity: 0.75;
}

/* DÁTUM – PRAVÝ HORNÝ ROH */
.forecast-card .date {
  position: absolute;
  /* 🔴 */
  top: 6px;
  right: 6px;
  font-size: 11px;
  opacity: 0.6;
}

/* TEPLOTA */
.forecast-card .temp {
  font-size: 14px;
  font-weight: 500;
}

.forecast-card .day {
  color: var(--text-soft);
}

.forecast-card .date {
  color: var(--text-muted);
}

.forecast-card .temp {
  color: var(--text-main);
}

.forecast-card {
  transition:    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.forecast-card img {
  transition: transform 0.25s ease;
}

.forecast-card:hover img {
  transform: scale(1.08);
}

/* HOVER */
.forecast-card:hover {
  transform: translateY(-4px);
  background: var(--hover-bg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35),
    0 0 14px var(--gw-blue-soft);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: rgba(20,30,45,0.95);
  border-radius: 18px;
  padding: 20px;
  width: 700px;
  max-width: 90%;
}

.btn-forecast {
  background: rgba(125, 211, 252, 0.12);
  color: var(--gw-blue);
  border: 1px solid rgba(125, 211, 252, 0.25);
  transition: all 0.25s ease;
}

.btn-forecast:hover {
  background: rgba(125, 211, 252, 0.22);
  box-shadow: 0 0 12px var(--gw-blue-soft);
}

.top-left .temp {
  cursor: pointer;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.top-left .temp:hover {
  color: var(--gw-blue);
  text-shadow: 0 0 12px var(--gw-blue-soft);
}

/* === MODAL BASE === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  /* default */
  justify-content: center;
  align-items: center;
  z-index: 99999;
  /* 🔥 veľmi dôležité */
}

.modal-content {
  background: rgba(20, 30, 45, 0.95);
  border-radius: 20px;
  padding: 20px;
  width: 820px;
  max-width: 95%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
}

/* === HEADER === */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;  
  margin-bottom: 6px;
    /* bolo 14 */
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gw-blue);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--gw-blue);
}

/* === HOURLY GRID === */
.hourly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
}

/* === HOURLY CARD === */
.hourly-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hourly-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 14px var(--gw-blue-soft);
}

.hourly-time {
  font-size: 13px;
  opacity: 0.75;
}

.hourly-card img {
  width: 34px;
  margin: 6px 0;
}

.hourly-temp {
  font-size: 15px;
  font-weight: 600;
}

.hourly-desc {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 2px;
}

.hourly-table-wrapper { 
  /* scrollbar LEN keď treba */
  border-radius: 14px;
  max-height: calc(90vh - 70px);
    /* header + padding */
    overflow-y: auto;
}

.hourly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hourly-table thead {
  position: sticky;
  top: 0;
  background: rgba(15, 25, 40, 0.95);
  z-index: 2;
}

.hourly-table th {
  text-align: left;
  padding: 2px 8px;
  font-size: 12px;  
  color: var(--gw-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hourly-table td {
  padding: 2px 8px;
    /* 🔴 tu sa to láme */
    font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.hourly-table tr:hover {
  background: rgba(125, 211, 252, 0.08);
}

/* ikona v stĺpci */
.hourly-weather {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hourly-weather img {
  width: 22px;
}

/* zvýraznenie aktuálnej hodiny */
.hourly-now {
  background: rgba(125, 211, 252, 0.15);
}

.hourly-modal {
  max-height: 100vh;
  /* bolo cca 70–75 */
  padding: 14px 18px;
  /* menej paddingu */
}

.hourly-table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.hourly-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.3);
  border-radius: 6px;
}

.hourly-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.hourly-now {
  background: linear-gradient(90deg,
      rgba(125, 211, 252, 0.22),
      rgba(125, 211, 252, 0.10));
  box-shadow: inset 3px 0 0 var(--gw-blue);
}

/* === 10-DŇOVÝ MODAL === */
.forecast10-modal {
  max-height: 85vh;
  overflow: hidden;
  /* scroll len vo vnútri */
  display: flex;
  flex-direction: column;
}

.forecast10-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* 5 kariet v riadku */
  gap: 14px;

  max-height: calc(85vh - 70px);
  overflow-y: auto;
}

.forecast10-card {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03));
  border-radius: 16px;
  padding: 12px 14px;
  min-height: 140px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition: transform .25s ease, box-shadow .25s ease;
}

.forecast10-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.25);
}

.f10-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: .85;
}

.f10-day {
  font-weight: 600;
}

.f10-date {
  opacity: .7;
}

.forecast10-card img {
  width: 42px;
  margin: 6px auto;
}

.f10-temp {
  font-size: 16px;
  font-weight: 600;
}

.f10-temp .min {
  opacity: .65;
  margin-left: 4px;
}

.f10-extra {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: .8;
}

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

.f10-extra {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 6px;
}

.forecast10-card img {
  width: 52px;
  margin: 8px auto 6px;
}

.forecast10-card img {
  width: 58px;
}

.current-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 6px 14px;
  max-width: 260px;
}

.current-stats-grid .stat {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 14px;
  color: #e5e7eb;
}

.current-stats-grid .stat span {
  opacity: .75;
}

.current-stats-grid strong {
  font-weight: 600;
}

.current-stats-grid small {
  opacity: .7;
  font-size: 12px;
}

.current-stats-grid .label {
  font-size: 11px;
  opacity: .55;
  margin-left: auto;
}

.btn-forecast10 {
  cursor: pointer;
}

.charts-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.chart-card {
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px rgba(125,211,252,0.08);
}

.chart-card.full {
  grid-column: span 2;
}

.chart-card h3 {
  font-size: 14px;
  font-weight: 500;
  opacity: .85;
  margin-bottom: 6px;
}

.chart-card canvas {
  width: 100% !important;
  height: 180px !important;
}

.chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
}

.chart-scroll canvas {
  min-width: 900px;   /* 👈 kľúčové – graf musí byť širší */
  height: 220px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.6);
  display: none;
}

.modal-content {
  position: relative;
  z-index: 1001;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  pointer-events: auto;
}

.graph-switch {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
}

.graph-switch .switch-btn {
  background: rgba(255,255,255,0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}

.graph-switch .switch-btn:hover {
  background: rgba(255,255,255,0.1);
}

.graph-switch .switch-btn.active {
  background: rgba(56,189,248,0.15);   /* GoodWe blue, jemne */
  color: #38bdf8;
  border-color: rgba(56,189,248,0.35);
  box-shadow: inset 0 0 0 1px rgba(56,189,248,0.25);
}

.city-box {
  position: relative;
  max-width: 260px;
}

.city-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: #111827;
  border: 1px solid #1f2937;
  color: #e5e7eb;
}

.city-results {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 10px;
  overflow: hidden;
  z-index: 50;
  display: none;
}

.city-result {
  padding: 8px 10px;
  cursor: pointer;
}

.city-result:hover {
  background: #1f2937;
}

.city-input.loading {
  opacity: 0.5;
  pointer-events: none;
}

.radar-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    z-index: 9999;
}

.radar-box {
    width: 90vw;
    height: 80vh;
    margin: auto;
    background: #0e1624;
    border-radius: 12px;
    overflow: hidden;
}

#radarMap {
    width: 100%;
    height: 100%;
}

.radar-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #111c2e;
    color: #7cf3b0;
}

#btnRadar {
    cursor: pointer;
}

.hero-weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.current-temp-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.moon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

#moonIcon {
  font-size: 22px;
  line-height: 1;
}

#moonPhase {
  font-size: 12px;
  opacity: 0.85;
}

.moon-full #moonIcon {
  color: #ff5a5a;
  text-shadow:    0 0 6px rgba(255, 90, 90, 0.8),
    0 0 12px rgba(255, 90, 90, 0.6);
}


/* SPLN efekt */
.moon-full #moonIcon {
  color: #ff6b6b;
  text-shadow: 0 0 12px rgba(255, 80, 80, 0.9);
}


.hero-desc {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.85;
  text-align: center;
}


.current-temp-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.current-temp {
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
}

.moon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.moon-icon {
  font-size: 22px;
  line-height: 1;
}

/* SPLN – červený glow */
.moon-full .moon-icon {
  filter: drop-shadow(0 0 6px rgba(255, 80, 80, 0.9));
}

.moon-phase {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
}

.current-temp-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-temp {
  font-size: 42px;
  font-weight: 700;
}

.moon-box {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.moon-icon {
  font-size: 22px;
}

.moon-count {
  font-size: 13px;
  opacity: 0.85;
  white-space: nowrap;
}

.moon-phase {
  font-size: 13px;
  opacity: 0.8;
  margin-left: 6px;
}

/* zvýraznenie SPLNU */
.moon-full .moon-icon {
  filter: drop-shadow(0 0 6px #ff6b6b);
}

/* overlay */
.moon-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 30, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* obsah */
.moon-modal-content {
  background: linear-gradient(180deg, #0f1f33, #0b1624);
  border-radius: 14px;
  max-width:640px;
  width:90%;
  padding:20px;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}

/* hlavička */
.moon-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-weight: 600;
  color: #9fd3ff;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* krížik */
.moon-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #9fd3ff;
  cursor: pointer;
}

.moon-close:hover {
  color: #ff6b6b;
}

/* zoznam dní */
.moon-calendar {
  padding: 12px 14px;
  overflow-y: auto;
  max-height: 60vh;
  font-size: 14px;
}

/* riadky */
.moon-calendar div {
  padding: 4px 0;
  opacity: 0.9;
}

/* SPLN zvýraznený */
.moon-calendar .full {
  color: #ff6b6b;
  font-weight: 600;
}

.moon-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.moon-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 10px;
}

.current-temp-wrap {
  display: flex;
  align-items: flex-start;
  /* teplota ostane hore */
  gap: 10px;
}

/* VEĽKÁ TEPLOTA – fixná */
.current-temp {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

.current-temp-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* TEPLota sa už NIKDY NEPOHNE */
.current-temp {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}

.moon-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  cursor: pointer;
}

.moon-pill {
  display: inline-block;  
  border-radius: 999px;  
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.moon-pill.is-full {
  background: rgba(255, 80, 80, 0.25);
  box-shadow: 0 0 10px rgba(255, 80, 80, 0.6);
}

.moon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
}

.moon-row.is-full {
    background: rgba(255, 80, 80, .15);
    color: #ff6b6b;
    font-weight: 600;
}

.moon-max {
    margin-left: 8px;
    font-size: 12px;
    opacity: .9;
}

.moon-date {
    opacity: .85;
}

.moon-icon {
    font-size: 20px;
    margin-right: 6px;
}

.moon-percent {
    opacity: 0.7;
    font-size: 12px;
    margin-left: 6px;
}

.moon-pill {
    display: flex;
    align-items: center;
}

.moon-pill{
display:flex;
align-items:center;
gap:8px;
}

#moonSVG{
filter: drop-shadow(0 0 4px rgba(255,255,200,0.5));
}

.moon-percent{
opacity:0.7;
font-size:12px;
margin-left:6px;
}

.moon-stack{
display:flex;
flex-direction:column;
margin-left:12px;
gap:2px;
}

.moon-icon{
font-size:18px;
}

.full-moon{
color:#ffd86b;
text-shadow:0 0 6px rgba(255,220,120,0.6);
}

.moon-calendar{
display:grid;
grid-template-columns:repeat(6,1fr);
gap:10px;
margin-top:10px;
}

.moon-day{
background:rgba(255,255,255,0.04);
border-radius:8px;
padding:8px;
text-align:center;
font-size:13px;
}

.moon-calendar{
display:grid;
grid-template-columns:repeat(6,1fr);
gap:12px;
overflow-x:hidden;
}

.moon-modal-content{
max-width:520px;
overflow:hidden;
}

.moon-today{
border:1px solid #4da6ff;
box-shadow:0 0 6px rgba(80,150,255,0.5);
}

#moonDisk{
filter:drop-shadow(0 0 6px rgba(255,230,140,0.6));
}

.moon-pill{
display:flex;
align-items:center;
gap:8px;
}

#moonDisk{
filter: drop-shadow(0 0 5px rgba(255,230,120,0.6));
}

.moon-calendar{
display:grid;
grid-template-columns:repeat(6,1fr);
gap:14px;
}

.moon-pill{
display:flex;
align-items:center;
gap:8px;
}

.moon-stack{
display:flex;
flex-direction:column;
margin-left:14px;
gap:4px;
}

#moonText{
display:flex;
align-items:center;
gap:6px;
}

/* dnešný deň */
.moon-today{
border:1px solid #4da6ff;
box-shadow:0 0 8px rgba(80,150,255,0.6);
}

/* spln */
.moon-full{
background:rgba(255,220,120,0.08);
border:1px solid rgba(255,220,120,0.6);
}

.moon-day .moon-icon{
animation: moonGlow 6s ease-in-out infinite;
}

@keyframes moonGlow{

0%{
transform:scale(1);
filter:brightness(1);
}

50%{
transform:scale(1.05);
filter:brightness(1.2);
}

100%{
transform:scale(1);
filter:brightness(1);
}

}

.moon-percent{
opacity:.7;
font-size:.9em;
margin-left:4px;
}

#moonDisk{
margin-right:6px;
vertical-align:middle;
}

.moon-pill{
display:flex;
align-items:center;
gap:6px;
}

.full-moon #moonDisk{
filter: drop-shadow(0 0 6px #ffeaa7);
}

.moon-pill{
display:flex;
align-items:center;
gap:6px;
}

.moon-percent{
opacity:.7;
font-size:.9em;
}

#moonCountPill{
opacity:.85;
font-size:.9em;
}

.moon-cycle{
display:flex;
align-items:center;
gap:6px;
margin-top:4px;
font-size:12px;
opacity:.9;
}

.moon-progress{
flex:1;
height:4px;
background:rgba(255,255,255,0.12);
border-radius:4px;
overflow:hidden;
}

#moonProgressBar{
height:100%;
width:0%;
background:linear-gradient(90deg,#888,#ffd86b);
border-radius:4px;
transition:width .5s ease;
}

.moon-cycle{
display:flex;
align-items:center;
gap:6px;
width:150px;
margin-top:4px;
font-size:12px;
opacity:.9;
}

.moon-cycle span{
font-size:13px;
line-height:1;
}

.moon-progress{
flex:1;
height:4px;
background:rgba(255,255,255,0.15);
border-radius:4px;
position:relative;
overflow:visible;
}

#moonProgressBar{
height:100%;
width:0%;
background:linear-gradient(90deg,#6b7280,#fcd34d);
border-radius:4px;
transition:width .5s ease;
}

#moonTracker{
position:absolute;
top:50%;
transform:translate(-50%,-55%);
font-size:15px;
line-height:1;
pointer-events:none;
}

#moonTracker svg{
display:block;
}

.full-moon #moonTracker{
transform:translate(-50%,-50%) scale(1.1);
}

.moon-alert{
position:fixed;
top:20px;
right:20px;

background:linear-gradient(135deg,#1e293b,#0f172a);
color:white;

padding:14px 18px;
border-radius:12px;

box-shadow:0 10px 30px rgba(0,0,0,0.5);

font-size:14px;
z-index:9999;

transform:translateY(-80px);
opacity:0;

transition:all .4s ease;
}

.moon-alert.show{
transform:translateY(0);
opacity:1;
}

#moonAlert{
position:fixed;
top:20px;
left:50%;
transform:translateX(-50%);
background:#0b1220;
border:1px solid rgba(255,216,107,0.4);
color:#ffd86b;
padding:8px 18px;
border-radius:10px;
font-size:14px;
box-shadow:0 0 15px rgba(255,216,107,0.25);
z-index:9999;
}

.moonlight-mode {
  position: relative;
}

.moonlight-mode::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 50% -20%,
      rgba(255, 230, 150, 0.12),
      rgba(255, 230, 150, 0.05) 40%,
      transparent 70%);
  z-index: 1;
  animation: moonGlow 6s ease-in-out infinite alternate;
}

@keyframes moonGlow {
  0% {
    opacity: .6
  }

  100% {
    opacity: 1
  }
}

.sun-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 300px;
  margin: 10px auto 0;
  font-size: 13px;
}

.sunrise,
.sunset {
  display: flex;
  gap: 6px;
  align-items: center;
}

.sun-label {
  color: var(--text-muted);
}

.day-length {
  color: var(--gw-blue);
  font-weight: 500;
}

.radar-legend {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 18px;
    padding: 6px 14px;

    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);

    border-radius: 8px;
    font-size: 12px;
    color: #e5f3ff;

    z-index: 500;
}

.radar-legend span {
    position: relative;
}

.radar-legend span::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    width: 14px;
    height: 4px;
    border-radius: 2px;
}

.radar-legend span:nth-child(1)::before {
    background: #2b7bff;
}

.radar-legend span:nth-child(2)::before {
    background: #00bfff;
}

.radar-legend span:nth-child(3)::before {
    background: #00ff80;
}

.radar-legend span:nth-child(4)::before {
    background: #ffff00;
}

.radar-legend span:nth-child(5)::before {
    background: #ff8000;
}

.radar-legend span:nth-child(6)::before {
    background: #ff0000;
}

.radar-time {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);

    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);

    padding: 6px 12px;
    border-radius: 8px;

    font-size: 13px;
    color: #e5f3ff;

    z-index: 500;
}

.radar-timeline {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    height: 20px;
    z-index: 500;
}

.radar-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    position: relative;
}

.radar-track span {
    position: absolute;
    top: 8px;
    font-size: 11px;
    color: #9fbcd6;
    transform: translateX(-50%);
}

.radar-pointer {
    position: absolute;
    top: -2px;
    width: 0;
    height: 0;

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #7dd3fc;

    transition: left 0.3s linear;
}

.radar-switch {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 600;
}

.radar-switch button {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5f3ff;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.radar-switch button.active {
    background: #7dd3fc;
    color: #081018;
}