/* Global Styles */
html, body {
  margin: 0;
  padding: 0;
  background-color: black;
  color: white;
  font-family: 'Nunito', sans-serif;
}

/* Banner and Navigation */
.banner {
  width: 100vw;
  background-color: rgb(145, 230, 50);
  color: black;
  text-align: center;
  padding: 1rem;
  font-weight: bold;
  box-sizing: border-box;
}

nav {
  width: 100vw;
  background-color: #111;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  border-bottom: 1px solid rgb(145, 230, 50);
  box-sizing: border-box;
}

nav {
  width: 100vw;
  background-color: #111;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0; /* important for divider spacing */
  padding: 1rem;
  border-bottom: 1px solid rgb(145, 230, 50);
  box-sizing: border-box;
}

nav a {
  color: rgb(145, 230, 50);
  text-decoration: none;
  font-weight: bold;
  padding: 0 0.75rem;
  position: relative;
  display: flex;
  align-items: center;
}

nav a + a::before {
  content: "";
  display: block;
  width: 1px;
  height: 1.2em;
  background-color: rgb(145, 230, 50);
  margin-right: 0.75rem;
  transform: translateZ(0);
  will-change: transform;
}




/* Global Donate Button */
.donate-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 1.5rem;
  box-sizing: border-box;
}

.donate-button-wrapper {
  display: inline-block;
}

.donate-button {
  background-color: rgb(145, 230, 50);
  color: black;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border: none;
  text-decoration: none;
  border-radius: 0.25rem;
  display: inline-block;
}

.donate-button:hover {
  background-color: #b1f571;
  cursor: pointer;
}

/* Page Sections */
section {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

section h1, section h2, section h3 {
  color: rgb(145, 230, 50);
  text-align: center;
}

section p {
  margin-bottom: 1.5rem;
}

/* Headline + Scroll Button */
.summary-header {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1rem;
  margin: 2rem 0;
}

.scroll-button {
  background-color: rgb(145, 230, 50);
  color: black;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.2rem;
}

.scroll-button:hover {
  background-color: #b1f571;
}

/* Styled email links */
a.email-link {
  color: rgb(145, 230, 50);
  text-decoration: none;
  font-weight: bold;
}

a.email-link:hover {
  text-decoration: underline;
}

/* Forms */
form label {
  color: rgb(145, 230, 50);
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

form input[type="text"],
form input[type="email"],
form select,
form textarea {
  width: 100%;
  padding: 0.5rem;
  background-color: #111;
  border: 1px solid rgb(145, 230, 50);
  color: white;
  margin-bottom: 1rem;
  box-sizing: border-box;
  border-radius: 4px;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border: 2px solid #b1f571;
  background-color: #1a1a1a;
}

form textarea {
  height: 150px;
}

form button[type="submit"] {
  background-color: rgb(145, 230, 50);
  color: black;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

form button[type="submit"]:hover {
  background-color: #b1f571;
}

/* Story Page Layout */
.stories-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1rem;
  box-sizing: border-box;
}

.form-section,
.wall-section {
  flex: 1;
  min-width: 300px;
  max-width: 48%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .form-section,
  .wall-section {
    max-width: 100%;
  }
}

/* Story Wall Card Style */
.story-card {
  background-color: #111;
  border: 1px solid rgb(145, 230, 50);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.25rem;
  color: white;
}

.story-card p {
  margin: 0.5rem 0;
}

.story-placeholder {
  min-height: 200px;
  padding: 1rem;
}

/* Merch Page Layout */
.merch-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.merch-item {
  width: 300px;
  text-align: center;
}

.merch-item img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgb(145, 230, 50);
  background-color: #111;
  padding: 1rem;
  box-sizing: border-box;
}

/* Form Box (e.g. interest) */
.interest-box {
  background-color: #111;
  border: 1px solid rgb(145, 230, 50);
  padding: 1rem;
  margin-top: 3rem;
}

.interest-box h3 {
  color: rgb(145, 230, 50);
}

.interest-box form {
  display: flex;
  flex-direction: column;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: white;
}

/* Cùran Image Sizing */
.centered-image {
  display: block;
  margin: 2rem auto;
  max-width: 300px;
  height: auto;
}

/* Admin Panel Story Status Tags */
.published-tag {
  display: inline-block;
  background-color: rgb(145, 230, 50);
  color: black;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  margin-right: 0.5rem;
  border-radius: 0.2rem;
}

.not-published-tag {
  display: inline-block;
  background-color: #555;
  color: white;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  margin-right: 0.5rem;
  border-radius: 0.2rem;
}
/* ======================== */
/* === ADMIN PANEL STYLES === */
/* ======================== */

.admin-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-section h2 {
  color: rgb(145, 230, 50);
  margin-bottom: 1rem;
  text-align: center;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 3rem;
  background-color: #111;
  color: white;
}

table.admin-table th,
table.admin-table td {
  border: 1px solid rgb(145, 230, 50);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

table.admin-table th {
  background-color: rgb(145, 230, 50);
  color: black;
  font-weight: bold;
}

table.admin-table td button {
  background-color: rgb(145, 230, 50);
  color: black;
  border: none;
  padding: 0.4rem 0.8rem;
  margin: 0.2rem;
  font-weight: bold;
  border-radius: 0.25rem;
  cursor: pointer;
}

table.admin-table td button:hover {
  background-color: #b1f571;
}
