/**
 * Why Not Listed Component Styles
 * Feature 2: "Why Not Listed" Info Button
 * Created: 2026-01-20
 *
 * WCAG 2.2 Compliant:
 * - 44x44px minimum touch target
 * - Proper focus indicators
 * - Accessible color contrast
 */

/* ============================================
   WHY NOT LISTED BUTTON (inline in status key)
   ============================================ */
.why-not-listed-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  background: #17a2b8;
  border: 2px solid #17a2b8;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
  vertical-align: middle;
}

.why-not-listed-btn i {
  font-size: 14px;
  color: #ffffff;
  line-height: 1;
}

.why-not-listed-btn:hover {
  background: #138496;
  border-color: #ffee00;
  transform: scale(1.1);
}

.why-not-listed-btn:focus {
  outline: 3px solid #ffee00;
  outline-offset: 2px;
}

/* ============================================
   WHY NOT LISTED MODAL
   ============================================ */
.why-not-listed-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.why-not-listed-modal.show {
  display: flex !important;
}

.why-not-listed-modal-content {
  background-color: #000000;
  border: 3px solid #17a2b8;
  padding: 2em;
  text-align: left;
  border-radius: 10px;
  margin: 5% auto;
  width: 90%;
  max-width: 650px;
  position: relative;
  animation: slideDown 0.3s ease;
  box-shadow: 0 10px 40px rgba(23, 162, 184, 0.4);
  color: #919499;
  letter-spacing: 0.015em;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal Header */
.why-not-listed-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5em;
}

.why-not-listed-modal-title {
  color: #17a2b8;
  margin: 0;
  font-size: 1.8em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
}

.why-not-listed-modal-title i {
  font-size: 1em;
  color: #17a2b8;
}

/* Modal Body */
.why-not-listed-modal-body {
  color: #ffffff;
}

.why-not-listed-section {
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.why-not-listed-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.why-not-listed-section-title {
  color: #ffee00;
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 0.75em 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.why-not-listed-section-title i {
  font-size: 0.9em;
  color: #17a2b8;
}

.why-not-listed-section p {
  color: #d0d0d0;
  line-height: 1.6;
  margin: 0 0 0.75em 0;
}

.why-not-listed-section p:last-child {
  margin-bottom: 0;
}

/* List styling */
.why-not-listed-list {
  margin: 0.75em 0 0 0;
  padding-left: 1.5em;
  color: #d0d0d0;
  line-height: 1.8;
}

.why-not-listed-list li {
  margin-bottom: 0.5em;
}

.why-not-listed-list li:last-child {
  margin-bottom: 0;
}

.why-not-listed-list strong {
  color: #ffee00;
}

/* Warning section */
.why-not-listed-warning {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 8px;
  padding: 1em !important;
  margin-left: 0;
  margin-right: 0;
}

.why-not-listed-alert {
  background: rgba(220, 53, 69, 0.2);
  border-left: 4px solid #dc3545;
  padding: 0.75em 1em;
  margin-top: 0.75em !important;
  border-radius: 0 4px 4px 0;
  color: #ff6b6b !important;
}

.why-not-listed-alert i {
  color: #dc3545;
  margin-right: 0.5em;
}

/* Links */
.why-not-listed-section a {
  color: #17a2b8;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.why-not-listed-section a:hover {
  color: #ffee00;
}

/* Modal Footer */
.why-not-listed-modal-footer {
  margin-top: 2em;
  text-align: center;
}

.why-not-listed-source {
  font-size: 0.85em;
  color: #919499;
  margin-bottom: 1em;
}

.why-not-listed-source a {
  color: #17a2b8;
  text-decoration: underline;
}

.why-not-listed-source a:hover {
  color: #ffee00;
}

.why-not-listed-close-btn {
  background: #17a2b8;
  color: #ffffff !important;
  border: none;
  border-radius: 999px;
  padding: 0.85em 2em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-width: 200px;
}

.why-not-listed-close-btn:hover {
  background: #138496;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.why-not-listed-close-btn:focus {
  outline: 2px solid #ffee00;
  outline-offset: 2px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .why-not-listed-modal-content {
    width: 95%;
    margin: 3% auto;
    padding: 1.5em;
  }

  .why-not-listed-modal-title {
    font-size: 1.4em;
  }

  .why-not-listed-section-title {
    font-size: 1em;
  }

  .why-not-listed-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }

  .why-not-listed-btn i {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .why-not-listed-modal-content {
    width: 98%;
    padding: 1em;
  }

  .why-not-listed-modal-title {
    font-size: 1.2em;
  }

  .why-not-listed-close-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .why-not-listed-btn,
  .why-not-listed-modal-content {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-contrast: high) {
  .why-not-listed-btn {
    border-width: 3px;
  }

  .why-not-listed-modal-content {
    border-width: 4px;
  }
}

.why-not-listed-btn:focus-visible,
.why-not-listed-close-btn:focus-visible {
  outline: 3px solid #ffee00;
  outline-offset: 3px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .why-not-listed-btn,
  .why-not-listed-modal {
    display: none !important;
  }
}
