/* Obsidian Publish */ 


/* Import IBM Plex Mono from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

/* Apply to entire site - more comprehensive selectors */
body, 
.markdown-preview-view,
.markdown-rendered,
.cm-content,
h1, h2, h3, h4, h5, h6,
p, li, a, span,
.view-content,
.markdown-preview-section {
  font-family: 'IBM Plex Mono', monospace !important;
  font-weight: 500; /* Medium weight */
}

/* Body and background */
body {
  background-color: #1B1918;
  color: #F2BC3B;
}

/* Obsidian Publish variables */
.published-container {
  /* Navigation colors */
  --nav-item-color: #F2BC3B; /* Non-active nested items - yellow */
  --nav-item-color-active: #F23908; /* Active nested items - red */
  --nav-parent-item-color: #F2BC3B; /* Top-level items - yellow */
  --nav-parent-item-color-active: #F23908; /* Active top-level items - red */
  --nav-item-border-color: #1B1918; /* Hide borders */
  --nav-item-border-color-active: #1B1918; /* Hide active borders */
  
  /* Sidebar styling - remove dividing line */
  --sidebar-left-background: #1B1918; /* Left sidebar background */
  --sidebar-left-border-width: 0px; /* Remove right border of left sidebar */
  --sidebar-left-border-color: #1B1918; /* Match border color to background */
  --sidebar-right-background: #1B1918; /* Right sidebar background */
  --sidebar-right-border-width: 0px; /* Remove left border of right sidebar */
  --sidebar-right-border-color: #1B1918; /* Match border color to background */
  
  /* General background */
  --background-primary: #1B1918;
  --background-secondary: #1B1918;
  --divider-color: #1B1918;
  --background-modifier-border: #1B1918;

   /* Mobile menu icon - YELLOW */
  --site-menu-icon-color: #F2BC3B;
  --site-menu-icon-color-hover: #F2BC3B;
}

/* Site title - make it yellow */
.site-body-left-column-site-name,
.site-name,
.published-container .site-body-left-column-site-name {
  color: #F2BC3B !important;
}


/* Main content area */
.markdown-preview-view,
.view-content {
  background-color: #1B1918;
  color: #F2BC3B;
  text-shadow: 0 0 5px rgba(242, 188, 59, 0.3);
}

/* Headers specifically */
h1, h2, h3, h4, h5, h6 {
  color: #F2BC3B;
  font-weight: 600; /* Slightly bolder for headers */
}

/* Accent/active state color */
.theme-light, .theme-dark {
  --interactive-accent: #F2BC3B;
  --text-accent: #F2BC3B;
  --text-accent-hover: #F2BC3B;
}

/* Make all links underlined */
a {
  color: #F2BC3B;
  text-decoration: underline;
}

a:hover {
  color: #F2BC3B;
  text-decoration: underline;
  opacity: 0.8;
}

/* Logo scaling */
img[src*="vastland-codex.png"] {
  max-width: 120px;
  height: auto;
}


/* Hide site title text */
.site-body-left-column-site-name {
  font-size: 0 !important;
  line-height: 0 !important;
}


/* General tag styling */
.tag {
  background-color: #292321 !important;
  color: #F2BC3B !important;
  padding: 4px 8px !important; /* More padding: vertical horizontal */
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
}

/* Tag hover state */
.tag:hover {
  opacity: 0.8;
}

/* Specific tag colors */

/* Personnel tag - blue */
a.tag[href*="technology"],
.tag[data-tag-name="technology"] {
  color: #39D8F0 !important; /* Blue text */
}

/* Concept tag - keep yellow or choose another color */
a.tag[href*="concept"],
.tag[data-tag-name="concept"] {
  color: #F2BC3B !important; /* Yellow */
}

/* Chapter tags - red */
a.tag[href*="chapter"],
.tag[data-tag-name*="chapter"] {
  color: #F23908 !important; /* Red */
}

/* Add more specific tags as needed */
a.tag[href*="location"],
.tag[data-tag-name="location"] {
  color: #00D9A3 !important; /* Teal/cyan */
}

a.tag[href*="event"],
.tag[data-tag-name="event"] {
  color: #FF6B9D !important; /* Pink */
}



/* Optional: CRT scanline effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9999;
}





/* Additional CSS for Terminal Effects */

/* Blinking cursor animation */
.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: #F2BC3B;
    animation: blink 1s infinite;
    margin-left: 4px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}


/* Boot sequence overlay */
#boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1B1918;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.boot-container {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.logo-container {
    margin-bottom: 40px;
}

.boot-logo {
    max-width: 60px;
    height: auto;
    animation: logoRotate 2s ease-in-out infinite;
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(180deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

.boot-text {
    font-family: 'IBM Plex Mono', monospace;
    color: #F2BC3B;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
}

.boot-text div {
    margin-bottom: 8px;
}

/* Mobile adjustments for boot sequence */
@media (max-width: 768px) {
    .boot-logo {
        max-width: 120px;
    }
    
    .boot-container {
        padding: 20px;
    }
    
    .boot-text {
        font-size: 12px;
    }
}



/* Enable to Hide original footer
.publish-footer,
.site-footer,
footer {
  display: none !important;
}


/* Hide default Obsidian Publish footer */
.publish-footer,
.site-footer {
    display: none !important;
}

/* Style custom footer */
.custom-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1B1918;
    padding: 15px 40px;
    text-align: right;
    font-size: 14px;
    z-index: 1000;
}

.custom-footer a {
    background-color: #171514;
    color: #F2BC3B !important;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none !important;
    margin-left: 10px;
    font-family: 'IBM Plex Mono', monospace;
    display: inline-block;
}

.custom-footer a:hover {
    opacity: 0.8;
}

/* Mobile footer styling */
@media (max-width: 768px) {
    .custom-footer {
        display: block !important;
        padding: 15px 20px;
        text-align: center;
    }
    
    .custom-footer a {
        margin: 5px;
    }
}




/* Graph view CSS variables */
.published-container {
    --graph-text: #F2BC3B; /* Node text color */
    --graph-line: rgba(242, 188, 59, 0.3); /* Line color */
    --graph-node: #F2BC3B; /* Resolved node color (yellow) */
    --graph-node-unresolved: rgba(242, 188, 59, 0.5); /* Unresolved nodes */
    --graph-node-focused: #F23908; /* Focused/active node color (red) */
    --graph-node-tag: #F2BC3B; /* Tag node color */
    --graph-node-attachment: #F2BC3B; /* Attachment node color */
}

/* Graph view container background */
.graph-view,
.graph-view-container {
    background-color: #1B1918 !important;
}

/* Right sidebar styling */
.workspace-split.mod-right-split {
    background-color: #1B1918 !important;
}

/* Outline/TOC styling */
.tree-item-self {
    color: #F2BC3B !important;
    font-family: 'IBM Plex Mono', monospace !important;
}

/* Outline active item */
.tree-item.is-active > .tree-item-self {
    background-color: #171514 !important;
    color: #F23908 !important;
}