/*--------------------------------------------------------------
# AuthorPro Components Stylesheet
# Description: Post Cards, Single Post, Badges, Metadata,
#              Author Bio, Share Bar, Breadcrumbs, Pagination, 404
# Package: AuthorPro
--------------------------------------------------------------*/

/* =============================================================
   1. Hero Header Section (Archive & Search Views)
   ============================================================= */
.authorpro-hero-header {
    background-color: var(--authorpro-color-white);
    border-bottom: 1px solid var(--authorpro-color-slate-200);
    padding-top: 5rem;
    padding-bottom: 4rem;
    text-align: center;
}

.custom-background .authorpro-hero-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.authorpro-hero-label {
    display: block;
    color: var(--authorpro-color-brand-600);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.authorpro-hero-title {
    font-family: var(--authorpro-font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--authorpro-color-slate-900);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-top: 0;
    margin-bottom: 1rem;
}

.authorpro-hero-description {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
    color: var(--authorpro-color-slate-500);
    line-height: 1.6;
}

.authorpro-hero-search {
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

/* =============================================================
   2. Post Card Component (Blog & Archives)
   ============================================================= */
.authorpro-card,
article.authorpro-card {
    display: flex;
    flex-direction: column;
    background-color: var(--authorpro-color-white);
    border-radius: var(--authorpro-radius-xl);
    border: 1px solid var(--authorpro-color-slate-200);
    box-shadow: var(--authorpro-shadow-sm);
    overflow: hidden;
    height: 100%;
    transition: box-shadow var(--authorpro-transition-base), transform var(--authorpro-transition-base), border-color var(--authorpro-transition-base);
}

.authorpro-card:hover {
    box-shadow: var(--authorpro-shadow-lg);
    border-color: var(--authorpro-color-slate-300);
    transform: translateY(-2px);
}

/* =============================================================
   2.1 Sticky / Featured Post Card (.sticky)
   ============================================================= */
.sticky,
article.sticky {
    position: relative;
}

.authorpro-card.sticky,
article.authorpro-card.sticky {
    position: relative;
    background-color: var(--authorpro-color-brand-50, #fff7ed);
    border-color: var(--authorpro-color-brand-200, #fecaca);
    box-shadow: var(--authorpro-shadow-md);
}

.authorpro-card.sticky:hover,
article.authorpro-card.sticky:hover {
    border-color: var(--authorpro-color-brand-600);
    box-shadow: var(--authorpro-shadow-xl);
    transform: translateY(-2px);
}

/* Featured Badge Pseudo-Element */
.authorpro-card.sticky::before,
article.authorpro-card.sticky::before {
    content: "Featured";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.625rem;
    background-color: var(--authorpro-color-brand-600);
    color: var(--authorpro-color-white, #ffffff);
    border-radius: var(--authorpro-radius-full, 9999px);
    box-shadow: var(--authorpro-shadow-sm);
    z-index: 15;
    line-height: 1.3;
    pointer-events: none;
}

.authorpro-card.sticky .authorpro-card-badge {
    left: 1rem;
    right: auto;
}

/* Card Thumbnail Wrapper */
.authorpro-card-thumbnail {
    position: relative;
    height: 12rem; /* 192px */
    width: 100%;
    overflow: hidden;
    background-color: var(--authorpro-color-slate-100);
    flex-shrink: 0;
}

.authorpro-card-thumbnail-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.authorpro-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.authorpro-card:hover .authorpro-card-thumbnail img {
    transform: scale(1.05);
}

.authorpro-card-thumbnail-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color var(--authorpro-transition-base);
}

.authorpro-card:hover .authorpro-card-thumbnail-overlay {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Category Badge (Card Overlay) */
.authorpro-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.authorpro-badge-link,
.authorpro-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--authorpro-color-brand-600);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--authorpro-radius-sm);
    box-shadow: var(--authorpro-shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background-color var(--authorpro-transition-fast), color var(--authorpro-transition-fast), box-shadow var(--authorpro-transition-fast);
}

.authorpro-badge-link:hover,
.authorpro-badge:hover {
    background-color: var(--authorpro-color-white);
    color: var(--authorpro-color-brand-700);
    box-shadow: var(--authorpro-shadow-md);
}

/* Fallback Thumbnail Placeholder */
.authorpro-thumbnail-fallback {
    width: 100%;
    height: 100%;
    min-height: 12rem;
    background-color: var(--authorpro-color-slate-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--authorpro-color-slate-300);
}

.authorpro-thumbnail-fallback svg {
    width: 3rem;
    height: 3rem;
    opacity: 0.5;
}

/* Card Body */
.authorpro-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Post Card Meta Header */
.authorpro-card-meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--authorpro-color-slate-500);
    font-weight: 500;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.authorpro-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.authorpro-meta-divider {
    color: var(--authorpro-color-slate-300);
}

.authorpro-meta-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--authorpro-color-slate-500);
}

.authorpro-meta-reading-time svg {
    width: 1rem;
    height: 1rem;
    color: var(--authorpro-color-slate-400);
}

/* Post Card Title */
.authorpro-card-title {
    font-family: var(--authorpro-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--authorpro-color-slate-900);
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.authorpro-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--authorpro-transition-fast);
}

.authorpro-card:hover .authorpro-card-title a,
.authorpro-card-title a:hover {
    color: var(--authorpro-color-brand-600);
}

/* Post Card Excerpt */
.authorpro-card-excerpt {
    color: var(--authorpro-color-slate-600);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.authorpro-card-excerpt p {
    margin: 0;
}

/* Post Card Footer (Author Byline) */
.authorpro-card-footer {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--authorpro-color-slate-100);
}

.authorpro-avatar-sm {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--authorpro-radius-full);
    border: 2px solid var(--authorpro-color-white);
    box-shadow: var(--authorpro-shadow-sm);
    background-color: var(--authorpro-color-slate-200);
    object-fit: cover;
    flex-shrink: 0;
}

.authorpro-author-meta {
    margin-left: 0.75rem;
    display: flex;
    flex-direction: column;
}

.authorpro-author-label {
    font-size: 0.75rem;
    color: var(--authorpro-color-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin: 0 0 0.125rem 0;
    line-height: 1.2;
}

.authorpro-author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--authorpro-color-slate-900);
    line-height: 1.2;
}

.authorpro-author-name a {
    color: inherit;
    text-decoration: none;
    transition: color var(--authorpro-transition-fast);
}

.authorpro-author-name a:hover {
    color: var(--authorpro-color-brand-600);
}

/* =============================================================
   3. Search Result Card Component
   ============================================================= */
.authorpro-search-card {
    background-color: var(--authorpro-color-white);
    border-radius: var(--authorpro-radius-lg);
    border: 1px solid var(--authorpro-color-slate-200);
    box-shadow: var(--authorpro-shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: box-shadow var(--authorpro-transition-fast), border-color var(--authorpro-transition-fast);
}

.authorpro-search-card:hover {
    box-shadow: var(--authorpro-shadow-md);
    border-color: var(--authorpro-color-slate-300);
}

@media (min-width: 768px) {
    .authorpro-search-card {
        flex-direction: row;
    }
}

.authorpro-search-content {
    flex: 1 1 0%;
}

.authorpro-search-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Post Type Pills */
.authorpro-type-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.625rem;
    border-radius: var(--authorpro-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.authorpro-badge-docs {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.authorpro-badge-blog {
    background-color: #d1fae5;
    color: #047857;
}

.authorpro-badge-book {
    background-color: #ede9fe;
    color: #6d28d9;
}

.authorpro-badge-page {
    background-color: var(--authorpro-color-slate-100);
    color: var(--authorpro-color-slate-600);
}

.authorpro-search-date {
    font-size: 0.75rem;
    color: var(--authorpro-color-slate-400);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.authorpro-search-date svg {
    width: 0.75rem;
    height: 0.75rem;
}

.authorpro-search-title {
    font-family: var(--authorpro-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--authorpro-color-slate-900);
    margin-top: 0;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.authorpro-search-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--authorpro-transition-fast);
}

.authorpro-search-title a:hover {
    color: var(--authorpro-color-brand-600);
}

.authorpro-search-excerpt {
    font-size: 0.875rem;
    color: var(--authorpro-color-slate-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.authorpro-read-more {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--authorpro-color-brand-600);
    text-decoration: none;
    transition: color var(--authorpro-transition-fast);
}

.authorpro-read-more:hover {
    color: var(--authorpro-color-brand-700);
}

.authorpro-read-more svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    transition: transform var(--authorpro-transition-fast);
}

.authorpro-read-more:hover svg {
    transform: translateX(0.25rem);
}

/* =============================================================
   4. Single Post Layout & Editorial Typography
   ============================================================= */
.authorpro-single-wrapper {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.custom-background .authorpro-single-wrapper {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--authorpro-radius-2xl);
    box-shadow: var(--authorpro-shadow-sm);
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.authorpro-single-header {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .authorpro-single-header {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.authorpro-single-title {
    font-family: var(--authorpro-font-heading);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--authorpro-color-slate-900);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.authorpro-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.authorpro-single-author-card {
    display: flex;
    align-items: center;
    text-align: left;
}

.authorpro-single-author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--authorpro-radius-full);
    border: 2px solid var(--authorpro-color-white);
    box-shadow: var(--authorpro-shadow-sm);
    margin-right: 0.75rem;
    object-fit: cover;
}

.authorpro-single-author-name {
    font-weight: 600;
    color: var(--authorpro-color-slate-900);
    margin: 0;
    line-height: 1.2;
}

.authorpro-single-post-date {
    color: var(--authorpro-color-slate-500);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.2;
}

.authorpro-single-meta-divider {
    display: none;
    height: 2rem;
    width: 1px;
    background-color: var(--authorpro-color-slate-200);
}

@media (min-width: 640px) {
    .authorpro-single-meta-divider {
        display: block;
    }
}

.authorpro-single-reading-time {
    display: none;
    align-items: center;
    gap: 0.375rem;
    color: var(--authorpro-color-slate-500);
}

@media (min-width: 640px) {
    .authorpro-single-reading-time {
        display: flex;
    }
}

.authorpro-single-reading-time svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Featured Image on Single View */
.authorpro-featured-image {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .authorpro-featured-image {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.authorpro-featured-image-inner {
    position: relative;
    border-radius: var(--authorpro-radius-2xl);
    overflow: hidden;
    box-shadow: var(--authorpro-shadow-2xl);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.authorpro-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Single Editorial Content Container */
.authorpro-single-container {
    max-width: 48rem; /* 768px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .authorpro-single-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Social Share Bar */
.authorpro-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--authorpro-color-slate-100);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.authorpro-share-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--authorpro-color-slate-900);
}

.authorpro-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.authorpro-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--authorpro-radius-full);
    color: var(--authorpro-color-slate-500);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color var(--authorpro-transition-fast), background-color var(--authorpro-transition-fast);
}

.authorpro-share-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.authorpro-share-btn.share-fb:hover {
    color: #1877F2;
    background-color: var(--authorpro-color-slate-50);
}

.authorpro-share-btn.share-tw:hover {
    color: #1DA1F2;
    background-color: var(--authorpro-color-slate-50);
}

.authorpro-share-btn.share-in:hover {
    color: #0A66C2;
    background-color: var(--authorpro-color-slate-50);
}

/* Editorial Body Wrapper */
.authorpro-entry-content,
.entry-content {
    width: 100%;
}

/* Page Links Pagination */
.page-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--authorpro-color-slate-100);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--authorpro-color-slate-600);
}

.page-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    margin: 0 0.25rem;
    border-radius: var(--authorpro-radius-sm);
    background-color: var(--authorpro-color-slate-100);
    color: var(--authorpro-color-slate-700);
    text-decoration: none;
    transition: background-color var(--authorpro-transition-fast), color var(--authorpro-transition-fast);
}

.page-links a:hover {
    background-color: var(--authorpro-color-brand-600);
    color: var(--authorpro-color-white);
}

/* Tags & Categories List on Single Post */
.authorpro-entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 2rem;
}

.authorpro-tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: var(--authorpro-radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--authorpro-color-slate-100);
    color: var(--authorpro-color-slate-600);
    text-decoration: none;
    transition: background-color var(--authorpro-transition-fast), color var(--authorpro-transition-fast);
}

.authorpro-tag-link:hover {
    background-color: var(--authorpro-color-slate-200);
    color: var(--authorpro-color-slate-900);
}

.authorpro-category-link {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--authorpro-radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--authorpro-color-brand-50);
    color: var(--authorpro-color-brand-600);
    text-decoration: none;
    transition: background-color var(--authorpro-transition-fast), color var(--authorpro-transition-fast);
}

.authorpro-category-link:hover {
    background-color: var(--authorpro-color-brand-100);
    color: var(--authorpro-color-brand-700);
}

/* Author Bio Box */
.authorpro-author-box {
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--authorpro-color-slate-50);
    border-radius: var(--authorpro-radius-2xl);
    border: 1px solid var(--authorpro-color-slate-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .authorpro-author-box {
        flex-direction: row;
        align-items: flex-start;
    }
}

.authorpro-author-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: var(--authorpro-radius-full);
    object-fit: cover;
    border: 2px solid var(--authorpro-color-white);
    box-shadow: var(--authorpro-shadow-md);
    flex-shrink: 0;
}

.authorpro-author-info {
    text-align: center;
}

@media (min-width: 640px) {
    .authorpro-author-info {
        text-align: left;
    }
}

.authorpro-author-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--authorpro-color-slate-900);
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.authorpro-author-description {
    color: var(--authorpro-color-slate-600);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.authorpro-author-link {
    color: var(--authorpro-color-brand-600);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--authorpro-transition-fast);
}

.authorpro-author-link:hover {
    color: var(--authorpro-color-brand-700);
    text-decoration: underline;
}

/* =============================================================
   5. Breadcrumb Component
   ============================================================= */
.authorpro-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    color: var(--authorpro-color-slate-500);
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.authorpro-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color var(--authorpro-transition-fast);
}

.authorpro-breadcrumb a:hover {
    color: var(--authorpro-color-brand-600);
}

.authorpro-breadcrumb-separator {
    color: var(--authorpro-color-slate-300);
}

.authorpro-breadcrumb-current {
    font-weight: 500;
    color: var(--authorpro-color-slate-700);
}

/* =============================================================
   6. Pagination Component
   ============================================================= */
.authorpro-pagination {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.authorpro-pagination .nav-links,
.authorpro-pagination .pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.authorpro-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: var(--authorpro-radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--authorpro-color-slate-700);
    background-color: var(--authorpro-color-white);
    border: 1px solid var(--authorpro-color-slate-200);
    box-shadow: var(--authorpro-shadow-sm);
    text-decoration: none;
    transition: all var(--authorpro-transition-fast);
}

.authorpro-pagination .page-numbers:hover {
    border-color: var(--authorpro-color-brand-600);
    color: var(--authorpro-color-brand-600);
    box-shadow: var(--authorpro-shadow-md);
}

.authorpro-pagination .page-numbers.current {
    background-color: var(--authorpro-color-brand-600);
    color: var(--authorpro-color-white);
    border-color: var(--authorpro-color-brand-600);
    box-shadow: var(--authorpro-shadow-md);
}

.authorpro-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    color: var(--authorpro-color-slate-400);
}

.authorpro-pagination .page-numbers svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* =============================================================
   6.1 Paginated Post & Multi-Part Page Links (.authorpro-page-links)
   ============================================================= */
.authorpro-page-links,
.page-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.5rem 0 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--authorpro-color-slate-100);
    border-bottom: 1px solid var(--authorpro-color-slate-100);
    clear: both;
}

.authorpro-page-links-title,
.page-links-title {
    font-family: var(--authorpro-font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--authorpro-color-slate-900);
    margin-right: 0.75rem;
    display: inline-block;
}

/* Numbered Page Links & Elements */
.authorpro-page-links a,
.authorpro-page-links .post-page-numbers,
.page-links a,
.page-links .post-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-family: var(--authorpro-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--authorpro-radius-md, 0.375rem);
    background-color: var(--authorpro-color-slate-50);
    border: 1px solid var(--authorpro-color-slate-200);
    color: var(--authorpro-color-slate-700);
    text-decoration: none !important;
    transition: background-color var(--authorpro-transition-fast), border-color var(--authorpro-transition-fast), color var(--authorpro-transition-fast), box-shadow var(--authorpro-transition-fast);
}

.authorpro-page-links a:hover,
.page-links a:hover {
    background-color: var(--authorpro-color-brand-50, #fff7ed);
    border-color: var(--authorpro-color-brand-200, #fecaca);
    color: var(--authorpro-color-brand-600);
}

.authorpro-page-links a:focus-visible,
.page-links a:focus-visible {
    outline: 2px solid var(--authorpro-color-brand-600);
    outline-offset: 2px;
}

/* Current / Active Page Number */
.authorpro-page-links .post-page-numbers.current,
.authorpro-page-links > span:not(.authorpro-page-links-title):not(.page-links-title),
.page-links .post-page-numbers.current,
.page-links > span:not(.page-links-title) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-family: var(--authorpro-font-body);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--authorpro-radius-md, 0.375rem);
    background-color: var(--authorpro-color-brand-600);
    border: 1px solid var(--authorpro-color-brand-600);
    color: var(--authorpro-color-white, #ffffff);
    box-shadow: var(--authorpro-shadow-sm);
}

/* =============================================================
   7. 404 & Empty State Components
   ============================================================= */
.authorpro-none-box {
    background-color: var(--authorpro-color-white);
    border-radius: var(--authorpro-radius-xl);
    box-shadow: var(--authorpro-shadow-sm);
    border: 1px solid var(--authorpro-color-slate-200);
    padding: 3rem 1.5rem;
    text-align: center;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .authorpro-none-box {
        padding: 3rem;
    }
}

.authorpro-none-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--authorpro-color-slate-100);
    border-radius: var(--authorpro-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    color: var(--authorpro-color-slate-400);
}

.authorpro-none-icon svg {
    width: 2rem;
    height: 2rem;
}

.authorpro-none-title {
    font-family: var(--authorpro-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--authorpro-color-slate-900);
    margin-bottom: 0.5rem;
}

.authorpro-none-text {
    color: var(--authorpro-color-slate-600);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.authorpro-none-search {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* 404 Error Screen */
.authorpro-404-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.authorpro-404-content {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.authorpro-404-digit {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    color: var(--authorpro-color-slate-200);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 2rem;
}

.authorpro-404-title {
    font-family: var(--authorpro-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--authorpro-color-slate-900);
    margin-bottom: 1rem;
}

.authorpro-404-text {
    font-size: 1.125rem;
    color: var(--authorpro-color-slate-500);
    margin-bottom: 2.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.authorpro-404-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .authorpro-404-actions {
        flex-direction: row;
    }
}

.authorpro-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: var(--authorpro-color-brand-600);
    color: var(--authorpro-color-white);
    font-weight: 700;
    border-radius: var(--authorpro-radius-lg);
    box-shadow: var(--authorpro-shadow-lg);
    text-decoration: none;
    transition: background-color var(--authorpro-transition-fast), transform var(--authorpro-transition-fast);
    width: 100%;
}

@media (min-width: 640px) {
    .authorpro-btn-primary {
        width: auto;
    }
}

.authorpro-btn-primary:hover {
    background-color: var(--authorpro-color-brand-700);
    transform: translateY(-2px);
    color: var(--authorpro-color-white);
}

.authorpro-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: var(--authorpro-color-white);
    color: var(--authorpro-color-slate-700);
    font-weight: 700;
    border-radius: var(--authorpro-radius-lg);
    border: 1px solid var(--authorpro-color-slate-200);
    box-shadow: var(--authorpro-shadow-sm);
    text-decoration: none;
    transition: border-color var(--authorpro-transition-fast), color var(--authorpro-transition-fast);
    width: 100%;
}

@media (min-width: 640px) {
    .authorpro-btn-secondary {
        width: auto;
    }
}

.authorpro-btn-secondary:hover {
    border-color: var(--authorpro-color-brand-600);
    color: var(--authorpro-color-brand-600);
}

/* =============================================================
   8. Search Form Component
   ============================================================= */
.authorpro-searchform {
    position: relative;
    width: 100%;
}

.authorpro-searchform-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.authorpro-searchform-icon {
    position: absolute;
    left: 0.875rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: var(--authorpro-color-slate-400);
}

.authorpro-searchform-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.authorpro-searchform-input {
    width: 100%;
    padding: 0.75rem 4.5rem 0.75rem 2.75rem;
    border: 1px solid var(--authorpro-color-slate-200);
    border-radius: var(--authorpro-radius-lg);
    background-color: var(--authorpro-color-slate-50);
    color: var(--authorpro-color-slate-900);
    font-size: 0.9375rem;
    outline: none;
    box-sizing: border-box;
    transition: all var(--authorpro-transition-base);
}

.authorpro-searchform-input::placeholder {
    color: var(--authorpro-color-slate-400);
}

.authorpro-searchform-input:focus {
    background-color: var(--authorpro-color-white);
    border-color: var(--authorpro-color-brand-600);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.authorpro-searchform-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--authorpro-color-brand-600);
    background: transparent;
    border: none;
    border-radius: var(--authorpro-radius-md);
    cursor: pointer;
    transition: color var(--authorpro-transition-fast), background-color var(--authorpro-transition-fast);
}

.authorpro-searchform-submit:hover {
    color: var(--authorpro-color-brand-700);
    background-color: var(--authorpro-color-slate-100);
}

