
:root {
  --bg-gradient: linear-gradient(180deg, #fff2cc, #ffe0a3, #ffd580);
  --text-color: #4b3b1a;
  --accent: #f4a261;
  --muted: #8b6f34;
  --link-color: #7a4c15;
  --header-bg: rgba(255, 240, 200, 0.95);
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
  transition: background 1s ease, color 0.8s ease;
}

.mode-input { position: absolute; left: -9999px; }
header {
  text-align: center;
  background: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.nav-links a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.3);
  color: #fff;
  transform: scale(1.05);
}
.mode-switch {
  position: fixed;
  top: 80px;
  right: 25px;
  display: flex;
  gap: 10px;
  z-index: 2000;
}

.mode-switch label {
  cursor: pointer;
  font-size: 1.4rem;
  transition: transform 0.3s, text-shadow 0.3s;
}

.mode-switch label:hover {
  transform: scale(1.2);
}

#day:checked ~ .mode-switch label[for="day"] {
  transform: scale(1.3);
  text-shadow: 0 0 8px gold;
}

#night:checked ~ .mode-switch label[for="night"] {
  transform: scale(1.3);
  text-shadow: 0 0 10px goldenrod;
}
#night:checked ~ main,
#night:checked ~ footer {
  --bg-gradient: linear-gradient(180deg, #2e261a, #3b2e1e, #1d160f);
  --text-color: #fff0c2;
  --accent: #e9c46a;
  --muted: #c6a75e;
  --link-color: #f4a261;
  --header-bg: rgba(45, 35, 20, 0.95);
  background: var(--bg-gradient);
  color: var(--text-color);
}

#night:checked ~ header {
  background: var(--header-bg);
}
main {
  padding: 30px 20px 60px;
  text-align: center;
  background: var(--bg-gradient);
  color: var(--text-color);
  transition: background 1s ease, color 0.8s ease;
}

h2 {
  color: var(--accent);
  margin-top: 10px;
}

p {
  max-width: 850px;
  margin: 10px auto;
  line-height: 1.7;
  font-size: 1rem;
}

.news-img {
  width: 80%;
  max-width: 600px;
  margin: 15px auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.news-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}
.news-list {
  list-style: none;
  max-width: 700px;
  margin: 20px auto;
  padding: 0;
}

.news-list li {
  background: rgba(255,255,255,0.2);
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.4s ease;
}

.news-list li:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.03);
}

blockquote {
  max-width: 720px;
  margin: 40px auto;
  padding: 18px;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  font-style: italic;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 20px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.1);
}

@media (max-width: 700px) {
  .nav-links { flex-direction: column; }
  .mode-switch { top: 65px; right: 15px; }
}
