/* =========================================================
   BLOG.CSS - Profile404

   Table of contents:
     1. Blog layout
     2. Author sidebar
     3. Blog entry
     4. Individual blog posts
     5. Blog scrollbar
     6. Responsive

   ========================================================= */

/* =========================================================
   1. BLOG LAYOUT
   ========================================================= */

.profile404-blog-layout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
}

/* =========================================================
   2. AUTHOR SIDEBAR
   ========================================================= */

.profile404-blog-sidebar {
    flex-shrink: 0;
    width: 200px;
    border: 1px solid var(--color-border-blue);
    background: #fff;
}

.profile404-blog-author {
    padding: 8px;
    border-bottom: 1px solid var(--color-border-blue);
    font-size: 12px;
    line-height: 1.4;
}

.profile404-blog-author .profile404-pic {
    width: 100%;
    margin-bottom: 8px;
}

.profile404-blog-author .profile404-pic img {
    width: 100%;
}

.profile404-blog-author-name {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: bold;
}

.profile404-blog-meta {
    margin: 4px 0;
}

.profile404-blog-links {
    display: flex;
    flex-direction: column;
}

.profile404-blog-links .profile404-contact-link:not(:last-child) {
    border-bottom: 1px solid var(--color-border-blue);
}

/* =========================================================
   3. BLOG ENTRY
   ========================================================= */

.profile404-blog-entry {
    flex: 1;
    min-width: 0;
}

.profile404-blog-title {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border-blue);
    font-size: 22px;
}

.profile404-blog-content {
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.profile404-blog-content p {
    margin: 0 0 12px;
}

.profile404-blog-content h2 {
    margin: 18px 0 8px;
    color: var(--color-accent);
    font-size: 16px;
}

/* ---------------------------------------------------------
   Scrollable Blog Box
   --------------------------------------------------------- */

.profile404-blog-scroll {
    height: 400px;
    padding: 8px;

    overflow-x: hidden;
    overflow-y: auto;

    border: 1px solid #000;
    background: #fff;
}

/* Images inside blog content */

.profile404-blog-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================================
   4. INDIVIDUAL BLOG POSTS
   ========================================================= */

/*
   Each article is treated as its own individual blog post
   while remaining inside the same scrolling container.
*/

.profile404-post {
    display: block;

    margin: 0 0 28px;
    padding: 18px 20px 16px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(128, 128, 128, 0.65);
    border-radius: 4px;

    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.30),
        0 2px 4px rgba(0, 0, 0, 0.20);

    /*
       Adds a little breathing room when jumping to an
       individual post using its ID.
    */
    scroll-margin-top: 15px;
}

/* ---------------------------------------------------------
   Post Header
   --------------------------------------------------------- */

.profile404-post-header {
    display: block;
    margin-bottom: 5px;
}

.profile404-post-header big {
    display: block;
    line-height: 1.3;
}

/* Post category / information */

.profile404-post-info {
    margin-top: 5px;

    color: #888;

    font-size: 0.80em;
    font-style: italic;
}

/* ---------------------------------------------------------
   Post Content
   --------------------------------------------------------- */

.profile404-post small {
    display: block;
    line-height: 1.55;
}

.profile404-post p {
    margin-top: 0;
    margin-bottom: 12px;
}

/* ---------------------------------------------------------
   Post Footer
   --------------------------------------------------------- */

.profile404-post-footer {
    margin-top: 20px;
}

.profile404-post-footer hr {
    margin-top: 18px;
    margin-bottom: 12px;
}

.profile404-post-footer h2 {
    margin-top: 10px;
    margin-bottom: 8px;
}

.profile404-post-footer p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   Post Footer Links
   --------------------------------------------------------- */

.profile404-post-footer a {
    text-decoration: none;
}

.profile404-post-footer a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   Post Separation
   --------------------------------------------------------- */

/*
   Adds additional separation between individual posts.
*/

.profile404-post + .profile404-post {
    margin-top: 28px;
}

/*
   Prevents unnecessary empty space after the final post.
*/

.profile404-post:last-child {
    margin-bottom: 5px;
}

/* ---------------------------------------------------------
   Linked / Targeted Post
   --------------------------------------------------------- */

/*
   When someone visits a URL such as:

   blog.html#taking-a-look-in-the-mirror

   the browser will jump to that post and this styling
   subtly highlights it.
*/

.profile404-post:target {
    border-color: #999;

    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.12),
        inset 0 0 10px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   5. BLOG SCROLLBAR
   ========================================================= */

.profile404-blog-scroll::-webkit-scrollbar {
    width: 12px;
}

.profile404-blog-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.20);
    border-left: 1px solid rgba(128, 128, 128, 0.35);
}

.profile404-blog-scroll::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.65);

    border: 2px solid rgba(0, 0, 0, 0.20);
    border-radius: 2px;
}

.profile404-blog-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(160, 160, 160, 0.80);
}

/* =========================================================
   6. RESPONSIVE
   ========================================================= */

@media (max-width: 790px) {

    .profile404-blog-layout {
        flex-direction: column;
    }

    .profile404-blog-sidebar {
        width: 100%;
    }

    .profile404-blog-author .profile404-pic {
        max-width: 155px;
    }

    .profile404-post {
        padding: 15px 14px 14px;
        margin-bottom: 20px;
    }

    .profile404-post + .profile404-post {
        margin-top: 20px;
    }

    .profile404-post small {
        line-height: 1.5;
    }

}