/* ═══════════════════════════════════════════════════════════
   Paintbrush Marketing — Core Template Styles
   404, single, archive, search, sidebar, comments, breadcrumbs
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Property ───────────────────────────────── */
:root {
    --pb-accent: #ff2d2d;
    --pb-bg: #000000;
    --pb-bg-card: #111111;
    --pb-border: #262626;
    --pb-text: #ffffff;
    --pb-text-muted: #999999;
    --pb-radius: 10px;
}

/* ── Skip Link (accessibility) ─────────────────────────── */
.skip-link:focus {
    background: var(--pb-accent);
    color: #000;
    clip: auto !important;
    clip-path: none;
    display: block;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    left: 5px;
    padding: 12px 24px;
    position: fixed;
    top: 5px;
    width: auto;
    z-index: 100000;
    border-radius: var(--pb-radius);
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════════
   BREADCRUMBS
   ══════════════════════════════════════════════════════════ */
.pb-breadcrumbs {
    padding: 100px 0 20px;
    font-size: 14px;
    color: var(--pb-text-muted);
}

.pb-breadcrumbs a {
    color: var(--pb-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.pb-breadcrumbs a:hover {
    color: var(--pb-accent);
}

.pb-breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.4;
}

.pb-breadcrumb-current {
    color: var(--pb-accent);
}

/* ══════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════ */
.pb-404-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
}

.pb-404-content {
    max-width: 560px;
    margin: 0 auto;
}

.pb-404-number {
    font-size: clamp(100px, 20vw, 200px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--pb-accent), #6bff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 16px;
}

.pb-404-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--pb-text);
}

.pb-404-desc {
    font-size: 16px;
    color: var(--pb-text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.pb-404-search {
    margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS (shared)
   ══════════════════════════════════════════════════════════ */
.pb-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--pb-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.pb-btn--primary {
    background: var(--pb-accent);
    color: #000;
    border-color: var(--pb-accent);
}

.pb-btn--primary:hover {
    background: transparent;
    color: var(--pb-accent);
}

/* ══════════════════════════════════════════════════════════
   SEARCH FORM
   ══════════════════════════════════════════════════════════ */
.pb-search-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}

.pb-search-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    border: 2px solid var(--pb-border);
    border-right: none;
    border-radius: var(--pb-radius) 0 0 var(--pb-radius);
    background: var(--pb-bg-card);
    color: var(--pb-text);
    outline: none;
    transition: border-color 0.2s;
}

.pb-search-input:focus {
    border-color: var(--pb-accent);
}

.pb-search-submit {
    padding: 12px 20px;
    background: var(--pb-accent);
    color: #000;
    border: 2px solid var(--pb-accent);
    border-radius: 0 var(--pb-radius) var(--pb-radius) 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.pb-search-submit:hover {
    background: transparent;
    color: var(--pb-accent);
}

/* ══════════════════════════════════════════════════════════
   ARCHIVE / SEARCH HEADER
   ══════════════════════════════════════════════════════════ */
.pb-archive-header {
    padding: 100px 0 40px;
    text-align: center;
}

.pb-archive-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--pb-text);
    margin-bottom: 8px;
}

.pb-archive-title span {
    color: var(--pb-accent);
}

.pb-archive-desc {
    font-size: 16px;
    color: var(--pb-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   POST CARD (archive grid & search)
   ══════════════════════════════════════════════════════════ */
.pb-post-grid {
    padding-bottom: 40px;
}

.pb-card {
    background: var(--pb-bg-card);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s;
}

.pb-card:hover {
    border-color: var(--pb-accent);
    transform: translateY(-4px);
}

.pb-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.pb-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.pb-card:hover .pb-card-thumb img {
    transform: scale(1.05);
}

.pb-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pb-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--pb-text-muted);
    margin-bottom: 10px;
}

.pb-card-meta a {
    color: var(--pb-accent);
}

.pb-card-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pb-accent);
    margin-bottom: 6px;
    display: block;
}

.pb-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.pb-card-title a {
    color: var(--pb-text);
    text-decoration: none;
    transition: color 0.2s;
}

.pb-card-title a:hover {
    color: var(--pb-accent);
}

.pb-card-excerpt {
    font-size: 14px;
    color: var(--pb-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.pb-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pb-text);
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}

.pb-card-readmore:hover {
    color: var(--pb-accent);
    gap: 10px;
}

/* ══════════════════════════════════════════════════════════
   SINGLE POST
   ══════════════════════════════════════════════════════════ */
.pb-single-post {
    padding-top: 0;
    padding-bottom: 80px;
}

.pb-article--single {
    padding-top: 20px;
}

.pb-article-thumbnail {
    border-radius: var(--pb-radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.pb-article-thumbnail img {
    width: 100%;
    height: auto;
}

.pb-article-header {
    margin-bottom: 32px;
}

.pb-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--pb-text-muted);
    margin-bottom: 16px;
}

.pb-article-meta i {
    margin-right: 4px;
}

.pb-article-meta a {
    color: var(--pb-text-muted);
    text-decoration: none;
}

.pb-article-meta a:hover {
    color: var(--pb-accent);
}

.pb-article-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--pb-text);
}

/* Content area */
.pb-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #cccccc;
}

.pb-article-content h2,
.pb-article-content h3,
.pb-article-content h4 {
    color: var(--pb-text);
    margin: 32px 0 16px;
}

.pb-article-content p {
    margin-bottom: 20px;
}

.pb-article-content a {
    color: var(--pb-accent);
    text-decoration: underline;
}

.pb-article-content blockquote {
    border-left: 4px solid var(--pb-accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--pb-bg-card);
    border-radius: 0 var(--pb-radius) var(--pb-radius) 0;
    font-style: italic;
    color: #ccc;
}

.pb-article-content img {
    border-radius: var(--pb-radius);
}

.pb-article-content ul,
.pb-article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.pb-article-content li {
    margin-bottom: 8px;
}

.pb-article-content pre {
    background: var(--pb-bg-card);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.pb-article-content code {
    background: var(--pb-bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

/* Article footer */
.pb-article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--pb-border);
}

.pb-article-tags {
    font-size: 14px;
    color: var(--pb-text-muted);
}

.pb-article-tags a {
    color: var(--pb-text-muted);
    text-decoration: none;
    margin-right: 6px;
}

.pb-article-tags a:hover {
    color: var(--pb-accent);
}

/* Post navigation */
.post-navigation {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--pb-border);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    text-decoration: none;
    color: var(--pb-text);
    transition: color 0.2s;
}

.post-navigation a:hover {
    color: var(--pb-accent);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pb-text-muted);
    margin-bottom: 4px;
}

.post-navigation .nav-title {
    font-size: 16px;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════ */
.pb-pagination {
    text-align: center;
    padding: 20px 0 60px;
}

.pb-pagination .nav-links {
    display: inline-flex;
    gap: 6px;
}

.pb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid var(--pb-border);
    border-radius: var(--pb-radius);
    color: var(--pb-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.pb-pagination .page-numbers:hover,
.pb-pagination .page-numbers.current {
    background: var(--pb-accent);
    border-color: var(--pb-accent);
    color: #000;
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════ */
.pb-sidebar {
    padding-top: 20px;
}

.pb-widget {
    background: var(--pb-bg-card);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.pb-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pb-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pb-accent);
}

.pb-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pb-widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--pb-border);
    font-size: 14px;
}

.pb-widget li:last-child {
    border-bottom: none;
}

.pb-widget a {
    color: var(--pb-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.pb-widget a:hover {
    color: var(--pb-accent);
}

/* ══════════════════════════════════════════════════════════
   COMMENTS
   ══════════════════════════════════════════════════════════ */
.pb-comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--pb-border);
}

.pb-comments-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--pb-text);
}

.pb-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pb-comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--pb-border);
}

.pb-comment-list .comment-body {
    display: flex;
    gap: 16px;
}

.pb-comment-list .comment-author img {
    border-radius: 50%;
}

.pb-comment-list .comment-author .fn {
    font-weight: 600;
    color: var(--pb-text);
}

.pb-comment-list .comment-metadata {
    font-size: 12px;
    color: var(--pb-text-muted);
    margin-bottom: 8px;
}

.pb-comment-list .comment-metadata a {
    color: var(--pb-text-muted);
    text-decoration: none;
}

.pb-comment-list .comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

.pb-comment-list .reply a {
    font-size: 13px;
    font-weight: 600;
    color: var(--pb-accent);
    text-decoration: none;
}

/* Comment form */
.pb-comments .comment-respond {
    margin-top: 32px;
}

.pb-comments .comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--pb-text);
}

.pb-comments .comment-notes {
    font-size: 13px;
    color: var(--pb-text-muted);
    margin-bottom: 16px;
}

.pb-comments .comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pb-text);
    margin-bottom: 6px;
}

.pb-comments .comment-form input[type="text"],
.pb-comments .comment-form input[type="email"],
.pb-comments .comment-form input[type="url"],
.pb-comments .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--pb-border);
    border-radius: var(--pb-radius);
    background: var(--pb-bg-card);
    color: var(--pb-text);
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.pb-comments .comment-form input:focus,
.pb-comments .comment-form textarea:focus {
    outline: none;
    border-color: var(--pb-accent);
}

.pb-comments .comment-form .submit {
    background: var(--pb-accent);
    color: #000;
    border: 2px solid var(--pb-accent);
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--pb-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.pb-comments .comment-form .submit:hover {
    background: transparent;
    color: var(--pb-accent);
}

/* ══════════════════════════════════════════════════════════
   NO RESULTS
   ══════════════════════════════════════════════════════════ */
.pb-no-results {
    text-align: center;
    padding: 60px 0;
}

.pb-no-results h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--pb-text);
}

.pb-no-results p {
    color: var(--pb-text-muted);
    margin-bottom: 32px;
}

/* ══════════════════════════════════════════════════════════
   FOOTER WIDGET AREA
   ══════════════════════════════════════════════════════════ */
.pb-footer-widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--pb-text);
}

.pb-footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pb-footer-widget li {
    padding: 4px 0;
    font-size: 14px;
}

.pb-footer-widget a {
    color: var(--pb-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.pb-footer-widget a:hover {
    color: var(--pb-accent);
}

/* ══════════════════════════════════════════════════════════
   SOCIAL ICONS
   ══════════════════════════════════════════════════════════ */
.pb-social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pb-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pb-bg-card);
    border: 1px solid var(--pb-border);
    color: var(--pb-text);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.pb-social-icon:hover {
    background: var(--pb-accent);
    border-color: var(--pb-accent);
    color: #000;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .pb-archive-header {
        padding-top: 80px;
    }

    .pb-breadcrumbs {
        padding-top: 80px;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-next {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .pb-404-page {
        padding: 100px 0 60px;
    }

    .pb-archive-title {
        font-size: 28px;
    }

    .pb-card-meta {
        flex-direction: column;
        gap: 4px;
    }

    .pb-article-meta {
        flex-direction: column;
        gap: 6px;
    }
}
