/* ===== Theme Variables ===== */
:root {
  --bg-color: #f8f8f8;
  --text-color: #333;
  --muted-text: #666;
  --card-bg: #fff;
  --card-text: #333;
  --border-color: #ccc;
  --hero-bg: linear-gradient(180deg, #fafafa 0%, #eaeaea 100%);
  --footer-bg: #f0f0f0;
  --text-submission-color: #333;
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --muted-text: #bbb;
  --card-bg: #1e1e1e;
  --card-text: #f5f5f5;
  --border-color: #444;
  --hero-bg: linear-gradient(180deg, #1a1a1a 0%, #222 100%);
  --footer-bg: #1a1a1a;
  --text-submission-color: #333;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Overall style */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--hero-bg);
}

.logo {
  width: 25vw;      /* 25% of viewport width */
  max-width: 175px; /* won’t exceed 150px */
  aspect-ratio: 1/1;
  object-fit: cover;   /* ensures the image fills the circle neatly */
  border-radius: 50%;  /* makes it circular */
  border: 2px solid var(--border-color);  /* optional: subtle border */
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.0rem;
  /*letter-spacing: 1px;*/
  color: var(--text-color);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted-text);
  margin-top: 0.5rem;
}

/* Content */
.content {
  flex: 1;
  width: 100%;
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  overflow-x: hidden;
}


.content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.content p {
  font-size: 1rem;
  color: var(--muted-text);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--footer-bg);
  color: var(--muted-text);
  font-size: 0.9rem;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .content {
    margin: 1.5rem auto;
  }
}

/*
@media (prefers-color-scheme: dark) {
  body {
    background-color: #111;
    color: #eee;
  }

  .hero {
    background: linear-gradient(180deg, #1a1a1a 0%, #222 100%);
  }

  .hero h1 {
    color: #fafafa;
  }

  .subtitle {
    color: #bbb;
  }

  .content h2 {
    color: #fafafa;
  }

  .content p {
    color: #ccc;
  }

  footer {
    background-color: #1a1a1a;
    color: #999;
  }

  .logo {
    border-color: #555;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
  }
}
*/

/* Buttons */
.mode-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.mode-toggle:hover {
  background-color: var(--border-color);
  transform: scale(1.05);
}


.events {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

/* ========== Event Card Styles ========== */
.event-card {
  background-color: var(--card-bg);
  color: var(--card-text);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  padding: 1rem;
  text-align: left;
}

.event-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.event-card h3 {
  margin-bottom: 0.5rem;
}

.event-card p {
  margin: 0.25rem 0;
}

#event-list {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.event-card {
  flex: 0 0 300px; /* card width */
  scroll-snap-align: start;
  background: var(--card-bg, #fff);
  color: var(--card-text, #000);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.no-events {
  flex: 1;
  text-align: center;
  color: var(--text-color, #ccc);
  font-style: italic;
}


#event-list::-webkit-scrollbar {
  display: none;
}
#event-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/*==== Event Submissions ===*/

.event-submission {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 12px;
  background-color: var(--card-bg, #fff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-submission h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.event-submission form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-submission label {
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  font-weight: 500;
}

.event-submission input,
.event-submission textarea {
  padding: 0.6rem;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 6px;
  background-color: var(--input-bg, #f9f9f9);
  color: var(--text-submission-color);
}

.event-submission button {
  align-self: center;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  background-color: var(--accent-color, #007bff);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.event-submission button:hover {
  background-color: var(--accent-hover, #0056b3);
}
