/**
 * Quiz Coming Soon Modal - F-030 Phase 0
 *
 * Styling for the "coming soon" modal shown when users try to access
 * quiz features on subjects that don't have quiz available yet.
 */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Dialog */
.modal-dialog {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

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

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  color: var(--text-secondary, #6b7280);
  transition: background-color 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--hover-bg, #f3f4f6);
  color: var(--text-primary, #111827);
}

.modal-close svg {
  display: block;
}

/* Modal Body */
.modal-body {
  padding: 2rem 1.5rem;
  text-align: center;
}

.coming-soon-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.modal-body h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
}

.coming-soon-explanation {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary, #6b7280);
  line-height: 1.6;
}

.coming-soon-explanation strong {
  color: var(--primary-color, #2563eb);
  font-weight: 600;
}

/* Features List */
.coming-soon-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--hover-bg, #f3f4f6);
  border-radius: 8px;
}

.feature-icon {
  flex-shrink: 0;
  color: var(--success-color, #10b981);
}

.feature-item span {
  color: var(--text-primary, #111827);
  font-size: 0.9rem;
}

/* Suggestion Section */
.coming-soon-suggestion {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  color: white;
}

.coming-soon-suggestion p {
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.coming-soon-suggestion .btn {
  background: white;
  color: #667eea;
  border: none;
  font-weight: 600;
}

.coming-soon-suggestion .btn:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Modal Footer */
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color, #e5e7eb);
  display: flex;
  justify-content: flex-end;
}

.modal-close-btn {
  min-width: 100px;
}

/* Button Styles (if not already defined) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary-color, #2563eb);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark, #1d4ed8);
}

.btn-secondary {
  background: var(--secondary-bg, #f3f4f6);
  color: var(--text-primary, #111827);
}

.btn-secondary:hover {
  background: var(--hover-bg, #e5e7eb);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .modal-dialog {
    background: #1f2937;
  }

  .modal-header {
    border-bottom-color: #374151;
  }

  .modal-header h2 {
    color: #f9fafb;
  }

  .modal-close {
    color: #9ca3af;
  }

  .modal-close:hover {
    background: #374151;
    color: #f9fafb;
  }

  .modal-body h3 {
    color: #f9fafb;
  }

  .coming-soon-explanation {
    color: #d1d5db;
  }

  .feature-item {
    background: #374151;
  }

  .feature-item span {
    color: #f9fafb;
  }

  .modal-footer {
    border-top-color: #374151;
  }

  .btn-secondary {
    background: #374151;
    color: #f9fafb;
  }

  .btn-secondary:hover {
    background: #4b5563;
  }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .modal-overlay {
    padding: 0.5rem;
  }

  .modal-dialog {
    max-width: 100%;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-header h2 {
    font-size: 1.1rem;
  }

  .modal-body {
    padding: 1.5rem 1rem;
  }

  .modal-body h3 {
    font-size: 1.25rem;
  }

  .coming-soon-icon {
    font-size: 2.5rem;
  }

  .feature-item {
    padding: 0.625rem;
  }

  .feature-item span {
    font-size: 0.85rem;
  }

  .coming-soon-suggestion {
    padding: 1rem;
  }
}
