/* --- Global Styling --- */
body {
  font-family: 'Poppins', sans-serif;
  background: #f5f1e6;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Hide all visible content when the page is "gated" */
body.gated > * {
  display: none !important;
}

/* Always show the loading message container */
body.gated #loading {
  display: block !important;
}

/* Once the gate is lifted, hide the loading message */
body:not(.gated) #loading {
  display: none !important;
}

.embed-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto;
  width: 100%;
  max-width: 1200px;
  height: 80vh;
  border: 2px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Logo Used in All Pages Header Except Login */
#amja-logo {
  height: clamp(45px, 9vw, 100px);
  width: auto;
  max-width: 95vw;
  display: block;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 1082 / 423;
}

.page-title {
  font-size: 3rem;
  font-weight: bold;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  color: black;
  margin: 0.5rem;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  max-width: 350px;
  width: 100%;
}

.modal-container-multi-buttons {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #333;
}

.modal-box-text {
  font-size: 1rem;
  font-weight: bold;
}

.modal-box input {
  width: 80%;
  padding: 0.5rem;
  font-size: 1rem;
}

.modal-button {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #052f5f;
  background-color: #8ab59c;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.modal-button:hover {
  color: white;
  background-color: #0a6a56;
}

/* Default Button Styling */
button {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #052f5f;
  background-color: #8ab59c;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

button.active {
  color: white;
  background-color: #0a6a56;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:hover:not(:disabled),
button:active:not(:disabled) {
  color: white;
  background-color: #0a6a56;
}

/* Prevent button hover styling from “sticking” on mobile */
@media (hover: none) and (pointer: coarse) {
  button:hover {
    color: #052f5f;
    background-color: #8ab59c;
  }
}

/* Default Select Styling */
select {
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  background-color: white;
  color: #333;
  border: 2px solid #007bff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: center;
  text-align-last: center;
}

select:hover {
  border-color: #0056b3;
}

/* --- Login.html Header --- */
#login-header {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f6f4ed;
  border-bottom: 1px solid #ddd;
}

/* Login Container */
#login-wrapper {
  max-width: 450px;
  width: 100%;
  margin: 1rem auto;
  text-align: center;
}

/* Login Title - League Spartan as Primary */
#login-title {
  font-size: 1.75rem;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-weight: bold;
  color: black;
  margin: 1rem auto;
}

/* Login Email Input */
#login-email-input-container {
  width: 100%;
  margin: 1rem auto;
}

#login-email-input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  display: block;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Mailcheck Suggestion */
#login-email-suggestion {
  color: #1e90ff;
  font-size: 0.95rem;
  margin: 1rem;
}

/* Login Status Message */
#login-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* --- Header for All Pages Except Login --- */
#header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background-color: #f6f4ed;
  border-bottom: 1px solid #ddd;
}

/* NEW: Make #header a 3-col layout with the center always centered */
#header > div {
  flex: 0 0 auto;
}

#logo-area {
  flex: 0 0 auto;
  padding: 0.75rem;
  z-index: 20;
}

/* --- Footer for All Pages --- */
.site-footer {
  margin-top: 0.5rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #333;
  border: 1px solid #ddd;
  background-color: #f6f4ed;
}

.site-footer a {
  margin: 0 0.25rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #0a6a56;
}

/* --- Home.html Styling --- */
.home-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  text-align: left; /* override body{text-align:center} */
}

.home-hero {
  margin: 10px 0 18px;
}

.home-title {
  margin: 0;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #111;
}

.home-subtitle {
  margin: 8px 0 0;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.7);
}

.home-status {
  margin: 18px 0 10px;
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.75);
}

.home-section {
  margin-top: 26px;
}

.home-section-title {
  margin: 0 0 14px;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
}

.home-section-subtitle {
  margin: 6px 0 14px;
  color: rgba(0, 0, 0, 0.7);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ✅ This is the missing "base card" styling */
.app-card-row {
  display: grid;
  grid-template-columns: 86px 1fr 56px;
  gap: 14px;
  align-items: stretch;

  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;

  /* Important for the green chevron area */
  padding: 0;
  overflow: hidden;

  /* ✅ elevated drop shadow (not green) */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);

  text-decoration: none; /* ✅ remove underline */
  color: inherit; /* ✅ stop blue/purple link styling */

  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.app-card-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

/* Disabled cards */
.app-card-row.is-disabled,
.app-card-row[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* Left icon padding */
.app-card-icon {
  padding-left: 14px;
  display: flex;
  align-items: center;
}

/* Middle content padding */
.app-card-content {
  padding: 14px 0;
}

/* Right chevron button area */
.app-card-chevron {
  align-self: stretch;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #0a6a56;
  width: 56px;
}

.app-card-row.is-disabled .app-card-chevron,
.app-card-row[aria-disabled='true'] .app-card-chevron {
  background: rgba(10, 106, 86, 0.35);
}

.app-card-chevron svg {
  display: block;
}

/* Icon tile */
.icon-tile {
  width: 72px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card-title {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.app-card-desc {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.7);
}

/* Mobile: slightly tighter */
@media (max-width: 560px) {
  .app-card-row {
    grid-template-columns: 76px 1fr 56px; /* ✅ keep chevron width */
    gap: 12px;
  }

  .app-card-icon {
    padding-left: 12px;
    display: flex;
    align-items: center;
  }

  .icon-tile {
    width: 60px;
    height: 50px;
  }

  .app-card-content {
    padding: 8px 0;
  }

  .app-card-title {
    font-size: 1.1rem;
  }

  .app-card-desc {
    font-size: 1rem;
    line-height: 1.2;
  }
}

.app-card-row--zoom {
  grid-template-columns: 86px 1fr auto 56px;
  align-items: center;
  gap: 14px;
}

.app-card-zoom-cta {
  min-width: 200px;
  padding: 14px 22px;
  border-radius: 14px;
  box-sizing: border-box;

  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;

  border: 2px solid #6d6d6d;
}

.app-card-zoom-cta.is-live {
  background: #0a6a56;
  color: #ffffff;
  border-color: #1f1f1f;
}

.app-card-zoom-cta.is-not-live {
  background: #e7e2d7;
  color: #6d6d6d;
  border-color: #6d6d6d;
}

.app-card-row--zoom.is-disabled {
  pointer-events: none;
}

.app-card-row--zoom.is-disabled .app-card-chevron {
  opacity: 1;
}

@media (max-width: 900px) {
  .app-card-row--zoom {
    grid-template-columns: 76px 1fr 56px;
    grid-template-areas:
      'icon content chevron'
      'icon cta chevron';
    gap: 12px;
    align-items: center;
  }

  .app-card-row--zoom .app-card-icon {
    grid-area: icon;
    padding-left: 12px;
    align-self: center;
    height: 100%;
  }

  .app-card-row--zoom .app-card-content {
    grid-area: content;
    padding: 10px 0 4px;
  }

  .app-card-row--zoom .app-card-zoom-cta {
    grid-area: cta;
    min-width: 0;
    width: 100%;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .app-card-row--zoom .app-card-chevron {
    grid-area: chevron;
  }

  .app-card-row--zoom .app-card-desc {
    font-size: 0.98rem;
    line-height: 1.15;
  }
}

@media (max-width: 640px) {
  .app-card-row--zoom .app-card-content {
    padding: 8px 0 4px;
  }

  /* DO NOT touch the title size */
  .app-card-row--zoom .app-card-title {
    margin-bottom: 4px;
  }

  /* Only scale the date/time */
  .app-card-row--zoom .app-card-desc {
    font-size: 0.85rem;
    line-height: 1.08;
  }

  .app-card-zoom-cta {
    font-size: 1rem;
    padding: 12px 14px;
  }
}

/* Manage Membership Button */
.manage-link-row {
  text-align: center;
  margin: 24px 0 10px;
}

.manage-membership-btn {
  display: inline-block;
  background: transparent;
  border: none;
  box-shadow: none;

  padding: 0;
  margin: 0;

  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;

  color: #0a6a56;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;

  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.manage-membership-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Email Not Approved Error Styling */
#email-not-approved-error-message {
  color: red;
  font-weight: bold;
  margin-top: 2rem;
}

/* Card Reveal Styling */
.card-reveal-image-wrapper {
  text-align: center;
  margin: 20px 0;
}

.card-reveal-image {
  max-width: 100%;
  height: auto;
  width: 500px; /* adjust if you want larger/smaller */
}
