/* Markdown */
html {
  color: #282828;
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
  line-height: 1.6em;
}
body{
  display: block;
  margin: 8px;
}
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

::selection {
  background: var(--maincolor);
  color: #fff;
}

p {
  font-family: 'Fira Sans', sans-serif;
  line-height: 1.5;
}

hr {
  border: 0;
  border-top: 3px dotted var(--bordercl);
  margin: 1em 0;
}

blockquote {
  border-left: 3px solid var(--bordercl);
  color: #737373;
  margin: 0;
  padding-left: 1em;
}

a {
  border-bottom: 3px solid var(--maincolor);
  color: inherit;
  text-decoration: none;
}
a:hover {
    color: var(--maincolor);
}

ul {
  list-style-type: none;
  padding-left: 2ch;
}
ul li {
  text-indent: -2ch;
  text-decoration: none;
}

/* Images */
img  {
  border: 3px solid #ececec;
  max-width: 100%;
}

figure {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  max-width: 100%;
}

figure img {
  max-height: 500px;
}

@media screen and (min-width: 600px) {
  figure {
    padding: 0 40px;
  }
}

figure h4 {
  font-size: 1rem;
  margin: 0;
  margin-bottom: 1em;
}
figure h4::before {
  content: '↳ ';
}

/* Code blocks */
code {
  background-color: #f1f1f1;
  padding: .1em .2em;
}

pre {
  background-color: #ececec;
  line-height: 1.4;
  overflow-x: auto;
  padding: 1em;
}

.highlight pre ::selection {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

pre code {
  background-color: transparent;
  color: inherit;
  font-size: 100%;
  padding: 0;
}

/* Containers */
.content {
  margin-bottom: 4em;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  padding: 0 1ch;
  word-wrap: break-word;
}

/* Header */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 1em 0;
  line-height: 2.5em;
}
header .main {
  font-size: 1.5rem;
}
h1, h2, h3, h4, h5, h6 {
  font-size: 1.2rem;
  margin-top: 2em;
}

.meta {
  color: #999;
  letter-spacing: -0.5px;
}

.toc {
  background-color: #ececec;
  color: #232333;
  padding: 10px;
  padding-bottom: 0;
  border-radius: 5px;
  display: inline-block;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  border-top: 0.4rem dotted var(--bordercl);
  padding: 2rem 0rem;
  margin-top: 2rem;
}
.soc {
  display: flex;
  align-items: center;
  border-bottom: none;
}
.border {
  color: #fe8019;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border: 1px solid;
}
.footer-info {
  padding: var(--footer-padding);
  text-align: center;
}

/* Common */
.title h1 {
  margin-bottom: 0;
}

time {
  color: grey;
}

/* Posts */
article .title {
  margin-bottom: 1em;
}


/* Callout */
.callout {
  background-color: var(--callouctcolor);
  color: #fff;
  padding: 1em;
}

.callout p {
  font-family: 'IBM Plex Mono', monospace;
  margin: 0;
}

.callout a {
  border-bottom: 3px solid #fff;
}

.callout a:hover {
  background-color: #fff;
  color: var(--callouctcolor);
}

.site-description {
display: flex;
justify-content: space-between;
}
.tags li::before{
  content: "🏷 ";
}
.tags a{
  border-bottom: 3px solid var(--maincolor); 
}
.tags a:hover{
  color:white;
  background-color: var(--hovercolor); 
}
svg{
  max-height: 15px;
}
.soc:hover{
  color: white;
}
.draft-label{ 
    color: var(--bordercl);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 6px;
    background-color: #f9f2f4;
}
.highlight {
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.highlight pre code[class*="language-"] {
  -webkit-overflow-scrolling: touch;
}
.highlight pre code[class*="language-"]::before {
  background: black;
  border-radius: 0 0 0.25rem 0.25rem;
  color: white;
  font-size: 12px;
  letter-spacing: 0.025rem;
  padding: 0.1rem 0.5rem;
  position: absolute;
  right: 1rem;
  text-align: right;
  text-transform: uppercase;
  top: 0;
}

.highlight pre code[class=language-javaScript]::before,
.highlight pre code[class="language-js"]::before {
content: "js";
background: #f7df1e;
color: black;
}
.highlight pre code[class*='language-yml']::before,
.highlight pre code[class*='language-yaml']::before {
content: 'yaml';
background: #f71e6a;
color: white;
}
.highlight pre code[class*='language-shell']::before,
.highlight pre code[class*='language-bash']::before,
.highlight pre code[class*='language-sh']::before {
content: 'shell';
background: green;
color:white
}
.highlight pre code[class*='language-json']::before{
content: 'json';
background: dodgerblue;
 color: #000000 
}
.highlight pre code[class*='language-python']::before,
.highlight pre code[class*='language-py']::before {
content: 'py';
background: blue;
color: yellow ;
}
.highlight pre code[class*='language-css']::before{
content: 'css';
background: cyan;
color: black ;
}
.highlight pre code[class*='language-go']::before{
content: 'Go';
background: cyan;
color: royalblue ;
}
.highlight pre code[class*='language-md']::before,
.highlight pre code[class*='language-md']::before{
content: 'Markdown';
background: royalblue;
color: whitesmoke ;
}

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

table th{
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
  font-size: large;
}

table td{
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}
:root{
--maincolor: #fe8019;
--bordercl:#b16286;
--callouctcolor:#458588;
--hovercolor:#b8bb26;
--darkMaincolor: #fe8019;
--fgcolor: #ebdbb2;
--bgcolor: #282828;
--titlecolor: #83c07c;
--titlecolorhover: #689d6a;
--posttitle: #b16286;
}
html {
  background-color: var(--bgcolor);
  color: var(--fgcolor);
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
  line-height: 1.6em;
}
body{
  display: block; margin: 8px;}

::selection {
  background: red;
  color: #fff;
  text-shadow: none;
}

hr {
  border-top: 3px dotted blue;
}
code {
  background-color: lightblue;
  color: black;
  text-decoration: bold;
  padding: 0.1em 0.2em;
}
pre {
  background-color: #272822;
  line-height: 1.4;
  overflow-x: auto;
  padding: 1em;
}
blockquote {
  border-color: blue;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ddd;
}

.toc {
background-color: #272822;
color: white;
}

.subtitle::before, .titlebar::before {
content: none;
}

.footer-info {
text-align: center !important;
width: 100%;
display: block;
}

.footer {
text-align: center !important;
display: flex;
}

a {
border-bottom: 0px solid var(--darkMaincolor);
color: #d65d0e;
text-decoration: none;
}

a:hover {
    background-color: var(--hovercolor);
    color: #1d2021;
    text-decoration: none;
}

/* Remove hover background from specific elements */
.recommended-post:hover,
.recommended-post-title:hover,
.tags-list a:hover {
    background-color: transparent;
    color: var(--maincolor);
}

.logo {
    width:14%;
    height:auto;
    border: none;
    display: block;   /* Make the image behave like a block element */
    margin-left: auto;
    margin-right: auto;
}


.logo {
    width: 20%;
    max-width: 120px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(255, 255, 255, 0.5));
}

.titlebar {
    font-family: "BBH Bogle", sans-serif; 
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
}

h1.titlebar {
    font-size: 115px;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    letter-spacing: 0.02em;
}

h1.titlebar a {
    color: var(--titlecolor);
    text-decoration: none;
}

h1.titlebar a:hover {
    color: var(--titlecolorhover);
    background-color: var(--bgcolor);
}


.titlebar-wrap {
    display: flex;
    align-items: center;      /* vertical alignment */
    justify-content: center;  /* center as a unit */
}

.footermenu {
    text-align: center;
}

h1.post-title {
    font-size: 20px;
}
h1.post-title a {
    color: var(--posttitle);
}
h1.post-title a:hover {
    color: var(--titlecolorhover);
    background-color: transparent;
}

.oldpodbutton {
    border: 1px;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-transform: uppercase;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    background-color: red;
    border-radius: 8px;
}

.audio {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.audio h1,
.podhead2 {
    margin: 0;
}

.pagination {
    font-family: "BBH Bogle", sans-serif;
    font-weight: 400;
    font-size: 2em;
    font-style: normal;
    text-transform: uppercase;
    text-align: center;
    margin-top: 75px;
    margin-bottom: 45px;
}

.pagination a{
    padding: 0 15px 0 15px;
}


/* Post Metadata */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-top: 2px solid var(--bordercl);
    font-size: 0.9rem;
    color: var(--fgcolor);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta-item a {
    color: var(--fgcolor);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.post-meta-item a:hover {
    color: var(--maincolor);
    border-bottom-color: var(--maincolor);
    background-color: transparent;
}

.meta-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--maincolor);
}

.draft-notice {
    text-align: center;
    margin: 1rem 0;
}

.post-meta-tags {
    margin-left: auto;
}

.tags-list {
    display: inline;
}

.tags-list a {
    color: var(--maincolor);
    text-decoration: none;
    border-bottom: 1px solid var(--maincolor);
}

.tags-list a:hover {
    border-bottom-color: var(--hovercolor);
}

/* Link Post Styles */
.link-post {
    margin: 20px auto;
    padding: 20px 0;
}

.link-post .post-title {
    padding: 20px 0;
    margin: 0;
}

.link-post .post-content {
    padding: 10px 0 15px 0;
    margin: 0;
}

.link-description-callout {
    background-color: #3c3836;
    border-left: 3px solid var(--maincolor);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Videos Page */
.videos-loading,
.videos-error {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-spinner {
    border: 4px solid #3c3836;
    border-top: 4px solid var(--maincolor);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.videos-error {
    background-color: #3c3836;
    border-radius: 8px;
    border-left: 4px solid #fb4934;
}

.videos-error a {
    color: var(--maincolor);
    text-decoration: underline;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.video-card {
    background-color: #3c3836;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 2px solid transparent;
}

.video-card:hover {
    background-color: #282828;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #1d2021;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.video-card:hover .video-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-overlay svg {
    width: 120px !important;
    height: 120px !important;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
    min-width: 120px;
    min-height: 120px;
    transition: color 0.3s ease;
}

.video-card:hover .video-play-overlay svg {
    color: #d3869b;
}

.video-info {
    padding: 1rem;
}

.video-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--fgcolor);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    margin: 0;
    font-size: 0.85rem;
    color: var(--maincolor);
}

.page-description {
    text-align: center;
    font-size: 1.1rem;
    color: #d5c4a1;
    margin-bottom: 2rem;
}

.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

.load-more-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3c3836;
    border: 2px solid var(--bordercl);
    border-radius: 8px;
    color: var(--fgcolor);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.load-more-btn:hover {
    background-color: #282828;
    border-color: var(--maincolor);
    color: var(--maincolor);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .load-more-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .video-info {
        padding: 0.75rem;
    }

    .video-title {
        font-size: 0.9rem;
    }
}

/* 404 Error Page */
.error-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.error-container {
    max-width: 800px;
    width: 100%;
}

.error-code {
    font-size: 10rem;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(45deg, var(--maincolor), #d65d0e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.error-message {
    text-align: center;
    margin-bottom: 3rem;
}

.error-message h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: var(--fgcolor);
}

.error-subtitle {
    font-size: 1.2rem;
    color: #d5c4a1;
    margin: 0;
}

.error-terminal {
    background-color: #1d2021;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background-color: #282828;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #3c3836;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #504945;
}

.terminal-button:nth-child(1) {
    background-color: #fb4934;
}

.terminal-button:nth-child(2) {
    background-color: #fabd2f;
}

.terminal-button:nth-child(3) {
    background-color: #b8bb26;
}

.terminal-title {
    margin-left: auto;
    font-size: 0.85rem;
    color: #a89984;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
}

.terminal-body p {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #ebdbb2;
}

.terminal-prompt {
    color: var(--maincolor);
    font-weight: bold;
    margin-right: 0.5rem;
}

.terminal-error {
    color: #fb4934;
}

.terminal-suggestion {
    color: #b8bb26;
}

.terminal-suggestion a {
    color: #83a598;
    text-decoration: underline;
}

.terminal-suggestion a:hover {
    color: var(--maincolor);
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.error-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: #3c3836;
    border: 2px solid var(--bordercl);
    border-radius: 8px;
    color: var(--fgcolor);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.error-button svg {
    width: 20px;
    height: 20px;
}

.error-button:hover {
    background-color: #282828;
    border-color: var(--maincolor);
    color: var(--maincolor);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.error-tips {
    background-color: #3c3836;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--maincolor);
}

.error-tips p {
    margin: 0 0 1rem 0;
    color: var(--maincolor);
    font-weight: bold;
}

.error-tips ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #d5c4a1;
}

.error-tips li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }

    .error-message h1 {
        font-size: 1.8rem;
    }

    .error-subtitle {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-button {
        width: 100%;
        justify-content: center;
    }
}

/* Author pages */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--maincolor);
}

.authors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.author-card {
    background-color: #3c3836;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--bordercl);
    transition: transform 0.3s ease, border-left-color 0.3s ease;
}

.author-card:hover {
    transform: translateY(-2px);
    border-left-color: var(--maincolor);
}

.author-card h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.author-card h2 a {
    color: var(--fgcolor);
    text-decoration: none;
}

.author-card h2 a:hover {
    color: var(--maincolor);
}

.author-post-count {
    margin: 0;
    color: var(--maincolor);
    font-size: 0.9rem;
}

.author-posts {
    margin: 2rem 0;
}

.post-summary {
    background-color: #3c3836;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--bordercl);
    transition: border-left-color 0.3s ease;
}

.post-summary:hover {
    border-left-color: var(--maincolor);
}

.post-summary-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.post-summary-title a {
    color: var(--fgcolor);
    text-decoration: none;
}

.post-summary-title a:hover {
    color: var(--maincolor);
}

.post-summary-excerpt {
    margin: 1rem 0 0 0;
    color: #d5c4a1;
    line-height: 1.6;
}

/* Collapse/Details shortcode styling */
details {
    background-color: #3c3836;
    border-left: 3px solid var(--bordercl);
    border-radius: 4px;
    padding: 0;
    margin: 1.5rem 0;
    transition: border-left-color 0.3s ease;
}

details[open] {
    border-left-color: var(--maincolor);
}

summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    color: var(--maincolor);
    list-style: none;
    user-select: none;
    transition: background-color 0.3s ease;
}

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

summary::before {
    content: '▶ ';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

details[open] summary::before {
    transform: rotate(90deg);
}

summary:hover {
    background-color: #282828;
}

details .content {
    padding: 0 1.5rem 1rem 1.5rem;
    color: var(--fgcolor);
    line-height: 1.6;
}

/* Callout shortcode styling */
.callout {
    background-color: #3c3836;
    border-left: 4px solid var(--maincolor);
    border-radius: 4px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--fgcolor);
}

.callout-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.callout p {
    font-family: inherit;
    margin: 0;
    line-height: 1.6;
}

.callout a {
    border-bottom: 2px solid var(--maincolor);
    color: var(--maincolor);
}

.callout a:hover {
    background-color: var(--maincolor);
    color: #1d2021;
}

.link-attribution {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--maincolor);
}

.link-post-button {
    margin: 20px 0;
    text-align: center;
}

.link-post-button .button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--maincolor);
    color: var(--bgcolor);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: opacity 0.2s ease;
}

.link-post-button .button:hover {
    opacity: 0.8;
}

/* Video Post Styles */
.video-post .video-container {
    margin: 2rem 0;
}

.video-post .video-figure {
    margin: 0;
    display: block;
    width: 100%;
}

.video-post .featured-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.video-post .featured-video iframe,
.video-post .featured-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-post .video-caption {
    margin-top: 1rem;
    font-style: italic;
    color: var(--maincolor);
    font-size: 0.9rem;
    text-align: center;
}

.video-post-preview {
    margin-bottom: 2rem;
}

.video-preview {
    margin: 1rem 0;
}

.preview-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.preview-video iframe,
.preview-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

/* Image Post Styles */
.image-post .image-container {
    margin: 2rem 0;
    text-align: center;
}

.image-post .image-figure {
    margin: 0;
    display: inline-block;
    max-width: 100%;
}

.image-post .featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 3px solid var(--bordercl);
}

.image-post .featured-image:hover {
    transform: scale(1.02);
}

.image-post .image-caption {
    margin-top: 1rem;
    font-style: italic;
    color: var(--maincolor);
    font-size: 0.9rem;
    text-align: center;
}

.image-post-preview {
    margin-bottom: 2rem;
}

.image-preview {
    margin: 1rem 0;
}

.image-preview .preview-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 6px;
    transition: opacity 0.3s ease;
    border: 3px solid var(--bordercl);
}

.image-preview .preview-image:hover {
    opacity: 0.9;
}

.image-caption-preview {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--maincolor);
    font-size: 0.85rem;
    text-align: center;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover {
    color: var(--maincolor);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-style: italic;
    font-size: 1rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
    max-width: 80%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-post .video-container,
    .image-post .image-container {
        margin: 1.5rem 0;
    }

    .video-post .featured-video,
    .image-post .featured-image {
        border-radius: 6px;
    }
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem 0 2rem 0;
    padding: 2rem 0;
    border-top: 2px solid var(--bordercl);
    border-bottom: 2px solid var(--bordercl);
}

.nav-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background-color: var(--bgcolor);
    border: 2px solid var(--bordercl);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-button:hover {
    background-color: #282828;
    border-color: var(--maincolor);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.85rem;
    color: var(--maincolor);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.nav-title {
    font-size: 1.1rem;
    color: var(--fgcolor);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-button:hover .nav-title {
    color: var(--maincolor);
}

/* Recommended Reading */
.recommended-reading {
    margin: 2rem 0;
    padding: 2rem 0;
}

.recommended-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--maincolor);
    text-align: center;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.recommended-post {
    display: block;
    padding: 1.5rem;
    background-color: #3c3836;
    border-radius: 8px;
    border-left: 3px solid var(--bordercl);
    transition: transform 0.3s ease, border-left-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    min-height: 180px;
    position: relative;
}

.recommended-post:hover {
    transform: translateY(-2px);
    border-left-color: var(--maincolor);
}

.recommended-post article {
    display: block;
    overflow: hidden;
    position: relative;
}

.recommended-post-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: var(--fgcolor);
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.recommended-post:hover .recommended-post-title {
    color: var(--maincolor);
}

.recommended-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--maincolor);
}

.recommended-post-meta .meta-icon {
    width: 14px;
    height: 14px;
}

.recommended-post-excerpt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d5c4a1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Patreon Callout */
.patreon-callout {
    margin: 2rem 0;
    padding: 1.25rem;
    background-color: #3c3836;
    border-left: 3px solid #ff424d;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.patreon-callout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.patreon-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.patreon-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.patreon-text {
    flex: 1;
}

.patreon-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: var(--fgcolor);
}

.patreon-text p {
    margin: 0 0 0.75rem 0;
    color: #d5c4a1;
    line-height: 1.5;
    font-size: 0.9rem;
}

.patreon-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #ff424d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #ff424d;
}

.patreon-button:hover {
    background-color: #e03a44;
    border-color: #e03a44;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 66, 77, 0.4);
}

/* Responsive adjustments for navigation and recommended */
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-next {
        text-align: left;
    }

    .recommended-grid {
        grid-template-columns: 1fr;
    }

    /* Logo responsive sizing */
    .logo {
        width: 20%;
        max-width: 70px;
    }

    /* Titlebar responsive sizing */
    h1.titlebar {
        font-size: 36px;
    }

    /* Audio player h1 sizing */
    .audio h1 {
        font-size: 0.95rem;
    }

    /* Button touch targets - minimum 44px */
    .link-post-button .button {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 44px;
    }

    .oldpodbutton {
        padding: 18px 24px;
        min-height: 44px;
    }

    /* Post metadata responsive */
    .post-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .post-meta-tags {
        margin-left: 0;
        width: 100%;
    }

    /* Pagination responsive */
    .pagination {
        font-size: 1.5em;
        margin-top: 50px;
        margin-bottom: 30px;
    }

    .pagination a {
        padding: 0 10px;
    }

    /* Footer menu responsive */
    .footermenu {
        font-size: 0.9rem;
        line-height: 2.5;
    }

    .footermenu a {
        padding: 10px 8px;
        min-height: 44px;
    }

    /* Content padding */
    .content {
        padding: 0 15px;
    }

    /* Responsive tables */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Social icons */
    ul.socials img {
        width: 40px;
        height: 40px;
    }

    /* Lightbox adjustments */
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        max-width: 90%;
        padding: 8px 15px;
    }

    /* Video and image containers */
    .video-post .video-container,
    .image-post .image-container {
        margin: 1.5rem 0;
    }

    .video-post .featured-video,
    .image-post .featured-image {
        border-radius: 6px;
    }

    /* Patreon callout responsive */
    .patreon-callout {
        padding: 1rem;
    }

    .patreon-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .patreon-logo {
        width: 45px;
        height: 45px;
    }

    .patreon-text h3 {
        font-size: 1rem;
    }

    .patreon-text p {
        font-size: 0.85rem;
    }

    .patreon-button {
        display: inline-block;
        width: auto;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .logo {
        width: 25%;
        max-width: 60px;
    }

    h1.titlebar {
        font-size: 24px;
    }

    /* Audio player h1 sizing */
    .audio h1 {
        font-size: 0.85rem;
    }

    .post-meta {
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .pagination {
        font-size: 1.2em;
        margin-top: 40px;
        margin-bottom: 25px;
    }

    .pagination a {
        display: block;
        padding: 10px 0;
    }

    .recommended-post {
        padding: 1rem;
    }

    .recommended-post-title {
        font-size: 1rem;
    }

    .nav-title {
        font-size: 1rem;
    }

    .footermenu {
        font-size: 0.85rem;
        line-height: 2;
    }

    .footermenu a {
        padding: 12px 6px;
    }

    .content {
        padding: 0 10px;
    }

    .post-content {
        font-size: 0.95rem;
    }
}

ul.socials {
    text-align: center;
    padding-top: 1em;
    padding-bottom: 1em;
    margin-left: auto;
    margin-right: auto;
}

ul.socials li{
    display: inline;
    list-stye-type: none;
    text-decoration: none;
}

ul.socials a{
    text-decoration: none;
}

ul.socials img {
	width: 30px;
	height: 30px;
	margin: 0px;
	border: 0px;
	display: inline;
	vertical-align: middle;
	padding-right: 0.3em;
}

.socials img, .socials a {
	-webkit-filter: grayscale(100%);
	filter: grayscale(100%);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}

.socials img:hover, .socials a:hover {
	-webkit-filter: grayscale(0);
	filter: grayscale(0);
	background-color: transparent;
	text-decoration: none;
}

.topmenu {
    font-family: "BBH Bogle", sans-serif;
    font-weight: 400;
    font-size: 2em;
    font-style: normal;
    text-transform: uppercase;
    text-align: center;
    margin-top: 75px;
    margin-bottom: 45px;
}

/* Sticky menu for desktop only */
@media (min-width: 769px) {
    .topmenu {
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: var(--bgcolor);
        padding: 1rem 0;
    }
}

.topmenu a{
    padding: 0 15px 0 15px;
}

/* Hamburger menu button - hidden on desktop */
.menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--maincolor);
    margin: 4px 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Menu items wrapper - transparent on desktop */
.menu-items {
    display: contents;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }

    .topmenu {
        position: relative;
    }

    .menu-items {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bgcolor);
        border: 2px solid var(--bordercl);
        border-radius: 8px;
        padding: 1rem 0;
        margin-top: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .menu-items.active {
        display: flex;
    }

    .menu-items a {
        display: block;
        padding: 12px 20px;
        text-align: center;
        border-bottom: 1px solid var(--bordercl);
    }

    .menu-items a:last-child {
        border-bottom: none;
    }

    .menu-items a:hover {
        background-color: var(--hovercolor);
        color: #d65d0e;
    }
}

@media (max-width: 480px) {
    .topmenu {
        font-size: 1.2em;
        margin-top: 40px;
        margin-bottom: 25px;
    }

    .menu-toggle {
        right: 10px;
    }

    .menu-toggle span {
        width: 20px;
    }
}
