/* Additions for the WordPress build: blog filtering + single post typography */

.blog-grid[data-active-filter] .blog-card.is-hidden,
.featured-card.is-hidden {
    display: none;
}

/* Single post ------------------------------------------------------------ */
.single-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.single-hero {
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid var(--primary-light);
    margin-bottom: 1.75rem;
    background: var(--bg-base);
}

.single-hero img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.single-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.single-title {
    font-size: 2.3rem;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.article-body {
    color: var(--text-dark);
    font-size: 1.02rem;
    line-height: 1.75;
}

.article-body > * + * {
    margin-top: 1.1rem;
}

.article-body h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-top: 2rem;
}

.article-body h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
}

.article-body a {
    color: var(--primary-dark);
    font-weight: 700;
}

.article-body ul,
.article-body ol {
    padding-left: 1.4rem;
}

.article-body li + li {
    margin-top: 0.4rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-light);
    padding: 0.4rem 0 0.4rem 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.article-body code {
    background: var(--bg-base);
    border: 1px solid var(--primary-light);
    border-radius: 6px;
    padding: 0.1rem 0.35rem;
    font-size: 0.92em;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--primary-light);
}

/* Pagination / empty states ---------------------------------------------- */
.ao-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.ao-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 12px;
    background: var(--bg-base);
    border: 2px solid var(--primary-light);
    color: var(--text-dark);
    font-weight: 800;
    text-decoration: none;
}

.ao-pagination .page-numbers.current,
.ao-pagination .page-numbers:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.ao-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* Generic WordPress page content ----------------------------------------- */
.page-content {
    max-width: 820px;
    margin: 0 auto;
}

.ao-search-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.ao-search-form input[type="search"] {
    padding: 0.7rem 1.1rem;
    border-radius: 20px;
    border: 2px solid var(--primary-light);
    background: var(--bg-base);
    font: inherit;
    color: var(--text-dark);
    min-width: 260px;
}

.ao-search-form button {
    cursor: pointer;
    border: none;
}

/* Comments --------------------------------------------------------------- */
.ao-comments {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--primary-light);
}

.ao-comments ol {
    list-style: none;
    padding: 0;
}

.ao-comments .comment-body {
    background: var(--bg-base);
    border: 2px solid var(--primary-light);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.ao-comments input[type="text"],
.ao-comments input[type="email"],
.ao-comments input[type="url"],
.ao-comments textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    border: 2px solid var(--primary-light);
    background: var(--bg-base);
    font: inherit;
    color: var(--text-dark);
}

.ao-comments .submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 30px;
    font-weight: 800;
    cursor: pointer;
}

/* Admin bar offset for the sticky header --------------------------------- */
body.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

@media (max-width: 960px) {
    .single-title {
        font-size: 1.8rem;
    }

    .single-hero img {
        height: 200px;
    }
}

/* Screenshot tiles became links in the WP build */
a.showcase-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Blog cards became links in the WP build */
a.featured-card,
a.blog-card {
    text-decoration: none;
    color: inherit;
}
