/*!
    * Language: css
    * Author: Adams Pierre David
    * Date: 2021-07-01
    * Description: CSS for article details page
    * Version: 1.0
    * License: MIT
    * Contact: https://www.adamspierredavid/contact-me/
    * Github: https://www.github.com/adamspd
 */

/* Article details page */

:root {
    --progress: 0;
    --divWidth: 0;
}

/* Layout definition */
.apd-main-body {
    min-height: 65vh;
    align-content: center;
    justify-items: center;
}

.apd-main-header {
    background: linear-gradient(to bottom, #67d1fb 0%, white 100%);
    top: 0;
    margin-top: -1px;
    width: 100%;
    margin-bottom: 25px;
}

.apd-main-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    height: auto;
    max-width: 1600px;
    margin: 0 auto;
}

/* header definition */
.apd-header-container {
    max-width: 80%;
    margin: 0 auto;
}

.article-title {
    margin: 0 auto;
    text-align: center;
    padding-top: 65px;
}

.article-headline {
    margin: 0 auto;
    text-align: center;
    padding-top: 2px;
    font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
    font-size: 0.8rem;
    width: 70%;
}

.date-posted {
    text-align: center;
}

.tag {
    text-align: center;
}

/* Table of contents */
.apd-left-column {
    margin-left: 30px;
    margin-right: 30px;
}

.apd-mobile-tablet {
    display: none;
}

.apd-table-contents {
    height: min-content;
    padding: 10px;
    background-color: rgba(237, 251, 252, 0.40);
    max-width: 340px;
    min-width: 235px;
}

.apd-table-content-title {
    color: rgb(77, 91, 124);
    font-family: "JetBrains Mono", monospace;
    font-weight: 550;
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.apd-table-contents > ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.apd-table-contents > ul > li > a {
    text-decoration: none;
    color: rgb(91, 105, 135);
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    line-height: 28px;
}

/* Marketing column */
.apd-right-column {
    margin-left: 30px;
    margin-right: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

.apd-share {
    color: rgb(77, 91, 124);
    font-family: "JetBrains Mono", monospace;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.sharing-element {
    text-decoration: none;
    height: 40px;
    width: 40px;
    margin-left: 5px;
    margin-right: 5px;
}

/* Fixed table of content when scrolled top reached header's percentage */
.apd-fixed {
    position: fixed;
    top: 100px;
    max-width: 235px;
}

/* Article content */

.apd-main-column {
    max-width: 800px;
}

/* Progress bar */

#progress-bar {
    position: fixed;
    margin-top: -1px;
    height: 6px;
    width: var(--progress);
    background-color: #6125fd;
}


/* Related articles */
.apd-related-article {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 80rem;
    width: 100%;
}

.apd-related-article-title {
    color: rgb(3, 27, 78);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 110%;
    margin: 30px auto 60px;
    text-align: center;
}

.apd-related-article-container {
    display: flex;
    gap: 22px;
    width: 100%;
    justify-content: center;
}

.apd-related-article-card {
    background-color: rgb(255, 255, 255);
    border-radius: 24px;
    box-shadow: rgba(11, 43, 158, 0.15) 0 6px 20px -6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: all 0.5s ease 0s;
    width: 300px;
    z-index: -1;
}

.apd-related-article-card-link {
    color: rgba(1, 4, 16, 0.93);
    line-height: 1.5;
    margin: 0;
    text-decoration: none;
    cursor: pointer;
}

.color-creation {
    height: 200px;
}

.post-category {
    color: rgb(24, 1, 1);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin: 0;
    padding: 10px 15px;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.6);
}

.apd-related-article-info {
    height: 170px;
}

.apd-related-post-title {
    color: rgba(4, 13, 31, 0.92);
    font-size: 20px;
    letter-spacing: -1px;
    line-height: 110%;
    margin: 0;
    padding: 10px 15px;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.6);
}

.apd-related-post-meta {
    color: rgba(4, 13, 31, 0.92);
    line-height: 1.5;
    margin: 30px 0 0;
    padding: 10px 15px;
    text-shadow: 1px 1px 1px rgba(253, 237, 216, 0.6);

    /* fixed to bottom container */
    position: absolute;
    bottom: 0;
}

.apd-related-article-card:hover {
    box-shadow: rgba(11, 43, 158, 0.15) 0 6px 20px -6px;
    transform: scale(1.05);
}

/* Command line simulation */
html {
    scroll-behavior: smooth;
}

.command_line::before {
    content: "$ ";
}

.command {
    display: inline-block;
    width: 100%;
    margin: 10px 0 10px 0;
}


.command {
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    clear: both;
    color: #fff;
    background: #1b1b1b;
    padding: 10px;
    -o-tab-size: 2;
    tab-size: 2;
    -ms-word-break: normal;
    word-break: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    z-index: -1;
}

img {
    /* max width size of article  */
    max-height: 450px;
    width: auto;
    overflow: hidden;
    object-fit: cover;
    border-radius: 8px;
}

.article-header {
    margin: 2.8rem 0 0 !important;
}

.current-link:before {
  content: ">";
  display: inline-block;
  margin-right: 5px;
  color: red;
}

.apd-relative {
  position: relative;
}

.about-author {
    border: 1px solid rgba(221, 221, 221, 0.05);
    margin-top: 80px;
    margin-bottom: 20px;
}

.about-author h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.author-image img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 20px;
}

.author-name {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.author-bio {
    font-size: 16px;
    color: #666;
}
