/** ----------------------------------------------------------------------------
 * @desc      Global Styles
 * @author    Avin Zheng
 * @copyright MIT License
 ** --------------------------------------------------------------------------*/
body {
  font-size: 16px;
  color: #2C3E50;
  background: #ECF0F1 no-repeat fixed top center;
  background-size: cover;
}

a {
  transition: all .15s linear;
  color: var(--standard-color);
}

em {
  font-weight: 600;
  font-style: normal;
}

small {
  font-size: 0.875em;
}

/**
 * Float & Clear Float
 */
.fl {
  float: left;
}

.fr {
  float: right;
}

.clearfix {
  zoom: 1;
}

.clearfix::after {
  content: "";
  display: block;
  height: 0;
  line-height: 0;
  clear: both;
  visibility: hidden;
}

/**
 * .main-card
 */
.main-card {
  margin-bottom: 24px;
  padding: 40px 32px;
  background: #FFFFFF;
  box-shadow: 0 0 2px 0 #BDC3C7;
}

/**
 * Post Header
 */
.main-card > .post-header > figure {
  display: block;
  margin: -40px -32px 32px;
}

.main-card > .post-header > figure > a,
.main-card > .post-header > figure > a > img {
  display: block;
  width: 100%;
}

.main-card > .post-header > .post-title {
  margin-bottom: 16px;
}

.main-card > .post-header > .post-title > .featured-icon {
  color: var(--standard-color);
  font-size: 1.5em;
  line-height: 1.5;
}

.main-card > .post-header > .post-title > a {
  color: #2C3E50;
}

.main-card > .post-header > .post-title > a:hover {
  color: var(--light-color);
}

.main-card > .post-header > .post-title > a > h2 {
  display: inline;
  line-height: 1.5;
  word-break: break-all;
}

/**
 * Card Header
 */
.main-card > .card-header {
  margin-bottom: 16px;
}

.main-card > .card-header > .card-title {
  display: inline-block;
  border-bottom: 2px solid var(--standard-color);
  font-size: 1.5em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #95A5A6;
}

/**
 * ul.post-meta
 */
ul.post-meta {
  padding: 8px 16px;
  background-color: #ECF0F1;
  font-size: 0;
  line-height: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

ul.post-meta > li {
  display: inline-block;
  margin-right: 24px;
  max-width: 50%;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

ul.post-meta > li > a,
ul.post-meta > li > span,
ul.post-meta > li > i {
  display: inline-block;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.2;
  color: #95A5A6;
}

ul.post-meta > li > a:hover {
  color: var(--light-color);
}

ul.post-meta > li > span {
  margin-right: 8px;
}

/**
 * Markdown
 */
.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
  margin: 24px 0 16px;
  font-weight: 600;
  line-height: 1.25;
}

.markdown h1 {
  padding-bottom: .3em;
  border-bottom: 1px solid #ECF0F1;
  font-size: 2em;
}

.markdown h2 {
  padding-bottom: .3em;
  border-bottom: 1px solid #ECF0F1;
  font-size: 1.5em;
}

.markdown h3 {
  font-size: 1.25em;
}

.markdown h4 {
  font-size: 1em;
}

.markdown h5 {
  font-size: .875em;
}

.markdown h6 {
  font-size: .85em;
  color: #7F8C8D;
}

.markdown p,
.markdown hr,
.markdown ul,
.markdown ol,
.markdown pre,
.markdown figure,
.markdown img,
.markdown blockquote {
  margin-bottom: 16px;
}

.markdown :not(pre) > code {
  padding: 2px 6px;
  background-color: #ECF0F1;
  white-space: nowrap;
  word-break: keep-all;
}

.markdown ul,
.markdown ol {
  padding-left: 2em;
}

.markdown ul {
  list-style-type: disc;
}

.markdown ol {
  list-style-type: decimal;
}

.markdown a:hover {
  border-bottom: 1px solid currentColor;
}

.markdown img {
  display: block;
  max-width: 100%;
}

.markdown figure img {
  margin-bottom: 0;
}

.markdown figcaption {
  line-height: 30px;
  text-align: center;
  font-size: 14px;
  color: #7F8C8D;
}

.markdown blockquote {
  border-left: 4px solid #BDC3C7;
  padding: 0 16px;
  color: #7F8C8D;
}

.markdown blockquote blockquote {
  padding-right: 0;
}

.markdown table {
  margin: 16px 0;
  min-width: 100%;
  padding: 0;
  word-break: initial;
}

.markdown table p {
  margin: 0;
}

.markdown table tr {
  border-top: 1px solid #BDC3C7;
  background-color: white;
  margin: 0;
  padding: 0;
}

.markdown table thead tr,
.markdown table tbody tr:nth-child(2n) {
  background-color: #ECF0F1;
}

.markdown table tr th {
  font-weight: bold;
  border: 1px solid #BDC3C7;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}

.markdown table tr td {
  border: 1px solid #BDC3C7;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}

.markdown table tr th:first-child,
.markdown table tr td:first-child {
  margin-top: 0;
}

.markdown table tr th:last-child,
.markdown table tr td:last-child {
  margin-bottom: 0;
}

/**
 * Post Meta Icons
 */
.icon-post {
  width: 16px;
  height: 16px;
}

.icon-post-date {
  background-image: url("../icons/post-date.svg");
}

.icon-post-authors {
  background-image: url("../icons/post-authors.svg");
}

.icon-post-tags {
  background-image: url("../icons/post-tags.svg");
}

.icon-post-views {
  background-image: url("../icons/post-views.svg");
}

.icon-post-comments {
  background-image: url("../icons/post-comments.svg");
}

/**
 * Stat Info Icons
 */
.icon-stat {
  width: 16px;
  height: 16px;
}

.icon-stat-posts {
  background-image: url("../icons/stat-posts.svg");
}

.icon-stat-tags {
  background-image: url("../icons/stat-tags.svg");
}

/**
 * Social Icons
 */
.icon-social {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
}

.social-website {
  background-image: url("../icons/social-website.svg");
}

.social-facebook {
  background-image: url("../icons/social-facebook.svg");
}

.social-x {
  background-image: url("../icons/social-x.svg");
}

.social-linkedin {
  background-image: url("../icons/social-linkedin.svg");
}

.social-bluesky {
  background-image: url("../icons/social-bluesky.svg");
}

.social-threads {
  background-image: url("../icons/social-threads.svg");
}

.social-mastodon {
  background-image: url("../icons/social-mastodon.svg");
}

.social-tiktok {
  background-image: url("../icons/social-tiktok.svg");
}

.social-youtube {
  background-image: url("../icons/social-youtube.svg");
}

.social-instagram {
  background-image: url("../icons/social-instagram.svg");
}

.social-github {
  background-image: url("../icons/social-github.svg");
}

.social-zhihu {
  background-image: url("../icons/social-zhihu.svg");
}

.social-weibo {
  background-image: url("../icons/social-weibo.svg");
}

.social-wechat {
  background-image: url("../icons/social-wechat.svg");
}

.social-qq {
  background-image: url("../icons/social-qq.svg");
}

/**
 * Arrow Icons
 */
.icon-arrow {
  width: 32px;
  height: 32px;
}

.arrow-left {
  background-image: url("../icons/arrow-left.svg");
}

.arrow-right {
  background-image: url("../icons/arrow-right.svg");
}

/**
 * Button Icons on Mobile
 */
.icon-btn {
  width: 32px;
  height: 32px;
}

.icon-btn-menu {
  background-image: url("../icons/btn-menu.svg");
}
