
/* AN UNQUIET MIND THEME - OBSIDIAN PUBLISH */


/* Base theme variables */
:root {
  /* Dark theme colors */
  --bg-dark: #2f383e;
  --fg-dark: #d3c6aa;
  --grey1-dark: #859289;
  
  /* Light theme colors */
  --bg-light: #fdf6e3;
  --fg-light: #5c6a72;
  --grey1-light: #939f91;
}

/* Dark theme implementation */
.theme-dark {
  --background-primary: var(--bg-dark);
  --background-primary-alt: var(--bg-dark);
  --background-secondary: var(--bg-dark);
  --background-secondary-alt: var(--bg-dark);
  --text-normal: var(--fg-dark);
  --text-faint: var(--grey1-dark);
  
  /* Heading colors - Winter mode */
  --text-title-h1: #A08B7A; /* light taupe */
  --text-title-h2: #9A8A7A; /* medium taupe */
  --text-title-h3: #8B7355; /* soft taupe */
  --text-title-h4: #9CA3AF; /* light gray */
  --text-title-h5: #A5B8C7; /* light blue-gray */
  --text-title-h6: #D1D8E0; /* very light cool gray */
  
  /* Link and text colors */
  --text-link: #F6AD55; /* warm orange */
  --text-a: #F6AD55; /* warm orange */
  --text-a-hover: #83c092; /* faded aqua */
  --text-a-unresolved: rgba(246, 173, 85, 0.6); /* warm orange with transparency */
  --text-a-external: #F6AD55; /* warm orange for external links */
  --text-bold: #7FBBB3; /* muted blue for bold text */
  --text-italic: #da6362; /* everforest h1 dim-red for italic text */
  
  /* Blockquote styling */
  --blockquote-bg: rgba(139, 115, 85, 0.1); /* soft taupe background */
  
  /* Callout colors - Winter mode */
  --callout-idea-border: #FCD34D; /* warm yellow */
  --callout-idea-bg: rgba(252, 211, 77, 0.1); /* warm yellow background */
  --callout-weather-border: #FCD34D; /* warm yellow - same as idea */
  --callout-weather-bg: rgba(252, 211, 77, 0.1); /* warm yellow background */
  --callout-important-border: #4FC3F7; /* bright cyan - stands out against dark background */
  --callout-important-bg: rgba(79, 195, 247, 0.15); /* bright cyan background */
  --callout-quote-border: #9CA3AF; /* neutral gray */
  --callout-quote-bg: rgba(156, 163, 175, 0.1); /* neutral gray background */
  --callout-cite-border: #9CA3AF; /* neutral gray */
  --callout-cite-bg: rgba(156, 163, 175, 0.1); /* neutral gray background */
  
  /* Tag colors */
  --tag-base: var(--bg-dark);
  --boldred: #E53E3E; /* muted red for tags */
  --purple: #d699b6;
  --boldgreen: #a7c080;
}

/* Light theme implementation */
.theme-light {
  --background-primary: var(--bg-light);
  --background-primary-alt: var(--bg-light);
  --background-secondary: var(--bg-light);
  --background-secondary-alt: var(--bg-light);
  --text-normal: var(--fg-light);
  --text-faint: var(--grey1-light);
  
  /* Heading colors - Summer mode */
  --text-title-h1: #4A7C59; /* medium forest green */
  --text-title-h2: #6B8E23; /* sage green */
  --text-title-h3: #7A9A2E; /* lighter sage green */
  --text-title-h4: #8B4513; /* warm brown */
  --text-title-h5: #A0522D; /* warm taupe */
  --text-title-h6: #5A7B8A; /* steel blue */
  
  /* Link and text colors */
  --text-link: #2E8B57; /* sea green */
  --text-a: #2E8B57; /* sea green */
  --text-a-hover: #3CB371; /* medium sea green */
  --text-a-unresolved: rgba(46, 139, 87, 0.6); /* sea green with transparency */
  --text-a-external: #2E8B57; /* sea green for external links */
  --text-bold: #B886DB; /* lighter, softer orchid for bold text */
  --text-italic: #f85552; /* everforest h1 light-red for italic text */
  
  /* Blockquote styling */
  --blockquote-bg: rgba(107, 142, 35, 0.1); /* soft sage background */
  
  /* Callout colors - Summer mode */
  --callout-idea-border: #FCD34D; /* warm yellow */
  --callout-idea-bg: rgba(252, 211, 77, 0.1); /* warm yellow background */
  --callout-weather-border: #FCD34D; /* warm yellow - same as idea */
  --callout-weather-bg: rgba(252, 211, 77, 0.1); /* warm yellow background */
  --callout-important-border: #14B8A6; /* turquoise/teal - stands out against light background */
  --callout-important-bg: rgba(20, 184, 166, 0.15); /* turquoise background */
  --callout-quote-border: #939f91; /* neutral gray */
  --callout-quote-bg: rgba(147, 159, 145, 0.1); /* neutral gray background */
  --callout-cite-border: #939f91; /* neutral gray */
  --callout-cite-bg: rgba(147, 159, 145, 0.1); /* neutral gray background */
  
  /* Tag colors */
  --tag-base: var(--bg-light);
  --boldred: #C53030; /* brick red for tags */
  --purple: #b87b9d;
  --boldgreen: #899c40;
}

/* Base typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-normal);
  background-color: var(--background-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Page title styling for Obsidian Publish */
.published-container .titlebar-inner,
.published-container .view-header-title,
.published-container h1.title {
  color: var(--text-title-h1) !important;
}

/* Typography */
.markdown-preview-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

strong {
  font-weight: 700;
  color: var(--text-bold);
}

em {
  font-style: italic;
  color: var(--text-italic);
}

/* Blockquote styling */
blockquote {
  border-left: 4px solid var(--text-title-h2);
  margin-left: 1rem;
  padding-left: 1rem;
  background-color: var(--blockquote-bg);
  padding: 1rem;
  border-radius: 0 4px 4px 0;
}

/* Links */
a,
.cm-hmd-internal-link,
.internal-link,
.markdown-rendered .internal-link,
.metadata-container .internal-link,
.external-link {
  color: var(--text-a);
  text-decoration: none;
}

a:hover,
.cm-hmd-internal-link:hover,
.cm-url,
.internal-link:hover,
.markdown-rendered .internal-link:hover,
.metadata-container .internal-link:hover,
.external-link:hover {
  color: var(--text-a-hover);
  text-decoration: none;
}

/* Unresolved internal links (notes that don't exist yet) */
.internal-link.is-unresolved,
.markdown-rendered .internal-link.is-unresolved,
.metadata-container .internal-link.is-unresolved {
  color: var(--text-a-unresolved);
  text-decoration: none;
}

.internal-link.is-unresolved:hover,
.markdown-rendered .internal-link.is-unresolved:hover,
.metadata-container .internal-link.is-unresolved:hover {
  color: var(--text-a-hover);
  text-decoration: none;
}

/* Tags */
.token.tag {
  padding: 0px 0px;
  background-color: transparent;
  border: none;
}

.token.tag:hover {
  background: transparent;
  color: var(--text-a-hover) !important;
}

.tag {
  background-color: var(--tag-base);
  border: 1px solid var(--text-a);
  color: var(--text-a);
  font-weight: 500;
  padding: 1.5px 6px;
  text-align: center;
  text-decoration: none !important;
  display: inline-block;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.2s ease-in-out;
}

.tag:hover {
  color: var(--text-a-hover);
}

/* Special tag styling */
.tag[href^="#❗️"],
.tag[href^="#important❗️"] {
  background-color: var(--tag-base);
  border: 1px solid var(--boldred);
}

.tag[href^="#📓"],
.tag[href^="#journal📓"] {
  background-color: var(--tag-base);
  border: 1px solid var(--purple);
}

.tag[href^="#🌱"],
.tag[href^="#seedling🌱"],
.tag[href^="#🌿"],
.tag[href^="#budding🌿"],
.tag[href^="#🌳"],
.tag[href^="#evergreen🌳"] {
  background-color: var(--tag-base);
  border: 1px solid var(--boldgreen);
}

/* Mark/highlight */
mark {
  background-color: rgba(215, 153, 33, 0.4);
  color: inherit;
}

/* Headings */
.cm-header-1,
.markdown-preview-section h1 {
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-title-h1);
}

.cm-header-2,
.markdown-preview-section h2 {
  font-weight: 600;
  font-size: 1.875rem;
  line-height: 1.3;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-title-h2);
  border-bottom: 0.5px solid var(--text-title-h2);
  padding-bottom: 0.5rem;
}

.cm-header-3,
.markdown-preview-section h3 {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-title-h3);
}

.cm-header-4,
.markdown-preview-section h4 {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-title-h4);
}

.cm-header-5,
.markdown-preview-section h5 {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-title-h5);
}

.cm-header-6,
.markdown-preview-section h6 {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-title-h6);
}

/* Code blocks */
.markdown-preview-section pre {
  background-color: var(--background-secondary);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
}

.markdown-preview-section pre code {
  background: none;
  border: none;
  padding: 0;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  font-size: 0.875rem;
  color: var(--text-normal);
}

.markdown-preview-section code {
  background-color: var(--background-secondary);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  font-size: 0.875rem;
  color: var(--text-normal);
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

th {
  background-color: var(--background-secondary);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid var(--text-faint);
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--text-faint);
}

/* Lists */
ul, ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin: 0.25rem 0;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--text-faint);
  margin: 2rem 0;
}

/* Callouts */
.callout {
  margin: 1.5rem 0;
  padding: 0;
  border-radius: 0 4px 4px 0;
  border-left: 4px solid;
  background-color: var(--blockquote-bg);
  overflow: hidden;
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--text-normal);
}

.callout-icon {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  color: inherit;
}

.callout-icon svg {
  width: 1.1em;
  height: 1.1em;
  stroke: currentColor;
  fill: none;
}

/* Obsidian Publish icon handling - icons may be rendered as SVG or emoji */
.callout-icon svg,
.callout-icon .svg-icon {
  display: inline-block;
  vertical-align: middle;
}

/* Ensure icons inherit the callout title color */
.callout-title .callout-icon {
  color: inherit;
}

/* Force icon color to match callout title color */
.callout-icon svg {
  color: inherit;
  stroke: currentColor;
}

.callout-title-inner {
  flex: 1;
}

.callout-content {
  padding: 0 1.5rem 1rem 2rem;
  color: var(--text-normal);
}

.callout-content p {
  margin-bottom: 0.75rem;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

/* Idea callout - warm yellow colors */
.callout[data-callout="idea"] {
  --callout-icon: lucide-lightbulb;
  border-left-color: var(--callout-idea-border);
  background-color: var(--callout-idea-bg);
  margin-left: 1rem;
  padding: 1rem;
  padding-left: 0;
}

.callout[data-callout="idea"] .callout-title {
  color: var(--callout-idea-border);
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

.callout[data-callout="idea"] .callout-icon,
.callout[data-callout="idea"] .callout-icon svg {
  color: var(--callout-idea-border);
  stroke: var(--callout-idea-border);
}

.callout[data-callout="idea"] .callout-content {
  padding: 0 1.5rem 1rem 2rem;
}

/* Weather callout - warm yellow colors (same as idea) */
.callout[data-callout="weather"] {
  --callout-icon: lucide-cloud-sun;
  border-left-color: var(--callout-weather-border);
  background-color: var(--callout-weather-bg);
  margin-left: 1rem;
  padding: 1rem;
  padding-left: 0;
}

.callout[data-callout="weather"] .callout-title {
  color: var(--callout-weather-border);
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

.callout[data-callout="weather"] .callout-icon,
.callout[data-callout="weather"] .callout-icon svg {
  color: var(--callout-weather-border);
  stroke: var(--callout-weather-border);
}

.callout[data-callout="weather"] .callout-content {
  padding: 0 1.5rem 1rem 2rem;
}

/* Important callout - cyan (dark) / turquoise (light), stands out but not alarm-like */
.callout[data-callout="important"] {
  --callout-icon: lucide-flame;
  border-left-color: var(--callout-important-border);
  background-color: var(--callout-important-bg);
  margin-left: 1rem;
  padding: 1rem;
  padding-left: 0;
}

.callout[data-callout="important"] .callout-title {
  color: var(--callout-important-border);
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

.callout[data-callout="important"] .callout-icon,
.callout[data-callout="important"] .callout-icon svg {
  color: var(--callout-important-border);
  stroke: var(--callout-important-border);
}

.callout[data-callout="important"] .callout-content {
  padding: 0 1.5rem 1rem 2rem;
}

/* Quote callout - neutral gray styling */
.callout[data-callout="quote"] {
  border-left-color: var(--callout-quote-border);
  background-color: var(--callout-quote-bg);
  margin-left: 1rem;
  padding: 1rem;
  padding-left: 0;
}

.callout[data-callout="quote"] .callout-title {
  color: var(--callout-quote-border);
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

.callout[data-callout="quote"] .callout-content {
  padding: 0 1.5rem 1rem 2rem;
}

/* Cite callout - neutral gray styling */
.callout[data-callout="cite"] {
  border-left-color: var(--callout-cite-border);
  background-color: var(--callout-cite-bg);
  margin-left: 1rem;
  padding: 1rem;
  padding-left: 0;
}

.callout[data-callout="cite"] .callout-title {
  color: var(--callout-cite-border);
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

.callout[data-callout="cite"] .callout-content {
  padding: 0 1.5rem 1rem 2rem;
}


