/* ============================================================
   OSGA POPUP — osga-popup.css
   Navy: #02192b | Gold: #c8a84b | White: #ffffff
   ============================================================ */

#osga-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 99998;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: osga-fade-in 0.3s ease forwards;
}

#osga-popup-overlay.osga-visible {
  display: flex;
}

@keyframes osga-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#osga-popup {
  background: #ffffff;
  width: 100%;
  max-width: 550px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,168,75,0.3);
  animation: osga-slide-up 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  position: relative;
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

@keyframes osga-slide-up {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── HEADER BAR ── */
#osga-popup-header {
  background: #02192b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 2px solid #c8a84b;
}

#osga-popup-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

#osga-popup-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

#osga-popup-dev-badge {
  display: none;
  background: #ff4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 2px;
  text-transform: uppercase;
}

#osga-popup-close {
  background: none;
  border: 1px solid #1e3a50;
  color: #7a9ab0;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

#osga-popup-close:hover {
  background: #c8a84b;
  border-color: #c8a84b;
  color: #02192b;
}

/* ── AD SLOT (Bonus Article) ── */
#osga-popup-ad {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: #02192b;
  max-height: 220px;
}

#osga-popup-ad img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  opacity: 0.85;
}

#osga-popup-ad:hover img {
  transform: scale(1.03);
  opacity: 1;
}

#osga-popup-ad-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 20%,
    rgba(2, 25, 43, 0.5) 55%,
    rgba(2, 25, 43, 0.92) 100%
  );
}

#osga-popup-ad-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #c8a84b;
  color: #02192b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

#osga-popup-ad-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
}

#osga-popup-ad-title {
  color: #ffffff;
  font-family: 'Roboto Condensed', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

#osga-popup-ad-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: #c8a84b;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

#osga-popup-ad-cta::after {
  content: ' →';
}

/* Fallback if no image */
#osga-popup-ad.osga-no-image {
  background: linear-gradient(135deg, #02192b 0%, #0a3050 100%);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── EMAIL CAPTURE BAR ── */
#osga-popup-email-bar {
  background: #02192b;
  padding: 18px 20px;
  border-top: 2px solid #c8a84b;
}

#osga-popup-email-headline {
  color: #ffffff;
  font-family: 'Roboto Condensed', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

#osga-popup-email-headline span {
  color: #c8a84b;
}

#osga-popup-email-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

#osga-popup-email-input {
  flex: 1;
  background: #0a2d45;
  border: 1px solid #1e4060;
  color: #ffffff;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 2px;
  font-family: 'Roboto', Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 0;
}

#osga-popup-email-input::placeholder {
  color: #4a7090;
}

#osga-popup-email-input:focus {
  border-color: #c8a84b;
}

#osga-popup-email-submit {
  background: #c8a84b;
  color: #02192b;
  border: none;
  font-family: 'Roboto Condensed', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}

#osga-popup-email-submit:hover {
  background: #dbb95a;
}

#osga-popup-email-submit:active {
  transform: scale(0.97);
}

#osga-popup-email-submit:disabled {
  background: #6a6a6a;
  cursor: not-allowed;
  transform: none;
}

/* ── STATUS MESSAGES ── */
#osga-popup-status {
  display: none;
  padding: 10px 20px 14px;
  font-size: 12px;
  text-align: center;
  background: #02192b;
}

#osga-popup-status.osga-success {
  display: block;
  color: #5dd47a;
}

#osga-popup-status.osga-error {
  display: block;
  color: #ff6b6b;
}

/* ── FOOTER MICRO TEXT ── */
#osga-popup-fine-print {
  background: #021522;
  padding: 8px 20px;
  text-align: center;
  font-size: 10px;
  color: #cccccc;
  letter-spacing: 0.3px;
}

#osga-popup-fine-print a {
  color: #cccccc;
  text-decoration: none;
}

#osga-popup-fine-print a:hover {
  color: #c8a84b;
}

/* ── RESPONSIVE ── */

@media (max-width: 520px) {
  #osga-popup {
    max-width: 100%;
    border-radius: 8px;
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    width: calc(100% - 20px);
    margin: 0 auto;
  }

  #osga-popup-overlay {
    align-items: flex-end;
    padding: 0;
  }

  #osga-popup-ad img {
    height: 180px;
  }

  #osga-popup-email-form {
    flex-direction: column;
  }

  #osga-popup-email-submit {
    width: 100%;
    padding: 12px;
  }


@media (max-width: 520px) {

  #osga-popup {
    transform: translateY(-40px) !important;
  }


@media (max-width: 520px) {

  #osga-popup {
    margin-bottom: 40px !important;
  }

}