@font-face {
  font-family: 'Roboto';
  src: url('./_assets/fonts/roboto-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* === RESET & BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #000;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 700px;
}

/* === LOGO === */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -0.8rem;
}

.logo img {
  width: 100%;
  max-width: 220px;
}

/* === BRAND === */
.brand-name {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #6f9052;
  text-align: center;
}

.brand-tagline {
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* === SECTION HEADINGS === */
.section-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
  color: #6f9052;
  text-align: center;
}

/* === NEWS BOX === */
.news-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-line;
  max-height: 150px;
  overflow-y: auto;
}

/* Scrollbar for WebKit browsers */
.news-box::-webkit-scrollbar {
  width: 8px;
}

.news-box::-webkit-scrollbar-track {
  background: #111;
  border-radius: 4px;
}

.news-box::-webkit-scrollbar-thumb {
  background: #6f9052;
  border-radius: 4px;
}

/* Firefox scrollbar styling */
.news-box {
  scrollbar-width: thin;
  scrollbar-color: #6f9052 #111;
}

/* === LINKS CONTAINER === */
.links-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* === BUTTON STYLES === */
.link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.25s ease;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  gap: 0.5rem;
  min-height: 48px;
}

.link-button:hover {
  border-color: #6f9052;
  color: #6f9052;
  transform: scale(1.02);
}

.link-button.inactive {
  pointer-events: none;
  cursor: default;
}

.link-button.inactive:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

/* === SHARE BUTTON === */
.share-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #6f9052;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  transition: transform 0.2s ease;
  z-index: 1000;
}

.share-icon {
  width: 24px;
  height: 24px;
  stroke: white;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.share-button:hover {
  transform: scale(1.1);
}

.share-button:hover .share-icon {
  transform: scale(1.15);
}

/* === FOOTER === */
footer {
  text-align: center;
  margin-top: 2rem;
  color: #888;
  font-size: 0.9rem;
}

/* === OVERLAY (MODAL) === */
.overlay {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.overlay-content {
  background-color: #111;
  padding: 2rem;
  border-radius: 10px;
  max-width: 90%;
  width: 500px;
  position: relative;
  text-align: center;
  animation: popIn 0.25s ease forwards;
  transform: scale(0.98);
  opacity: 0;
}

.overlay.show .overlay-content {
  opacity: 1;
  transform: scale(1);
}

@keyframes popIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.overlay-content textarea {
  width: 100%;
  height: 200px;
  background-color: #222;
  color: white;
  border: 2px solid #6f9052;
  border-radius: 6px;
  padding: 1rem;
  font-family: monospace;
  resize: none;
  cursor: pointer;
}

/* === COPY BUTTON === */
.copy-btn {
  margin-top: 1rem;
  background-color: #6f9052;
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.25s ease;
  text-transform: uppercase;
}

.copy-btn:hover {
  background-color: #88a96f;
}

.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #6f9052;
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #6f9052;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.toast.show {
  opacity: 1;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}

@keyframes toast-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-4px); }
}

.toast-error {
  background-color: #b74a4a;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.9em;
  position: relative;  /* not fixed anymore */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.toast-error.show {
  opacity: 1;
  pointer-events: auto;
}

.toast-error.shake {
  animation: toast-shake 0.3s ease;
}

/* === MEDIA QUERIES === */
@media (max-width: 600px) {
  .logo img {
    max-width: 140px;
  }

  .news-box {
    font-size: 0.9rem;
    padding: 0.75rem;
    max-height: 180px;
  }

  .overlay-content textarea {
    height: 150px;
  }

  .section-heading {
    font-size: 1.3rem;
  }
}

/* === MODAL TEXT === */
.modal-info {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: left;
}

.modal-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
}

.modal-heading {
  font-size: 1.5rem;
  color: #6f9052;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
}

/* === SOCIAL ICONS === */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.icon-box {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border-color 0.25s ease, filter 0.25s ease, transform 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.icon-box:hover {
  border-color: #6f9052;
  transform: scale(1.1);
}

.icon-box img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  pointer-events: none;
  transition: filter 0.25s ease;
}

.icon-box:hover img {
  filter: invert(35%) sepia(77%) saturate(404%) hue-rotate(76deg) brightness(90%) contrast(86%);
  transform: scale(1.15);
}

.qr-image {
  width: 160px;
  height: 160px;
  display: block;
}

.share-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

/* === SHARE MODAL ICONS === */
.share-icon-btn {
  width: 40px;
  height: 40px;
  margin: 0.25rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

.share-icon-btn:hover,
.share-icon-btn:focus {
  background-color: #6f9052;
  border-color: #6f9052;
  transform: scale(1.1);
  outline: none;
}

.share-icon-btn svg,
.share-icon-btn img {
  width: 24px;
  height: 24px;
  pointer-events: none;
  filter: invert(100%);
  transition: filter 0.25s ease;
}

.share-icon-btn:hover svg,
.share-icon-btn:hover img,
.share-icon-btn:focus svg,
.share-icon-btn:focus img {
  filter: invert(35%) sepia(77%) saturate(404%) hue-rotate(76deg) brightness(90%) contrast(86%);
}

/* === MORE SHARE BUTTON === */
.more-share-btn {
  background-color: #6f9052;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.25s ease;
  text-transform: uppercase;
}

.more-share-btn:hover {
  background-color: #88a96f;
}

/* Container around the QR code */
.qr-wrapper {
  background-color: white;
  border-radius: 16px;
  padding: 1rem;
  display: inline-block;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

/* Wiggle animation */
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(9deg); }
  30% { transform: rotate(-9deg); }
  45% { transform: rotate(6deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
  90% { transform: rotate(-3deg); }
}

@keyframes wiggle2 {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(3deg); }
  30% { transform: rotate(-3deg); }
  45% { transform: rotate(2deg); }
  60% { transform: rotate(-2deg); }
  75% { transform: rotate(1deg); }
  90% { transform: rotate(-1deg); }
}

.qr-wrapper.wiggle {
  animation: wiggle 0.5s ease-in-out;
  animation-iteration-count: 1;
}

.wiggle {
    animation: wiggle2 0.5s ease-in-out;
}

.email-input {
  width: 100%;
  padding: 1rem;
  margin: 1rem 0;
  border: 2px solid #6f9052;
  border-radius: 6px;
  background-color: #222;
  color: white;
  font-size: 1rem;
}

.email-input::placeholder {
  color: #888;
}

.email-submit-btn {
  background-color: #6f9052;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.25s ease;
  width: 100%;
  font-size: 1rem;
}

.email-submit-btn:hover {
  background-color: #88a96f;
}

/* === EMAIL OVERLAY === */
#emailOverlay input[type="email"] {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid #6f9052;
  border-radius: 6px;
  background-color: #222;
  color: white;
  font-size: 1rem;
}

#emailOverlay input[type="email"]::placeholder {
  color: #888;
}

#email-submit {
  background-color: #6f9052;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.25s ease;
  width: 100%;
  font-size: 1rem;
}

#email-submit:hover {
  background-color: #88a96f;
}

/* Disabled submit button style */
#email-submit:disabled {
  background-color: #444;
  cursor: not-allowed;
  opacity: 0.6;
}

.privacy-note {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 0.5rem;
  text-align: center;
}
