/*################################# MDL STYLING FOR TABLES AND ROWS ######################################################################################*/
table {
  margin-bottom: 15px;
  position: relative;
  border: 1px solid #222;
  border-collapse: collapse;
  font-size: 13px;
  background-color: #232323;
  color: #eee;
}
strong, b {
  color: #ff6666;
  font-weight: bold;
}
thead { padding-bottom: 3px }
tr { position: relative; height: 48px; transition: background-color 0.28s cubic-bezier(.4,0,.2,1);}
tr:hover { background-color: #2d2d2d }
th { padding: 0 18px 12px 18px; }
td:first-of-type, th:first-of-type { padding-left: 24px }
td:last-of-type, th:last-of-type { padding-right: 24px }
td {
  position: relative;
  height: 48px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 12px 18px;
  box-sizing: border-box;
}
th {
  position: relative;
  vertical-align: bottom;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
  height: 48px;
  font-size: 12px;
  color: #ff1717;
  padding-bottom: 8px;
  box-sizing: border-box;
}
td, th { text-align: left; }

table {
  width: 100%;
  table-layout: fixed;
}
th, td {
  overflow: auto;
}

/* Navigation highlight for blog */
.navigation .nav-blog {
  border-bottom: 4px solid #ff1717;
}

/* Hero section with dark overlay and red accent */
.hero-section {
  position: relative;
  height: 30vw;
  width: 100%;
  background: url('../assets/images/blog_poster.png') center 50% no-repeat;
  background-color: #191d22;
  background-size: cover;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.hero-section::after {
  display: none;
}

/* Blog post section */
.post-section {
  position: relative;
  background-color: #232323;
  padding-bottom: 32px;
}

/* Markdown blog post headings */
.post-section h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff !important; /* Fix for heading color not changing */
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  letter-spacing: 1px;
  font-family: 'Archivo Black', Arial, sans-serif;
}
.post-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-top: 1.7em;
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
  font-family: 'DM Sans', Arial, sans-serif;
}


/* Comment card */
.comment-card {
  padding: 12px;
  background: rgba(35, 35, 35, 0.65);
  color: #eee;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Blog post card */
h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
}

/* Underline all links */
a {
  text-decoration: underline !important;
}

/* Make **text** light red and bold */


.post-card.mdl-card {
  width: 100%;
  background: rgba(25, 29, 34, 0.95);
  color: #fff;
  box-shadow: 0 2px 6px rgba(255,23,23,0.10), 0 1px 3px rgba(0,0,0,0.13);
  border-radius: 20px;
  border-left: 6px solid #ff1717;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  margin-bottom: 24px;
  min-height: 200px;
}
.post-card > .mdl-card__title {
  transition: max-height 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s cubic-bezier(.4,0,.2,1);
  background-color: #ff1717;
  font-weight: bold;
  border-radius: 14px 14px 0 0;
  padding: 0px 20px;
  font-size: 0.95rem;
  font-family: 'Archivo Black', Arial, sans-serif;
  letter-spacing: 1px;
}

.post-card .mdl-card__title-text,
.post-card h1.mdl-card__title-text {
  color: #fff !important;
}
.post-card.expanded > .mdl-card__title {
  max-height: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}
.post-card > .mdl-card__supporting-text {
  color: #fff;
  background: #18191c;
  padding: 18px 24px;
}
.paginator-btn {
  display: flex;
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(255,23,23,0.18), 0 10px 10px rgba(0,0,0,0.22);
  transform: translateY(-4px) scale(1.03);
  border-left: 8px solid #ff1717;
}

.post-card > .mdl-card__actions {
  display: flex;
  align-items: center;
  background: #18191c;
  border-radius: 0 0 14px 14px;
  padding: 12px 24px;
}

.mdl-button--colored, .mdl-button--colored:active, .mdl-button--colored:focus {
  color: #ff1717 !important;
}

.mdl-button--colored[disabled] {
  color: #888 !important;
  background: none !important;
}

.blog-image {
  margin: 5px;
  margin-bottom: 15px;
  display: inline-block;
}

.blog-img {
  margin: auto;
  display: inline-block;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
  border-radius: 8px;
}

.markdown-body, .post-content, .post-section {
  word-break: break-word;
  padding: 1.2em 1em;
  box-sizing: border-box;
}

/* Responsive headings */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  word-break: break-word;
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
  .markdown-body, .post-content, .post-section {
    padding: 1em 0.5em;
  }
  .post-card.mdl-card {
    padding: 0.5em 0.2em;
    border-radius: 10px;
  }
  img, video, iframe {
    border-radius: 5px;
  }
}

/* Make sure blockquotes and code blocks are readable */
blockquote {
  font-size: 1em;
  padding: 0.8em 1em;
  background: rgba(255,255,255,0.04);
  border-left: 4px solid #ff1717;
  margin: 1em 0;
  border-radius: 6px;
}
pre, code {
  font-size: 0.98em;
  word-break: break-word;
  background: #222;
  color: #ff6666;
  padding: 0.3em 0.6em;
  border-radius: 4px;
}



/*##### For Mobile #####*/
@media (max-width: 900px) {
  .hero-section {
    height: 220px;
    min-height: 120px;
    background-position: center top;
  }
  .post-section {
    padding-bottom: 18px;
    padding-top: 10px;
  }
  .post-card.mdl-card {
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 0.5em 0.2em;
    min-height: 120px;
    box-shadow: 0 2px 8px rgba(255,23,23,0.11), 0 1px 3px rgba(0,0,0,0.13);
  }
  .post-card > .mdl-card__title,
  .post-card > .mdl-card__supporting-text,
  .post-card > .mdl-card__actions {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 1em;
  }
  .post-card > .mdl-card__title {
    font-size: 1.05rem;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .post-card > .mdl-card__supporting-text {
    padding: 12px 8px;
    font-size: 0.98em;
  }
  .paginator-btn {
    flex-direction: column;
    gap: 10px;
  }
  .comment-card {
    padding: 8px;
    font-size: 0.98em;
    border-radius: 6px;
  }
  .blog-image, .blog-img {
    margin: 4px auto 10px auto;
    display: block;
    max-width: 98vw;
    border-radius: 7px;
  }
  table, thead, tr, th, td {
    font-size: 0.98em;
    padding: 6px 4px;
    word-break: break-word;
  }
  .markdown-body, .post-content, .post-section {
    padding: 0.5em 0.2em;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }
  h4, h5, h6 { font-size: 1em; }
  blockquote {
    padding: 0.6em 0.6em;
    font-size: 0.98em;
    border-radius: 4px;
  }
  pre, code {
    font-size: 0.95em;
    padding: 0.2em 0.4em;
    border-radius: 3px;
  }
  .mdl-button, button {
    font-size: 1em;
    padding: 8px 14px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 7px;
  }
  .navigation .nav-blog {
    border-bottom-width: 2px;
  }
  .navigation {
    flex-direction: column;
    align-items: flex-start;
    width: 100vw;
    padding: 0 4vw;
  }
  .navigation a {
    margin: 8px 0;
    font-size: 1.1em;
    border-bottom: none;
    color: #fff;
    width: 100vw;
    display: block;
    padding: 8px 0;
  }


  /* .hero-section {
    height: 350px;
  }
  .post-card.mdl-card {
    border-radius: 14px;
    margin-bottom: 18px;
    padding: 0;
  }
  .post-card > .mdl-card__title,
  .post-card > .mdl-card__supporting-text,
  .post-card > .mdl-card__actions {
    padding-left: 10px;
    padding-right: 10px;
  } */
}