
/* Minimal CSS Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: sans-serif;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* === Minimal Vanilla Style with Dark Mode === */



/* Light Mode - Softer White */
:root {
    --bg-color: #f7f7f7; /* Light gray instead of pure white */
    --text-color: #222222; /* Dark gray instead of black */
    --border-color: #555; /* Softer gray */
    --link-color: #00509e; /* Muted blue */
    --button-bg: #e0e0e0; /* Light gray */
    --button-hover: #d0d0d0; /* Slightly darker gray */
/* Background Colors */
    --bg-dark: #1d1b1b;   /* Deep black with a subtle warmth */
    --bg-light: #d4a373;  /* Muted peach, soft retro feel */

    /* Primary Colors */
    --primary: #ffcc00;   /* Bright yellow, classic pixel gold */
    --primary-dark: #d4a017; /* Slightly darker shade for depth */
    
    /* Accent Colors */
    --accent-blue: #4a90e2; /* Sky blue, reminiscent of retro UI */
    --accent-green: #50c878; /* Vibrant green, Game Boy vibes */
    --accent-red: #ff004d;  /* Bright red, classic arcade look */
    --accent-purple: #7e3f8f; /* Deep purple, for cool retro tones */

    /* Grayscale for Contrast */
    --gray-light: #e0e0e0; /* Light gray for UI elements */
    --gray-mid: #888888; /* Medium gray, subtle pixel shading */
    --gray-dark: #222222; /* Near black, deep contrast */

    --off-white-1: #F2F0EF;
    --off-white-2: #F5F5F5;
    --off-white-3: #F8F0E3;

    /* Text Colors */
    --text-light: #ffffff; /* Crisp white, high readability */
    --text-dark: #333333;  /* Deep gray, softer contrast */
    --font-size: 18px;
    --font-size: 1.05rem;
    /* this is the thing */
	--color-text: #000;
	--color-text-2: #9699a3;
	--color-text-3: #cfc9c2;
	--color-text-black: #000;
	--color-background-2: #fff;
	--color-background: rgb(244,244,239);
	/* --color-accent-cyan: #14d9f4; */
	/* --color-accent-cyan-2: #10adc3; */
	/* --color-accent-cyan-3: #0c8292; */
  --color-accent-cyan:   #109bb1;  /* darker than #14d9f4 */
  --color-accent-cyan-2: #0d7f91;  /* darker than #10adc3 */
  --color-accent-cyan-3: #0a5e68;  /* darker than #0c8292 */
  --color-accent-cyan-3: #084c54; /* darker than #0a5e68 */
	--color-accent-yellow: rgb(232,194,69);
	--color-accent-red: #f7768e;
	--color-accent-green: #9ece6a;
	--color-accent-lavender: #646cff;
	--color-white: #fff;
	--size-unit: 18px;
  --accent-font-family: 'Roboto', Inter, Avenir, Helvetica, Arial, Verdana, sans-serif;
  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-serif: Georgia, "Times New Roman", Times, serif;
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html {
  font-size: 16px;
}


body {
	color-scheme: light dark;

	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%;
	background-color: var(--off-white-1);

	color: var(--text-color);

	font-family: var(--font-family-sans-serif);
	line-height: 24px;
	font-weight: 400;
  font-size: var(--font-size);
}

/* Minimal CSS Reset + Typography Baseline */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: sans-serif;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

/* Typography baseline */
p,
ul,
ol,
pre,
table,
blockquote {
  margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5, h6 { font-size: 1rem; }

ul,
ol {
  padding-left: 1.5rem;
}

/* Media */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Forms */
button,
input,
select,
textarea {
  font: inherit;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

main {
    /* max-width: 800px; */
    /* margin: 12px auto; */
    padding: 1rem;
}

.entries, .post-detail-wrapper, .main-content-wrapper, .pagination {
    max-width: 800px;
    margin: 12px auto;
    padding: 1rem;
}

.post-detail-wrapper, .main-content-wrapper {
    margin-top: 96px;
}

.pinned-post {
  max-width: 800px;
  margin: 12px auto;
  margin-top: 96px;
  background-color: var(--off-white-2);
  padding: 2rem;
  border: 1px solid var(--gray-mid);
  border-radius: 15px;
}

.pinned-post .post-content {
  font-size: calc(1.25 * var(--font-size));

}

.e-content {
  margin-top: 2rem;
}

.p-name a {
  font-weight: 600;
}


/* Header */
header {
  display: flex;
  gap: 1em .5em;
  flex-wrap: wrap;
  align-items: center;
  padding: 1em;
  justify-content: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--gray-light);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Posts */
ul {
    padding: 0;
}

li {
    /*border-bottom: 1px solid var(--border-color);*/
    padding: 8px 0;
    margin-left:24px; 
}

/* Forms */
form {
    margin-bottom: 20px;
}

textarea, input {
    width: calc(100% - 10px);
    padding: 5px;
    margin-top: 5px;
    border: 1px solid var(--border-color);
}

/* Buttons */
button {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    background: var(--button-bg);
    cursor: pointer;
}

button:hover {
    background: var(--button-hover);
}

/* Dark Mode Toggle Button */
#theme-toggle {
    float: right;
    border: 1px solid var(--border-color);
    background: var(--button-bg);
    padding: 5px 10px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    color: #000;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ccc;
    width: 50%;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #ccc;
    width: 60%;
    max-height: 80vh;
    overflow-y: auto;
}

.media-scroll {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
}


/* Ensure images inside markdown content are responsive */
.post-content img {
    max-width: 100%; /* Never exceed the container width */
    height: auto;    /* Maintain aspect ratio */
    display: block;  /* Remove inline spacing issues */
    margin: 10px auto; /* Center images nicely */
}

/* === Post Content Styles (Markdown Rendered) === */
.post-content {
    line-height: 1.6;
    font-size: var(--font-size);
    max-width: 100%;
    word-wrap: break-word;
}

.post-content li {
  padding:0;
}

/* Headings */
.post-content h1, .post-content h2, .post-content h3, .post-content h4, 
.post-content h5,
.post-content h6 {
    font-weight: bold;
    font-family: var(--font-family-serif);
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Paragraphs */
.post-content p {
    line-height: 1.6; /* More breathing room between lines */
    /* margin-bottom: 8px; /* Ensure spacing between paragraphs */ */
    margin: 1.5rem 0;
}

/* Links */
.post-content a {
    text-decoration: none;
    font-weight: bold;
}

.post-content a:hover {
    text-decoration: underline;
}

/* Images */
.post-content img {
    max-height: 480px;
    width: auto; /* Maintain aspect ratio */
    /*height: auto;*/
    display: block;
    margin: 10px auto;
    border-radius: 4px;
}

/* Lists */
.post-content ul, .post-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

/* Blockquotes */
.post-content blockquote {
    border-left: 4px solid var(--color-accent-cyan-2);
    padding: 10px;
    padding-left: 25px;
    font-style: italic;
    background-color: var(--gray-light);
    margin: 10px 0;
}

/* Code Blocks */
.post-content pre {
    background: #222;
    font-family: var(--font-family-monospace);
    color: #ddd;
    padding: 10px;
    overflow-x: auto;
    border-radius: 4px;
}

/* Inline Code */
.post-content code {
    font-family: var(--font-family-monospace);
    background: #222;
    color: #ddd;
    padding: 2px 5px;
    border-radius: 4px;
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.post-content th, .post-content td {
    border: 1px solid #ddd;
    padding: 8px;
}

.post-content th {
    background: #f5f5f5;
    font-weight: bold;
}

/* Horizontal Rule */
.post-content hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

/* === Post Entry Styling === */
.post-entry {
  padding: 12px; /* Slightly reduce padding for a tighter layout */
    margin-bottom: 15px; /* Reduce gap between posts */
    border-bottom: 1px solid var(--gray-light);
}

.post-entry:last-child {
    border-bottom: none; /* Remove border for last post */
}




/* Make timestamps subtle but readable */
.post-entry small a {
    color: #aaa;
    text-decoration: none;
}

.post-entry small a:hover {
    text-decoration: underline;
}
.timestamp {
    font-size: 0.85em; /* Make it smaller */
    color: #6c757d; /* Gray it out */
    margin-left: 5px;
}

/* === Header Styling === */
/* Ensures the menu aligns with the content width */
.menu {
    /* width: 100%; */
    justify-content: space-between;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Make sure the home link and menu items align with the content */
.home-link {
    flex-shrink: 0; /* Prevent resizing */
    font-size: var(--font-size);
    font-weight: bold;
    padding: 0; /* Remove extra padding */
    margin: 0; /* Remove extra margin */
}

/* Align menu items to the right while maintaining structure */
.menu-right {
    display: flex;
    gap: 10px; /* Adjust spacing */
    flex-grow: 1;
    justify-content: flex-end; /* Aligns items to the right */
}

.menu-right a {
  font-size: calc(var(--font-size) * 0.8);
}

/* Remove extra padding & margin from links */
.menu-item {
    padding: 0;
    margin: 0;
    text-decoration: none;
    font-size: var(--font-size);
}

/* Responsive for Small Screens */
@media (max-width: 600px) {
    .menu {
        flex-direction: column;
        align-items: center;
    }

    .menu-right {
        flex-direction: column;
        align-items: center;
    }
}


/* === Generic Action Button Styling === */
.btn-action {
    display: inline-block;
    background: var(--accent-green); /* Bright, attention-grabbing color */
    font-weight: bold;
    padding: 8px 16px;
    /*border-radius: 6px;*/
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-action:hover {
    background: var(--accent-green); /* Bright, attention-grabbing color */
    transform: scale(1.05); /* Subtle zoom effect */
}

.btn-action:active {
    transform: scale(0.98); /* Slight press effect */
}

.btn-primary {
    background-color: var(--color-accent-cyan-2);
    border: none;
    padding: 8px 12px;
    font-size: var(--font-size);
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-accent-cyan-3); /* Darker blue on hover */
}

.btn-secondary {
    background-color: #6c757d; /* Neutral gray */
    border: none;
    padding: 8px 12px;
    font-size: var(--font-size);
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #545b62; /* Slightly darker gray */
}
.site-footer {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    margin-top: 30px;
}

.reply-button {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    color: var(--color-accent-cyan-2);
    background: transparent;
    border: 1px solid var(--color-accent-cyan-2);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.reply-button:hover {
    background: var(--color-accent-cyan-2);
    color: white;
}

.replies-container {
    margin-top: 20px; /* Add space above replies */
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.reply {
    padding: 10px;
    margin: 10px 0;
    margin-bottom: 12px; /* Space between individual replies */
    border-left: 3px solid var(--color-accent-cyan-3); /* Subtle highlight on replies */
    /*background-color: #f8f9fa; /* Light background to separate replies */*/
    font-size: 14px;
}

.reply strong {
    font-size: 16px;
}

.reply small {
    color: #666;
}

.reply-count {
    font-size: 12px;
    color: #6c757d; /* Subtle gray */
    margin-left: 5px;
}

.reply-count {
    font-size: 12px;
    color: #007bff; /* Make it look clickable */
    text-decoration: none;
}

.reply-count:hover {
    text-decoration: underline;
}


a {
	font-weight: 500;
	color: var(--color-accent-cyan-2);
	text-decoration: inherit;
}
a:hover {
	color: var(--color-accent-cyan);
}
a:visited {
	color: var(--color-accent-cyan-3);
}
a:visited:hover {
	color: var(--color-accent-cyan-2);
}

.profile-section {
flex: 1;
  /* max-width: 800px; */
  display: flex;
  flex-direction: row;
  align-items: center;
  display: flex;
  gap: 1em .5em;
  flex-wrap: wrap;
  align-items: center;
  padding: 1em;
}

.profile-image {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	/* margin: 0 15px; */
	object-fit: contain;
	object-position: initial;
	filter: none;
	/* margin-bottom: 16px; */
}

.profile-name {
	text-align: center;
	margin: 0 15px;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.5em;
	text-overflow: ellipsis;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
  margin-right: auto;
}

.profile-description {
	padding: 0px;
	margin: 0px;
	margin-top: 4px;
	text-align: center;
	font-size: var(--font-size);
	font-weight: 500;
	line-height: 1.5em;
}

@media screen and (max-width: 800px) {
	#links a {
		width: 100%;
		padding: 16px 0;
	}
	main {
		padding: 64px 0;
	}
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes highlightFade {
  from {
    background-color: var(--color-accent-cyan-2);
  }
  to {
    background-color: transparent;
  }
}


.post-entry.new-post {
  animation: fadeInSlide 0.4s ease-out, highlightFade 1s ease-in;
  /* background-color: #fff8d3; /* light yellow */ */
  border-radius: 4px;
}

#gdpr-widget {
  position: fixed;
  bottom: 0;
  right: 25px;
  width: 100%;
  background: white;
  max-width: 500px;
  margin: 25px auto;
  margin: 25px auto;
  border: 1px solid #ccc;
  padding: 25px;
}

.hide {
  display: none;
}
