/* Reset i podstawowe style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #e8f0fe;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  background-color: #0077cc;
  color: white;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-title {
  font-weight: 700;
  font-size: 1.8rem;
}

.current-date {
  margin-top: 8px;
  font-weight: 400;
  font-size: 1rem;
  opacity: 0.9;
}

.nav {
  background: #005fa3;
  box-shadow: inset 0 -3px 5px rgba(255,255,255,0.1);
}

.nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

.nav ul li {
  margin: 0 15px;
}

.nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 15px 0;
  display: block;
}

.nav ul li a:hover,
.nav ul li a:focus {
  text-decoration: underline;
}

.main-content {
  flex-grow: 1;
  padding: 30px 0;
}

.weather-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.weather-section h2 {
  margin-bottom: 15px;
  color: #004080;
}

.weather-today,
.weather-night {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.2rem;
  font-weight: 500;
}

.temp {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0077cc;
}

.week-forecast {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.day-forecast {
  flex: 1 1 30%;
  background: #f5faff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: inset 0 0 8px #a9d1fc;
  text-align: center;
}

.day-forecast h3 {
  margin-bottom: 10px;
  color: #003366;
}

/* Ikony pogodowe - proste kształty SVG z CSS */

.icon {
  width: 50px;
  height: 50px;
  position: relative;
  flex-shrink: 0;
}

/* Słońce - prosta żółta tarcza */
.icon.sunny::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #ffd54f, #fbc02d);
  border-radius: 50%;
  box-shadow:
    0 0 8px 2px #fdd835;
}

/* Chmura */
.icon.cloudy::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 5px;
  width: 40px;
  height: 25px;
  background: #bbb;
  border-radius: 50% / 40%;
  box-shadow:
    15px 0 #bbb,
    25px 10px #bbb;
}

/* Częściowe zachmurzenie: słońce + chmura */
.icon.partly-cloudy::before {
  content: '';
  display: block;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle at center, #ffd54f, #fbc02d);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow:
    0 0 5px 1px #fdd835;
}

.icon.partly-cloudy::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 20%;
  width: 55%;
  height: 40%;
  background: #bbb;
  border-radius: 50% / 40%;
  box-shadow:
    15px 0 #bbb,
    25px 10px #bbb;
}

/* Deszcz */
.icon.rain::before {
  content: '';
  position: absolute;
  top: 35%;
  left: 5px;
  width: 40px;
  height: 25px;
  background: #99badd;
  border-radius: 50% / 40%;
  box-shadow:
    15px 0 #99badd,
    25px 10px #99badd;
}

.icon.rain::after {
  content: '';
  position: absolute;
  top: 65%;
  left: 12px;
  width: 8px;
  height: 15px;
  background: #3a70a0;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow:
    14px 0 #3a70a0,
    28px 0 #3a70a0;
}

/* Burze */
.icon.storm::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 5px;
  width: 40px;
  height: 25px;
  background: #888;
  border-radius: 50% / 40%;
  box-shadow:
    15px 0 #888,
    25px 10px #888;
}

.icon.storm::after {
  content: '';
  position: absolute;
  top: 65%;
  left: 22%;
  width: 6px;
  height: 20px;
  background: gold;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(20deg);
  box-shadow:
    15px 0 gold;
}

/* Sekcja ostrzeżenia */
.alerts-section {
  background: #ffdddd;
  border: 2px solid #cc0000;
  color: #a80000;
}

/* Stopka */
.footer {
  background: #0077cc;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
  margin-top: auto;
}

/* Responsywność */
@media (max-width: 768px) {
  .week-forecast {
    flex-direction: column;
  }

  .day-forecast {
    flex: 1 1 100%;
    margin-bottom: 15px;
  }

  .weather-today,
  .weather-night {
    flex-direction: column;
    gap: 10px;
  }

  .temp {
    font-size: 3rem;
  }
}
