/* Obsidian Publish custom styles - Bear Light Theme */

/* Bear colors */
:root {
  --background-primary: #FCF6E5;
  --background-secondary: #F0EDE6;
  --text-normal: #3B3B3B;
  --h1-color: #CB4239;
  --h2-color: #4E8ECE;
  --h3-color: #BC542A;
  --h4-color: #89992E;
  --h5-color: #A63D30;
  --h6-color: #666666;
  --link-color: #4E8ECE;
  --interactive-accent: #4E8ECE;
}

/* Clean typography */
body,
.published-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.7;
  background-color: #FCF6E5 !important;
  color: #3B3B3B;
}

/* Bear-style headings */
.markdown-preview-view h1,
.published-container h1 {
  color: #CB4239 !important;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.markdown-preview-view h2,
.published-container h2 {
  color: #4E8ECE !important;
  font-weight: 500;
  margin-top: 1.5rem;
}

.markdown-preview-view h3,
.published-container h3 {
  color: #BC542A !important;
  font-weight: 500;
}

.markdown-preview-view h4,
.published-container h4 {
  color: #89992E !important;
  font-weight: 500;
}

.markdown-preview-view h5,
.published-container h5 {
  color: #A63D30 !important;
  font-weight: 500;
}

.markdown-preview-view h6,
.published-container h6 {
  color: #666666 !important;
  font-weight: 500;
}

/* Navigation styling */
.site-body-left-column,
.nav-view-outer,
.sidebar,
.site-header {
  background-color: #EDE8D7 !important;
}

.nav-folder-title {
  font-weight: 600;
  font-size: 1.2rem;
}

.nav-file-title {
  font-size: 1.1rem;
}

.site-body-left-column {
  font-size: 1.05rem;
}

/* Kezdőlap gomb - első nav elem */
.nav-files-container>.tree-item:first-child .nav-file-title {
  font-weight: 700;
  font-size: 1.15rem;
  background-color: #1565c0;
  color: white !important;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: none;
  display: block;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-files-container>.tree-item:first-child .nav-file-title:hover {
  background-color: #1976d2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Better links - underline only on hover */
a.internal-link,
a[href],
.markdown-preview-view a.internal-link,
.published-container a {
  color: #4E8ECE !important;
  text-decoration: none;
  border-bottom: none;
}

a.internal-link:hover,
a[href]:hover,
.published-container a:hover {
  background-color: #F0EDE6;
  border-bottom: 1px solid #4E8ECE;
}

/* Cleaner lists */
.markdown-preview-view ul {
  padding-left: 1.5em;
}

.markdown-preview-view li {
  margin-bottom: 0.3em;
}

/* Sidebar link truncation - force single line with ellipsis */
.published-container .site-body-left-column .tree-item-inner {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 180px !important;
  display: block !important;
}

/* Site title - remove link styling, make it plain text */
.site-body-left-column-site-name {
  pointer-events: none !important;
  cursor: default !important;
  border-bottom: none !important;
}