/* Notion-like Styles for TinyMCE */

/* Headers */
.notion-h1 {
  font-size: 1.875em;
  font-weight: 600;
  line-height: 1.3;
  margin: 1em 0 0.5em;
}

.notion-h2 {
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.3;
  margin: 0.8em 0 0.4em;
}

.notion-h3 {
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.3;
  margin: 0.6em 0 0.3em;
}

/* Paragraphs */
.notion-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.5em;
  min-height: 1.5em; /* For empty lines */
}

/* Quotes */
.notion-quote {
  border-left: 3px solid currentcolor;
  padding-left: 14px;
  font-size: 1.1em;
  margin: 0.5em 0;
  opacity: 0.8;
}

/* Callouts */
.notion-callout {
  display: flex;
  align-items: flex-start;
  padding: 16px 16px 16px 12px;
  margin: 10px 0;
  border-radius: 4px;
  background-color: #f1f1ef; /* Default gray bg */
  border: 1px solid rgba(55, 53, 47, 0.09);
  color: #37352f; /* Force dark text for light background */
}

.notion-callout-icon {
  margin-right: 12px;
  font-size: 1.5em;
  line-height: 1.1;
  user-select: none;
}

.notion-callout-content {
  flex-grow: 1;
  word-break: break-word;
  line-height: 1.5;
}

/* Lists */
.notion-ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.notion-ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.notion-li {
  margin-bottom: 0.2em;
}

/* Code Blocks */
.notion-code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
  background-color: #272822; /* Dark background */
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 0.85em;
  line-height: 1.4;
  overflow-x: auto;
  margin: 0.5em 0;
  tab-size: 2;
  color: #f8f8f2; /* Light text */
}

/* To-do List */
.notion-todo {
  display: flex;
  align-items: flex-start;
  margin: 0.2em 0;
}

.notion-todo input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  margin-top: 4px;
  cursor: pointer;
}

.notion-todo.checked {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Divider */
.notion-hr {
  border: none;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
  margin: 1.5em 0;
}

/* Images */
.notion-figure {
  margin: 1em 0;
}

.notion-img {
  display: block;
  max-width: 100%;
  border-radius: 3px; /* Slight rounding like Notion */
}

figcaption {
  color: rgba(55, 53, 47, 0.6);
  font-size: 0.9em;
  margin-top: 6px;
}

/* Colors (Notion Palette) */
.color-gray { color: #9b9a97; }
.color-brown { color: #64473a; }
.color-orange { color: #d9730d; }
.color-yellow { color: #dfab01; }
.color-green { color: #0f7b6c; }
.color-blue { color: #0b6e99; }
.color-purple { color: #6940a5; }
.color-pink { color: #ad1a72; }
.color-red { color: #e03e3e; }

/* Background Colors */
.bg-gray { background-color: #ebeced; }
.bg-brown { background-color: #e9e5e3; }
.bg-orange { background-color: #faebdd; }
.bg-yellow { background-color: #fbf3db; }
.bg-green { background-color: #ddedea; }
.bg-blue { background-color: #dd_e0f3; /* Typo in source or custom? Using valid hex */ background-color: #ddebf1; }
.bg-purple { background-color: #eae4f2; }
.bg-pink { background-color: #f4dfeb; }
.bg-red { background-color: #fbe4e4; }
