/* Markdown/Obsidian tools for the photography challenge. */

.markdown-note-tools {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e3e6e8;
}

.markdown-note-tools h4 {
  margin: 0 0 .35rem;
  color: var(--photo-navy, var(--bs-body-color));
}

.notes-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin: .8rem 0;
}

.notes-action-button,
.notes-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  border: 1px solid var(--bs-primary);
  border-radius: .65rem;
  padding: .55rem .9rem;
  background: var(--bs-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease;
}

.notes-action-button:hover,
.notes-export-button:hover {
  color: #fff;
  filter: brightness(.9);
  transform: translateY(-1px);
}

.notes-action-button:focus-visible,
.notes-export-button:focus-visible {
  outline: 3px solid var(--bs-primary);
  outline-offset: 3px;
}

.notes-action-secondary {
  background: transparent;
  color: var(--bs-primary);
}

.notes-action-secondary:hover {
  background: rgba(0, 0, 0, .05);
  color: var(--bs-primary);
}

.notes-action-status {
  min-height: 1.3em;
  color: #35653c;
  font-size: .92rem;
  font-weight: 700;
}

.notes-action-status.is-error {
  color: #a02929;
}

.obsidian-template {
  max-height: 28rem;
  margin: .75rem 0 0;
  overflow: auto;
  border: 1px solid #d7dde1;
  border-radius: .75rem;
  padding: 1rem;
  background: #f6f7f8;
  color: #1f2933;
  font-size: .84rem;
  line-height: 1.45;
  white-space: pre;
}

.notes-export-panel {
  margin: 1rem 0 2rem;
  border: 1px solid var(--photo-border, #dedede);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: var(--photo-cream, #fff8ee);
}

.notes-export-panel p:last-child {
  margin-bottom: 0;
}

.notes-export-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: .8rem 0 .4rem;
}

@media (max-width: 600px) {
  .notes-action-button,
  .notes-export-button {
    width: 100%;
  }

  .notes-action-status {
    width: 100%;
  }

  .obsidian-template {
    font-size: .77rem;
  }
}
