/* Base colours */
:root {
  --background-color: #ffffff;
  --text-color: #333333;
  --primary-color: #c62828; /* red tone */
  --secondary-color: #2e7d32; /* green tone */
}

/* Dark mode overrides set via body.dark */
body.dark {
  --background-color: #121212;
  --text-color: #f5f5f5;
  --primary-color: #e53935;
  --secondary-color: #43a047;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: #ffffff;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover {
  text-decoration: underline;
}

/* Theme toggle button */
#theme-toggle {
  background: none;
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

#theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

main {
  padding: 2rem 1rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* Hero photo styling */
.hero-photo {
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tagline {
  font-size: 1.4rem;
  color: var(--secondary-color);
}

.intro {
  max-width: 600px;
  margin: 1rem auto;
  font-size: 1rem;
}

/* Suggestion section */
/* Suggestion section: use a light tint rather than a solid box to feel less boxy */
.suggestion-section {
  max-width: 600px;
  margin: 2rem auto;
  background-color: #f1f8f4;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--secondary-color);
  color: var(--text-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Dark mode suggestion section retains a subtle tint */
body.dark .suggestion-section {
  background-color: #162a19;
  border-color: var(--secondary-color);
  color: var(--text-color);
}

.suggestion-section h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.suggestion-section label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.suggestion-section textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  resize: vertical;
  font-size: 1rem;
  font-family: inherit;
}

.suggestion-section button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  border: none;
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.suggestion-section button:hover {
  background-color: #b71c1c;
}

.status-message {
  margin-top: 1rem;
  font-weight: 600;
}

/* Events highlights */
/* Events highlights: remove solid background for a lighter feel */
.events-highlights {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  border-left: 4px solid var(--secondary-color);
  background-color: transparent;
  color: var(--text-color);
}

body.dark .events-highlights {
  background-color: transparent;
  border-left-color: var(--secondary-color);
}

.events-highlights h2 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.events-highlights ul {
  list-style: none;
  padding-left: 1rem;
}

.events-highlights ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.events-highlights ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  line-height: 1;
  font-size: 1.2rem;
}

.source {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #666666;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--primary-color);
  color: #ffffff;
  margin-top: 2rem;
}

/* Admin page styles */
/* Admin section: lighten appearance */
.admin-section {
  max-width: 600px;
  margin: 2rem auto;
  background-color: #f1f8f4;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--secondary-color);
  color: var(--text-color);
}

body.dark .admin-section {
  background-color: #162a19;
  border-color: var(--secondary-color);
  color: var(--text-color);
}

.admin-section h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.admin-section input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.admin-section button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  border: none;
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.admin-section button:hover {
  background-color: #b71c1c;
}

.admin-section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.admin-section ul li {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .tagline {
    font-size: 1.2rem;
  }
}