/* Insider Popup Styles */
.insider-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.insider-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.insider-popup-container {
  position: relative;
  max-width: 600px;
  width: 100%;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.3s ease;
}

.insider-popup-overlay.show .insider-popup-container {
  transform: scale(1) translateY(0);
}

.insider-popup-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.insider-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  color: #ffffff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.insider-popup-close:hover {
  background: rgba(0, 0, 0, 0.2);
}

.insider-popup-content {
  display: flex;
  min-height: 400px;
}

.insider-popup-image-section {
  flex: 1;
  position: relative;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.insider-popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.insider-popup-access-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #ff6b35, #ff8f42);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.insider-popup-access-badge::before {
  content: '🔥';
  margin-right: 6px;
}

.insider-popup-text-section {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insider-popup-headline {
  font-size: 28px;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.insider-popup-body {
  font-size: 16px;
  color: #4a5568;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.insider-popup-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.insider-popup-perks li {
  font-size: 14px;
  color: #2d3748;
  padding: 6px 0;
  position: relative;
  padding-left: 20px;
}

.insider-popup-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #48bb78;
  font-weight: bold;
}

.insider-popup-cta {
  display: inline-block;
  background: #F66D07;
  color: #ffffff;
  text-decoration: none;
  padding: 16px 24px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  clip-path: polygon(0 11px,11px 0,calc(100% - 11px) 0,100% 11px,100% calc(100% - 11px),calc(100% - 11px) 100%,11px 100%,0 calc(100% - 11px));
  line-height: 1.2;
}

.insider-popup-cta:hover {
  background: #F79151;
  transform: translateY(-1px);
}

.insider-popup-cta:active {
  background: #B64400;
  transform: translateY(0);
}

.insider-popup-disclaimer {
  font-size: 12px;
  color: #718096;
  margin: 12px 0 0 0;
  text-align: center;
  font-style: italic;
  line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .insider-popup-overlay {
    padding: 16px;
  }

  .insider-popup-content {
    flex-direction: column;
    min-height: auto;
  }

  .insider-popup-image-section {
    height: 200px;
    flex: none;
  }

  .insider-popup-text-section {
    padding: 24px;
  }

  .insider-popup-headline {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .insider-popup-body {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .insider-popup-perks {
    margin-bottom: 24px;
  }

  .insider-popup-access-badge {
    top: 16px;
    left: 16px;
    font-size: 11px;
    padding: 6px 12px;
  }

  .insider-popup-close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .insider-popup-overlay {
    padding: 12px;
  }

  .insider-popup-text-section {
    padding: 20px;
  }

  .insider-popup-headline {
    font-size: 22px;
  }

  .insider-popup-body {
    font-size: 14px;
  }

  .insider-popup-cta {
    padding: 14px 20px;
    font-size: 13px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .insider-popup-overlay,
  .insider-popup-container,
  .insider-popup-close,
  .insider-popup-cta {
    transition: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .insider-popup-card {
    border: 2px solid #000000;
  }

  .insider-popup-close {
    background: #000000;
    color: #ffffff;
  }

  .insider-popup-cta {
    border: 2px solid #000000;
  }
}