/* General styles */
body {
  margin: 0;
  font-family: 'Inconsolata', monospace;
  background-color: #f7f7f7;
}

html {
  overflow-y: scroll;
}

/* Top bar */
.top-bar {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 15px 50px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 100;
  justify-content: space-between;
}

.logo {
  position: absolute;
  left: 50px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 30px;
  flex-grow: 1;
  justify-content: center;
}

.nav-links a {
  margin: 0 15px;
  text-decoration: none;
  color: #000;
  font-size: clamp(0.8rem, 2.5vw, 1rem); /* scales with viewport */
  white-space: nowrap;
}

.nav-links a.active {
  text-decoration: underline;
}

/* White stripe for main content */
main.blog, main.gallery, main.contact {
  width: 80%;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px 30px;
  box-sizing: border-box;
}

/* Blog entries */
.entry {
  margin-bottom: 30px;
}

.entry h2 {
  margin-top: 0;
}

.entry-date {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: #555;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* Gallery */
.panel {
  margin-bottom: 50px;
}

.panel img {
  width: 100%;
  height: auto;
  cursor: pointer;
  display: block;
  max-height: 90vh;
  object-fit: contain;
}

/* Contact Page */
.contact-title {
  text-align: center;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin: 10px 0 5px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 0;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.contact-form button {
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #333;
}

/* Donations */
.donations {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.donations h2 {
  margin-bottom: 10px;
}

.donations p {
  margin-bottom: 20px;
  color: #555;
}

.donate-button {
  display: inline-block;
  padding: 12px 25px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.donate-button:hover {
  background: #333;
}

/* Lightbox */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

#lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  background: #fff;
  display: flex;
  max-width: 90%;
  max-height: 80%;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  overflow: hidden;
}

.lightbox-left, .lightbox-right {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.lightbox-left {
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
}

.lightbox-left img {
  max-width: 500px;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-right {
  flex-grow: 1;
  overflow-y: auto;
}

#closeBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  main.blog, main.gallery, main.contact {
    width: 95%;
    padding: 20px;
  }

  .top-bar {
    padding: 10px 15px;
  }

  .logo {
    font-size: clamp(1rem, 5vw, 1.5rem);
    position: relative;
    left: 0;
  }

  .nav-links {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .nav-links a {
    margin: 0 5px;
    font-size: clamp(0.7rem, 4vw, 1rem);
  }

  .lightbox-content {
    flex-direction: column;
    max-width: 95%;
    max-height: 90%;
  }

  .lightbox-left img {
    max-width: 100%;
    max-height: 50vh;
  }

  .lightbox-right {
    margin-top: 20px;
    max-height: 50vh;
  }

  #closeBtn {
    top: 5px;
    right: 5px;
    font-size: 1.5rem;
  }
}

#secret-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

#secret-buttons button:disabled {
  background: grey;
  cursor: not-allowed;
  color: #fff;
}

.secret-dashboard-btn {
  display: inline-block;
  margin-bottom: 10px; /* spacing below button */
  margin-left: auto;
  margin-right: 0;
}

@media (max-width: 500px) {
  .secret-dashboard-btn {
    margin-top: 8px; /* extra spacing above button on small screens */
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}

#updates-link {
  position: relative; /* to position the badge relative to the link */
  display: inline-block;
}

.link-text {
  display: inline-block;
}

.notif-badge {
  position: absolute;
  top: -6px;       /* slightly above the text */
  right: -10px;    /* slightly to the right */
  background: red;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

