/* Center the header title and navigation */
header {
  justify-content: center !important;
  text-align: center;
}

header .main {
  width: 100%;
  text-align: center;
}

nav {
  justify-content: center !important;
  width: 100%;
}

/* Ensure site description is also centered */
.site-description {
  justify-content: center !important;
  text-align: center;
  width: 100%;
}

/* Center footer items */
footer {
  justify-content: center !important;
}

/* Change all red elements to hot pink */
:root {
  --color-primary: #FF1493 !important;
  --color-primary-hover: #FF69B4 !important;
}

/* Asterisks in lists */
ul > li::before {
  color: #FF1493 !important;
}

/* Heading markers (# symbols) */
h1::before, h2::before, h3::before, h4::before, h5::before, h6::before {
  color: #FF1493 !important;
}

/* Links */
a {
  border-bottom-color: #FF1493 !important;
  border-block-end-color: #FF1493 !important;
}

a:hover, a:focus {
  background-color: #FF69B4 !important;
  outline-color: #FF1493 !important;
}

/* Selection */
::selection {
  background: #FF1493 !important;
}

::-moz-selection {
  background: #FF1493 !important;
}

/* Figure captions */
figure h4::before {
  color: #FF1493 !important;
}

/* Tags */
.tags a {
  border-bottom-color: #FF1493 !important;
  border-block-end-color: #FF1493 !important;
}

.tags a:hover, .tags a:focus {
  background-color: #FF69B4 !important;
}

/* Social icons hover */
.soc:hover, .soc:focus {
  color: #FF1493 !important;
  outline-color: #FF1493 !important;
}

/* Draft label */
.draft-label {
  color: #FF1493 !important;
}

/* Double the size of blog post titles */
.post-content .title h1,
.title h1.title {
  font-size: 4rem !important;
}

.post-content .title h1 {
  line-height: 1.2 !important;
}

/* Hero Section Styling */
.hero-tagline {
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
  margin: 2rem 0;
  padding: 1rem 0;
}

.hero-section {
  text-align: center;
  margin: 2rem 0 3rem 0;
  padding: 2rem 0;
}

.mini-bio {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hero-link {
  margin: 1rem 0;
}

.hero-link a {
  font-size: 1rem;
  text-decoration: none;
}

/* Featured Project Section */
.featured-project {
  margin: 3rem 0;
  text-align: center;
}

.featured-project h2 {
  margin-bottom: 1.5rem;
}

.project-card {
  background: rgba(255, 20, 147, 0.05);
  border-left: 3px solid #FF1493;
  padding: 1.5rem;
  margin: 1rem 0;
  text-align: left;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.project-subtitle {
  font-size: 1rem;
  font-style: italic;
  color: #666;
  margin-top: 0;
  margin-bottom: 1rem;
}

.project-card p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #FF1493;
  color: white !important;
  text-decoration: none !important;
  border: none !important;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.project-cta:hover {
  background: #FF69B4 !important;
}

/* Latest Updates Section */
.latest-updates {
  margin: 3rem 0;
}

.latest-updates h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.update-item {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 20, 147, 0.2);
}

.update-item h3 {
  margin-bottom: 0.5rem;
}

.update-item h3.title {
  font-size: 1.5rem;
}

.update-item time {
  font-size: 0.9rem;
  color: #666;
  display: block;
  margin-bottom: 0.5rem;
}

.update-item .excerpt {
  margin-top: 0.5rem;
  line-height: 1.5;
}

.see-all {
  text-align: center;
  margin-top: 2rem;
}

.see-all a {
  font-size: 1.1rem;
}

/* Mermaid diagram styling - MAKE IT READABLE */
.mermaid {
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  margin: 2rem auto !important;
  padding: 0 !important;
  min-height: 400px !important;
  overflow-x: auto !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.mermaid svg {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 400px !important;
  font-size: 16px !important;
}

/* Make nodes bigger */
.mermaid .node rect,
.mermaid .node circle,
.mermaid .node ellipse,
.mermaid .node polygon {
  stroke-width: 2px !important;
}

/* Make text bigger */
.mermaid .nodeLabel,
.mermaid .edgeLabel {
  font-size: 16px !important;
  font-weight: 500 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .mermaid {
    min-height: 250px !important;
    padding: 0.5rem !important;
    margin: 1rem auto !important;
  }
  
  .mermaid svg {
    min-height: 250px !important;
    font-size: 12px !important;
  }

  .mermaid .nodeLabel,
  .mermaid .edgeLabel {
    font-size: 12px !important;
  }
}

/* Hide disclosure triangles on collapsible sections */
details summary {
  list-style: none;
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::-moz-details-marker {
  display: none;
}

/* Hide the main page title on the about page */
.single .title {
  display: none;
}

/* Image sizing system - mobile-friendly and consistent */
/* Memes - centered and small */
.meme-img {
  max-width: 120px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* Screenshots/Photos - medium size */
.screenshot-img, .photo-img {
  max-width: 250px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* Wide images - for timelines, diagrams */
.wide-img {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* Mobile responsive - everything fits screen width on mobile */
@media (max-width: 768px) {
  /* Force light mode on mobile - white background with black text */
  body,
  html,
  .content {
    background-color: #ffffff !important;
    color: #232333 !important;
  }

  /* Force all text elements to black on mobile */
  p,
  h1, h2, h3, h4, h5, h6,
  strong, em, b, i,
  span, div,
  header, header a,
  nav, nav a,
  header .main, header .main a {
    color: #232333 !important;
  }

  /* Ensure links are visible */
  a {
    color: #232333 !important;
  }

  /* Override dark mode for guides section on mobile */
  .featured-guides {
    background: #f8f9fa !important;
  }

  .guide-card {
    background: white !important;
    border-color: #e0e0e0 !important;
  }

  .guide-card p,
  .guide-card h3,
  .guide-card h3 a {
    color: #232333 !important;
  }

  .guide-tags span {
    background: #e8f4ff !important;
    color: #e91e63 !important;
  }

  /* Override dark mode for posts section on mobile */
  .post-card {
    background: white !important;
    border-color: #e0e0e0 !important;
  }

  .post-card .title,
  .post-card .title a,
  .post-card .excerpt,
  .post-meta {
    color: #232333 !important;
  }

  .post-tags-preview .tag {
    background: #f0f0f0 !important;
    color: #666 !important;
  }

  .meme-img,
  .screenshot-img,
  .photo-img,
  .wide-img {
    max-width: 100%;
    padding: 0 0.5rem;
    margin: 1rem auto;
  }

  .video-container {
    padding: 0 0.5rem;
  }

  .video-container video {
    max-width: 100%;
  }
}

/* Video container */
.video-container {
  text-align: center;
  margin: 2rem 0;
}

.video-container video {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
}

/* Image captions */
.img-caption {
  font-size: 0.85rem;
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Spoiler alert sections */
.spoiler-details {
  border: none;
  background: transparent;
}

.spoiler-summary {
  border: none;
  list-style: none;
  cursor: pointer;
}

.spoiler-header {
  text-align: center;
  padding: 1rem 0;
}

.spoiler-alert {
  font-size: 2em;
  color: #FF1493;
  font-weight: bold;
}

.spoiler-hint {
  font-size: 0.9em;
}

/* Inline heading style (for collapsible sections) */
.inline-heading {
  display: inline;
}

/* Diagram container */
.diagram-container {
  max-width: 250px;
  margin: 0.5rem auto;
}

/* Indent and space subsections within main collapsible sections */
details > details {
  margin-left: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Add more spacing between main sections */
body > details,
article > details {
  margin-bottom: 2rem;
}
