@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap");

:root {
  --bg-color: #000000;
  --accent: #8a2be2;
  --glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Orbitron", sans-serif;
}
body {
  width: 100vw;
  height: 100vh;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* FOG SYSTEM 2.0 (BRISA SUAVE) */
.fog-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  overflow: hidden;
}
.fog-layer {
  position: absolute;
  width: 300%;
  height: 300%;
  top: -100%;
  left: -100%;
  filter: blur(90px);
}
.layer-1 {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 60%
  );
  animation: brisa 50s linear infinite;
}
.layer-2 {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 50%
  );
  animation: brisa 80s linear infinite reverse;
  opacity: 0.7;
}
.layer-3 {
  background: radial-gradient(circle, var(--accent) 0%, transparent 40%);
  animation: brisa 100s ease-in-out infinite;
  opacity: 0.2;
  mix-blend-mode: color-dodge;
}

@keyframes brisa {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-3%, 3) rotate(180deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* PROGRESS BAR */
.progress-container {
  position: fixed;
  top: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.03);
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  transition: width 1s linear;
}
.progress-info {
  position: absolute;
  top: 15px;
  left: 30px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 4px;
}

/* HEADER INFO */
.top-info {
  position: fixed;
  top: 40px;
  right: 40px;
  text-align: right;
  z-index: 10;
}
.location-badge {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 5px;
}
.dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.weather-display {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.w-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}
.w-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
#temperatura {
  font-size: 1.5rem;
  font-weight: 900;
}
#climaDescricao {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}
.period-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  margin-top: 10px;
  letter-spacing: 4px;
}

/* RELÓGIO */
.main-display {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.clock-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.clock-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin-bottom: 5vh;
}

.card {
  background: linear-gradient(180deg, #121212 0%, #020202 100%);
  border: 1px solid var(--border);
  border-radius: 1.2vw;
  width: 17vw;
  max-width: 240px;
  height: 14vw;
  max-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
}

.number {
  font-size: clamp(3rem, 9vw, 8.5rem);
  font-weight: 900;
  color: #fff;
  z-index: 2;
}
.vinco-linha {
  position: absolute;
  width: 100%;
  height: 1.5px;
  background: rgba(0, 0, 0, 0.9);
  top: 50%;
  z-index: 5;
}
.dots {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
  font-weight: 900;
  opacity: 0.7;
}

.date-group {
  text-align: center;
}
.full-date {
  font-size: clamp(0.9rem, 2vw, 1.5rem);
  letter-spacing: 0.5vw;
  margin-bottom: 1.2vh;
  color: #ccc;
}
.day-name {
  font-size: clamp(0.6rem, 1.2vw, 0.9rem);
  color: var(--accent);
  letter-spacing: 1.2vw;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
}

/* WORLD CLOCK */
.world-clock {
  position: fixed;
  bottom: 5vh;
  width: 85vw;
  max-width: 1100px;
  background: var(--glass);
  backdrop-filter: blur(30px);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 2.2vh 1vw;
}
.world-grid {
  display: flex;
  justify-content: space-around;
}
.tz-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  border-right: 1px solid var(--border);
}
.tz-item:last-child {
  border-right: none;
}
.label {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 3px;
  margin-bottom: 6px;
}
.time {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  opacity: 0.85;
}

/* SIGNATURE */
.signature {
  position: fixed;
  bottom: 15px;
  right: 30px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  letter-spacing: 3px;
  font-weight: 400;
  transition: 0.3s;
}
.signature:hover {
  color: var(--accent);
  opacity: 0.8;
}

/* CONFIG PANEL */
.settings-trigger {
  position: fixed;
  bottom: 25px;
  left: 25px;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: 0.5s;
  z-index: 1000;
}
.settings-trigger:hover {
  color: var(--accent);
  transform: rotate(90deg);
  filter: drop-shadow(0 0 15px var(--accent));
}

.settings-panel {
  position: fixed;
  bottom: 90px;
  left: 25px;
  width: 330px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(50px);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 30px;
  display: none;
  z-index: 1001;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.95);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}
.panel-header h3 {
  font-size: 0.8rem;
  letter-spacing: 4px;
  font-weight: 900;
}
#closeSettings {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  opacity: 0.5;
}

.config-item {
  margin-bottom: 25px;
}
.config-item label {
  display: block;
  font-size: 0.65rem;
  color: #555;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.check-label {
  display: flex !important;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  color: #eee !important;
  font-size: 0.75rem !important;
}

input[type="text"],
input[type="range"] {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #222;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
}
input[type="color"] {
  width: 100%;
  height: 50px;
  border: none;
  background: none;
  cursor: pointer;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}

.flip-animation {
  animation: cardPulse 0.4s ease-out;
}
@keyframes cardPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}
