/* Base Styles and Layout */
html {
  overflow-y: scroll;
}

body {
  font-family: 'Georgia', serif;
  font-size: 11pt;
  line-height: 1.42857143;
  color: #2b2b2b;
  background-color: #f5f0ed;
}

.main {
  background: #f5f0ed;
  background-attachment: fixed;
  padding: 60px 0 80px;
  position: relative;
}

.site-footer {
  background: #8c2d19;
  min-height: 100px;
  padding: 20px 0;
}

/* Typography */
h1 {
  font-size: 33px;
  margin-top: 0;
  padding-top: 50px;
}

.post-header h1 {
  padding-top: 0;
}

.post-header {
  padding-top: 50px;
}

h2 {
  border-bottom: 1px solid #8c2d19;
  padding-bottom: 12px;
  font-size: 21px;
  margin-top: 1em;
  margin-bottom: 1em;
  color: #8c2d19;
}

h3 {
  font-family: 'Georgia', serif;
  font-size: 17px;
  margin: 0;
  padding: 20px 0 3px;
  color: #2b2b2b;
}

h4 {
  font-size: 15px;
  margin: 0;
  padding: 20px 0 3px;
  color: #000000;
}

h3.post-meta {
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid #8c2d19;
  padding-top: 6px;
  margin: 1em 0;
}

p,
pre,
ul,
ol {
  margin-bottom: 18px;
}

code {
  color: #444444;
  background-color: #f5f5f5;
}

pre code {
  white-space: pre;
}

/* Navigation */
.navbar-brand > img {
  display: inline;
  position: relative;
  vertical-align: top;
  bottom: 7px;
}

.navbar-default {
  background-color: #8c2d19 !important;
  border-color: #8c2d19 !important;
}

.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-toggle {
  color: #ffffff !important;
}

.navbar-default svg {
  position: absolute;
  height: 40px;
  margin-top: -11px;
  margin-left: -4px;
  fill: #ffffff;
  border: none !important;
}

.navbar-default .navbar-toggle,
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus,
.navbar-default .navbar-toggle:active {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: rgba(255, 255, 255, 0.8) !important;
  background-color: transparent !important;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-top-color: transparent !important;
  box-shadow: none !important;
}

#togglemenu {
  display: none;
  cursor: pointer;
}

.navbar-fixed-top {
  transition: top 0.3s ease-in-out;
  top: 0;
}

.nav-up {
  top: -100px !important;
}

/* Buttons */
.btn {
  padding: 5px 10px !important;
  box-shadow: none !important;
}

.btn-primary {
  background: #d9230f !important;
  border: 1px solid #d9230f !important;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.75) !important;
}

.btn-primary:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

.btn-secondary {
  border: 1px solid #d9230f !important;
}

.btn-secondary:hover {
  color: #d9230f;
}

.btn-default {
  background: #8c2d19 !important;
  border: 1px solid #8c2d19 !important;
  font-weight: bold;
  color: #ffffff !important;
}

/* Forms */
.form-control {
  height: 37px;
}

/* Images */
img {
  display: block;
  max-width: 100%;
}

img.poweredby {
  cursor: pointer;
  display: inline-block;
  height: 100px;
  margin-right: 10px;
  margin-left: -8px;
  opacity: 0.35;
}

/* Image Gallery */
.image-gallery a img {
  -webkit-filter: grayscale(100%) brightness(116%) contrast(83%) opacity(70%);
  filter: grayscale(100%) brightness(116%) contrast(83%) opacity(70%);
  transition: all 0.3s ease;
}

.image-gallery a:hover img {
  -webkit-filter: grayscale(0%) brightness(100%) contrast(100%) opacity(100%);
  filter: grayscale(0%) brightness(100%) contrast(100%) opacity(100%);
}

/* Footer Links and Breadcrumbs */
.site-footer a,
#breadcrumbs,
#breadcrumbs a {
  color: #ffffff;
}

.site-footer h3 {
  color: #ffffff;
}

/* Sidebar */
.sidebar-personal-info .sidebar-personal-info-section {
  line-height: 1rem;
}

.site-footer p {
  color: #ffffff;
}

.sidebar-personal-info .sidebar-personal-info-section:not(:first-of-type) {
  margin-top: 0.75rem;
}

.sidebar-personal-info .sidebar-personal-info-section a,
.sidebar-personal-info .sidebar-personal-info-section strong {
  color: #28a745;
  text-decoration: none;
}

/* Blockquotes */
#bq,
#bqi {
  background: #f2efe9;
  border-left: 10px solid;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  quotes: "\201C" "\201D" "\2018" "\2019";
  text-align: justify;
}

#bq {
  border-left-color: #8c2d19;
}

#bqi {
  border-left-color: #ffffff;
}

#bq:before,
#bqi:before {
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
  content: open-quote;
}

#bq:before {
  color: #8c2d19;
}

#bqi:before {
  color: #ffffff;
}

#bq p,
#bqi p {
  display: inline;
}

/* Changing Keywords */
.rs-changing-keywords {
  color: #8c2d19 !important;
}

/* Blog Content */
.post-content-blog {
  background-color: #f5f0ed;
}

.post-title {
  font-family: 'Georgia', serif;
  color: #8c2d19;
}

/* Post Layout Specific Spacing & Navigation */
.reading-time {
  margin-bottom: 20px;
  display: block;
}

.content-spacing {
  margin-top: 30px;
  margin-bottom: 30px;
}

.post-taxonomies {
  margin-top: 25px;
  margin-bottom: 20px;
}

.post-taxonomies .label {
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 4px;
}

.post-navigation-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
  margin-bottom: 20px;
}

.post-navigation-bottom p {
  flex: 1 1 0;
  width: 45%;
}

.post-navigation-bottom p:first-child {
  padding-right: 0.5em;
}

.post-navigation-bottom p:last-child {
  padding-left: 0.5em;
  text-align: right;
}

.back-to-blogs {
  margin-top: 20px;
  margin-bottom: 20px;
  display: inline-block;
}

/* Download Button */
.download {
  float: right;
  margin-top: 5px;
}

/* Spotify Embed */
.embed-spotify {
  position: relative;
  padding-bottom: 100%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.embed-spotify iframe,
.embed-spotify object,
.embed-spotify embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Facebook Comments */
.fb_iframe_widget_fluid_desktop,
.fb_iframe_widget_fluid_desktop span,
.fb_iframe_widget_fluid_desktop iframe {
  max-width: 100% !important;
  width: 100% !important;
}

/* No Select */
.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Responsive Styles */
@media (max-width: 1000px) {
  #togglemenu {
    display: block;
  }

  #menu ul {
    display: none;
  }

  .menuopen #menu ul {
    display: block;
  }
}

@media (max-width: 767px) {
  .download {
    margin-bottom: 12px;
    margin-top: -20px;
  }

  .navbar-default svg {
    margin-left: 0;
  }
}

.mermaid {
  background-color: #fcfcfc;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 1200px;
}

.mermaid svg {
  width: 100%;
  height: auto;
  font-size: 14px;
}

/* Code Header and Copy Button */
.code-header {
  display: flex;
  justify-content: flex-end;
  background: #444;
  padding: 5px 10px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  margin-top: 1em;
}

.copy-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.8em;
  transition: background 0.3s ease;
}

.copy-button:hover {
  background: #0056b3;
}

.highlight {
  margin-top: 1em;
}

.code-header + .highlight {
  margin-top: 0;
}

.art-critique-figure {
  max-width: 550px;
  margin: 2.5rem auto;
  text-align: center;
}

.art-critique-img {
  width: 100%;
  height: auto;
  border: 1px solid #b5b5b5;
  padding: 6px;
  background-color: #fbfbfb;
}

.ytlb-video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 25px 0;
}

.ytlb-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.ytlb-overlay:target {
  display: flex;
}

.ytlb-close-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ytlb-wrapper {
  position: relative;
  background: #000;
  width: 80%;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  z-index: 10000;
}

.ytlb-responsive-iframe {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.ytlb-responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ytlb-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  z-index: 10001;
}

/* Custom Category Badge Color */
.post-taxonomies .label-primary {
  background-color: #f5a095 !important; /* Your signature dark red theme color */
  color: #ffffff !important;
}

/* Custom Tag Badge Color */
.post-taxonomies .label-info {
  background-color: #5bc0de !important; /* Elegant dark blue */
  color: #ffffff !important;
}

/* Share Buttons Styling */
#share-buttons {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

#share-buttons .share-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

#share-buttons .share-btn:hover {
  opacity: 0.8;
}

#share-buttons .share-btn i {
  font-size: 20px;
}

#share-buttons .telegram { color: #34ACE1; }
#share-buttons .whatsapp { color: #25d366; font-size: 22px; }
#share-buttons .twitter { color: #000000; font-size: 22px; }
#share-buttons .pinterest { color: #CB2027; font-size: 22px; }
#share-buttons .mail { color: #7D7D7D; }

