/* ===== OceanX Modal & Notifications (scoped) ===== */

/* Modal overlay + box */
#authModal .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#authModal .modal-box {
  background: #111;
  color: #fff;
  max-width: 980px;
  width: 80%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  font-family: 'Lora', serif; /* falls back gracefully if not loaded */
}

#authModal .modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

/* Modal form look-and-feel */
#authModal .modal-box form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: 'Lora', serif;
}

#authModal .modal-box label {
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: #ddd;
}

#authModal .modal-box input,
#authModal .modal-box textarea,
#authModal .modal-box select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #333;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#authModal .modal-box input:focus,
#authModal .modal-box textarea:focus,
#authModal .modal-box select:focus {
  border-color: #a8a298;
  outline: none;
  box-shadow: 0 0 8px rgba(168, 162, 152, 0.5);
}

/* Primary submit button */
#authModal .modal-box button[type="submit"] {
  background: #a8a298;
  color: #000;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-family: 'Jockey One', sans-serif; /* graceful fallback if not loaded */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  margin-top: 1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}
#authModal .modal-box button[type="submit"]:hover {
  background: #918c86;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Secondary links inside modal */
#authModal .modal-box p {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
}
#authModal .modal-box a {
  color: #a8a298;
  text-decoration: none;
  font-weight: 500;
  margin: 0 0.4rem;
  transition: color 0.3s;
}
#authModal .modal-box a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Custom dropdown arrow */
#authModal .modal-box select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

/* Notifications (global-scoped container, isolated visuals) */
#notificationContainer {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20000;
}

#notificationContainer .notification {
  background: #111;
  color: #fff;
  padding: 2rem 3rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  font-family: 'Jockey One', sans-serif;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

#notificationContainer .notification.show {
  opacity: 1;
  transform: scale(1);
}

#notificationContainer .notification .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pop 0.4s ease;
}
#notificationContainer .notification.success .icon { color: #4CAF50; }
#notificationContainer .notification.error .icon   { color: #E74C3C; }

@keyframes pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Mobile tuning for modal box */
@media (max-width: 768px) {
  #authModal .modal-box {
    width: 96vw;
    max-height: calc(92vh - 32px);
    padding: 1.25rem;
  }
}

.image-field .img-preview { max-width: 120px; border-radius: 8px; display:block; margin-bottom: .5rem; }

#guideFields { margin: .5rem 0 1rem; }
#guideFields input[disabled] { opacity: .6; }

/* Prominent, aligned toggle — scoped to the form modal */
.modal-box #guideFields .guide-toggle{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid #a8a298;
  border-radius: 10px;
  background: #1a1a1a;
  margin: .75rem 0 1rem;
}

.modal-box #guideFields .guide-toggle input{
  /* Bigger checkbox with native color */
  transform: scale(1.5);
  margin: 0;
  accent-color: #a8a298; /* modern browsers */
  border: none;
  box-shadow: none;
}

.modal-box #guideFields .guide-toggle label{
  cursor: pointer;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.modal-box #guideFields .guide-toggle .title{
  font-family: 'Jockey One', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.modal-box #guideFields .guide-toggle .hint{
  font-family: 'Lora', serif;
  font-size: .9rem;
  opacity: .85;
  margin-top: 2px;
}

/* Optional: visually emphasize when checked */
.modal-box #guideFields .guide-toggle.active{
  background: #a8a298;
  color: #000;
  border-color: #000;
}
.modal-box #guideFields .guide-toggle.active .hint{ opacity: .9; }


.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 3rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-links {
  font-family: 'Jockey One', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-links a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-left: 0.5rem;
}

.auth-links a:hover {
  color: #a8a298;
}

#hidden{
  display: none;
}


.cta-button {
  background: #a8a298;
  color: #000;
  padding: 1.2rem 4rem;
  font-size: clamp(1rem,2vw,1.3rem);
  font-family: 'Jockey One', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 2px solid #000;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  font-weight: 400;
}
.cta-button:hover {
  background: #918c86;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}


@media (max-width: 480px) {
      .cta-button { padding: 0.8rem 2rem; }
    }