/* Opportunity Details Modal Styles */

.opportunity-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.opportunity-modal.show {
  opacity: 1;
  visibility: visible;
}

.opportunity-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.opportunity-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg, #1a1a1a);
  border: 2px solid var(--card-border, rgba(102, 126, 234, 0.3));
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.opportunity-modal-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--card-border, rgba(102, 126, 234, 0.2));
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.opportunity-modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.opportunity-modal-title {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.opportunity-modal-icon {
  font-size: 2.5rem;
}

.opportunity-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary, #94a3b8);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
}

.opportunity-close-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: rotate(90deg);
}

.opportunity-modal-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.opportunity-modal-meta .commitment-badge {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.nda-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.bg-check-badge {
  background: rgba(251, 191, 36, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.opportunity-modal-body {
  padding: 2.5rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.8;
  font-size: 1rem;
}

.opportunity-modal-body p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary, #94a3b8);
}

.opportunity-modal-body h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 2rem 0 1rem;
}

.opportunity-modal-body ul,
.opportunity-modal-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding-left: 0.5rem;
}

.opportunity-modal-body li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.7;
}

.opportunity-modal-body li strong {
  color: var(--text-primary, #ffffff);
  font-weight: 600;
}

.opportunity-modal-body a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.opportunity-modal-body a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.opportunity-modal-footer {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--card-border, rgba(102, 126, 234, 0.2));
  background: rgba(102, 126, 234, 0.03);
}

.opportunity-apply-btn {
  width: 100%;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.opportunity-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Light Theme Support */
[data-theme="light"] .opportunity-modal-content {
  background: var(--card-bg, #ffffff);
  border-color: var(--card-border, rgba(102, 126, 234, 0.2));
}

[data-theme="light"] .opportunity-modal-body {
  color: var(--text-secondary, #475569);
}

[data-theme="light"] .opportunity-modal-body li {
  color: var(--text-secondary, #475569);
}

[data-theme="light"] .opportunity-modal-body h4 {
  color: var(--text-primary, #0f172a);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .opportunity-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .opportunity-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .opportunity-modal-title {
    font-size: 1.5rem;
  }

  .opportunity-modal-icon {
    font-size: 2rem;
  }

  .opportunity-modal-body {
    padding: 1.5rem;
    font-size: 0.95rem;
  }

  .opportunity-modal-body h4 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem;
  }

  .opportunity-modal-footer {
    padding: 1.5rem;
  }

  .opportunity-apply-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .opportunity-modal-meta {
    gap: 0.5rem;
  }

  .opportunity-modal-meta .commitment-badge,
  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Scrollbar Styling for Modal Content */
.opportunity-modal-content::-webkit-scrollbar {
  width: 10px;
}

.opportunity-modal-content::-webkit-scrollbar-track {
  background: var(--bg-elevated, #0f0f0f);
  border-radius: 10px;
}

.opportunity-modal-content::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.5);
  border-radius: 10px;
}

.opportunity-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.7);
}

/* Special styling for alert boxes in modal content */
.opportunity-modal-body div[style*="background: rgba(239, 68, 68"] {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
