/*
Styles for the single.php template
*/

#analytics-post-info {
    display: none;
}

#post-header {
    margin-bottom: 2rem;
    border-radius: 12px;
    background-color: var(--color-purple);
    color: var(--color-white);
    padding: 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#post-header .icon-post-header-dots-sm,
#post-header .icon-post-header-dots-lg,
#post-header .icon-post-header-stars {
    position: absolute;
    z-index: 0;
}

#post-header .wordcount,
#post-header .logrocket_editor {
    display: none;
}

/* Make sure the various header elements are above the stars and dots */
#post-date, #post-title, #post-author-info {
    z-index: 1;
}

#post-header .icon-post-header-dots-sm {
    top: 30px;
    left: 30px;
}

#post-header .icon-post-header-dots-lg {
    bottom: 30px;
    right: 30px;
}

#post-header .icon-post-header-stars {
    bottom: 30px;
    left: 30px;
}


#post-author-img img {
    border-radius: 100%;
}

#post-author-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#post-author-img {
    /* Certain author images would sometimes shrink? */
    flex: 0 0 auto;
}

#post-author-name {
    display: block;
    font-weight: var(--weight-bold);
}

#post-author-desc {
    display: block;
    font-weight: var(--weight-light);
}

#post-author-desc a {
    font-weight: var(--weight-bold);
}

#post-author-name:hover,
#post-author-desc a:hover
{
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

#the-content-container {
    max-width: 895px;
}

.lr-content img.wp-post-image {
    /* This is the featured image */
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 20px;
}

#recent-posts {
    max-width: 90%;
    margin-inline: auto;
}

.view-all-posts {
    max-width: 90%;
    margin-inline: auto;
    margin-top: 3rem;
    border-top: 1px solid var(--color-gray);
    padding: 3rem;
    display: flex;
    justify-content: center;
}

.post-edit-link,
.post-edit-link:active,
.post-edit-link:hover,
.post-edit-link:focus {
    display: block;
    color: var(--color-purple);
    padding: 1rem 0;
}

.post-edit-link:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    /* on smaller screens the post title would overflow if left at its current size */
    #post-title {
        font-size: var(--fs-2);
    }
    #post-header {
        border-radius: 0;
    }
}
