/**
 * Single Post Styles
 *
 * @package HomeProz
 */

.single-post {
    padding: 2rem 0 4rem;
    max-width: 800px;
}

// Post Header
.post-header {
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);

    time {
        color: var(--color-text-muted);
    }

    .meta-separator {
        color: var(--color-border);
    }

    .post-categories a {
        color: var(--color-accent-light);
        text-decoration: none;

        &:hover {
            color: var(--color-accent-hover);
        }
    }
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 0;

    @media (max-width: 768px) {
        font-size: 2rem;
    }
}

// Featured Image
.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;

    img {
        width: 100%;
        height: auto;
        display: block;
    }
}

// Post Footer
.post-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;

    .tags-label {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--color-text-muted);
    }

    .tag-link {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        background-color: var(--color-bg-card);
        border-radius: 0.25rem;
        font-size: 0.8125rem;
        color: var(--color-text-muted);
        text-decoration: none;

        &:hover {
            background-color: var(--color-accent);
            color: white;
        }
    }
}

// Post Navigation
.post-navigation {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);

    .nav-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;

        @media (min-width: 640px) {
            grid-template-columns: 1fr 1fr;
        }
    }

    .nav-previous,
    .nav-next {
        a {
            display: block;
            text-decoration: none;
        }
    }

    .nav-next {
        text-align: right;
    }

    .nav-subtitle {
        display: block;
        font-size: 0.8125rem;
        color: var(--color-text-muted);
        margin-bottom: 0.25rem;
    }

    .nav-title {
        display: block;
        font-size: 1rem;
        font-weight: 500;
        color: var(--color-text);
        line-height: 1.4;
    }

    a:hover {
        .nav-title {
            color: var(--color-accent-light);
        }
    }
}

// Comments area
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;

    .comment {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--color-border);

        &:last-child {
            border-bottom: none;
        }
    }

    .comment-body {
        display: flex;
        gap: 1rem;
    }

    .comment-author {
        flex-shrink: 0;

        img {
            border-radius: 50%;
        }
    }

    .comment-content {
        flex-grow: 1;
    }

    .fn {
        font-weight: 600;
        color: var(--color-text);
    }

    .comment-metadata {
        margin-bottom: 0.5rem;
        font-size: 0.8125rem;
        color: var(--color-text-muted);

        a {
            color: var(--color-text-muted);
            text-decoration: none;

            &:hover {
                color: var(--color-accent-light);
            }
        }
    }
}

// Comment form
.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    margin-bottom: 1rem;
}

.comment-form {
    label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--color-text);
    }

    input[type="text"],
    input[type="email"],
    input[type="url"],
    textarea {
        margin-bottom: 1rem;
    }

    .form-submit {
        margin-top: 1rem;

        input[type="submit"] {
            @extend .btn;
            @extend .btn-primary;
        }
    }
}
