/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Comparison cross-links */
.comparison-link {
  color: var(--color-text-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-text-accent);
  text-underline-offset: 2px;
}

.comparison-link:hover {
  text-decoration: none;
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 32rem;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modal-appear 0.15s ease-out;
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-medium-gray);
  padding: 0.25rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-deep-forest);
}

/* Print Styles */
@media print {
  /* Hide non-content elements */
  header,
  footer,
  nav,
  .print-hidden,
  .modal-backdrop,
  [data-share-modal-target="modal"] {
    display: none !important;
  }

  /* Clean up the response card */
  .response-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  /* Clean typography */
  body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: white;
  }

  .markdown-content {
    padding-top: 0 !important;
  }

  /* Page setup */
  @page {
    margin: 1in;
  }

  /* Add site URL as footer */
  body::after {
    content: "homeschooltools.net";
    display: block;
    text-align: center;
    font-size: 10pt;
    color: #666;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #ccc;
  }

  /* Show link URLs */
  .markdown-content a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }

  /* Don't show URL for internal links */
  .markdown-content a[href^="/"]::after {
    content: "";
  }
}
