@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
  --bg: #0b0c10;
  --fg: #c5c6c7;
  --accent: #ff6600;
  --accent-2: #00e6d7;
  --card-bg: rgba(20, 22, 28, 0.6);
  --blur: 10px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', 'Orbitron', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.light {
  --bg: #f5f5f5;
  --fg: #111;
  --accent: #ff6600;
  --accent-2: #00b3ff;
  --card-bg: rgba(255,255,255,0.6);
}

#mirror { padding: 30px; }

#top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  text-shadow: 0 0 5px var(--accent);
}

#themeToggle {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 10px var(--accent);
  transition: 0.3s all;
}
#themeToggle:hover { box-shadow: 0 0 20px var(--accent-2); }

#weather-section {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(var(--blur));
  background: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px var(--accent);
}

#weather-section img { width: 100px; height: 100px; }
#weather-section div { font-size: 1em; margin: 2px 0; }

.sun-progress-bg {
  width: 100%;
  height: 8px;
  background: #222;
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
}
#sunProgress { 
  height: 100%; 
  background: var(--accent); 
  width: 0%; 
  transition: width 0.5s ease-in-out; 
}

#forecast { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; }
.forecast-card {
  background: var(--card-bg);
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  width: 80px;
  box-shadow: 0 0 10px var(--accent-2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.forecast-card:hover { 
  transform: scale(1.1); 
  box-shadow: 0 0 20px var(--accent-2);
}
.forecast-card img { width: 50px; height: 50px; }

#quote {
  margin-top: 30px;
  font-style: italic;
  font-size: 1.2em;
  text-align: center;
  text-shadow: 0 0 5px var(--accent-2);
  animation: fadeInQuote 2s ease-in-out;
}
@keyframes fadeInQuote {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

#newsList { margin-top: 25px; list-style: none; padding: 0; }
#newsList li {
  margin-bottom: 10px;
  padding: 5px 10px;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,0.3);
  border-radius: 5px;
  transition: 0.3s all;
  font-family: 'Roboto', sans-serif;
}
#newsList li:hover {
  background: rgba(0,0,0,0.6);
  box-shadow: 0 0 10px var(--accent-2);
}

#lastUpdated { margin-top: 15px; font-size: 0.9em; text-align: right; color: var(--accent-2); }
#error { margin-top: 10px; color: #ff4d4d; font-weight: bold; text-align: center; text-shadow: 0 0 5px red; }

#time, #date {
  font-size: 2em;
  text-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent-2), 0 0 20px var(--accent);
  font-family: 'Orbitron', sans-serif;
}

@media (max-width: 768px) {
  #weather-section { flex-direction: column; align-items: flex-start; }
  #forecast { justify-content: center; }
}
