/*
Theme Name: Unsent Echoes
Theme URI: https://wa.me/+923110860361
Author: MH Tech Solutions
Author URI: https://wa.me/+923110860361
Description: Custom theme for anonymous unsent messages
Version: 1.0
*/

/* ==========================================================================
   1. GLOBAL SYSTEM BASE STYLES
   ========================================================================== */
:root {
    --primary: #e74c3c;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background: #f9f7f4;
    color: #222;
    margin: 0;
    line-height: 1.7;
    padding-top: var(--header-height, 72px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   2. HEADER & NAVIGATION STYLES
   ========================================================================== */
/* Skip link */
.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 100000;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 6px;
    transition: top .25s;
}

.skip-link:focus {
    top: 16px;
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Announcement bar */
.announcement-bar {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 10px 40px;
    font-size: .875rem;
    font-weight: 500;
    position: relative;
    display: block;
    letter-spacing: .01em;
}

.announcement-bar a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announcement-bar .close-announcement {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 8px;
    opacity: .7;
    transition: opacity .2s;
    line-height: 1;
}

.announcement-bar .close-announcement:hover {
    opacity: 1;
}

/* Main Header */
.unsent-header {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow .3s, transform .3s, background-color .3s;
}

.unsent-header.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .03);
    background-color: rgba(255, 255, 255, 0.85);
}

.unsent-header.header-hidden {
    transform: translateY(-100%);
}

.unsent-header .container-fluid {
    padding: 0 32px;
}

.unsent-header .site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
}

.unsent-header .site-logo img {
    max-width: 150px;
    height: auto;
    transition: transform .25s ease;
}

.unsent-header .site-logo:hover img {
    transform: scale(1.05);
}

.unsent-header .site-logo .site-title {
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -.04em;
    text-transform: uppercase;
    color: #000;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav li {
    list-style: none;
    position: relative;
}

.desktop-nav a,
.mobile-nav a {
    text-transform: uppercase;
}

.desktop-nav>li>a {
    color: #444;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 600;
    padding: 10px 18px;
    display: block;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border-radius: 30px;
    position: relative;
}

.desktop-nav>li>a:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.04);
}

.desktop-nav>.current-menu-item>a,
.desktop-nav>.current_page_item>a,
.desktop-nav>.current-menu-ancestor>a {
    color: #000;
    background: rgba(0, 0, 0, 0.06);
}

/* Submenu Dropdowns */
.menu-item-has-children>a .arrow::after {
    font-family: 'Font Awesome 6 Free';
    content: '\f078';
    font-weight: 900;
    font-size: .65rem;
    margin-left: 4px;
    display: inline-block;
    transition: transform .2s;
}

.menu-item-has-children:hover>a .arrow::after {
    transform: rotate(180deg);
}

.sub-menu,
.desktop-nav .children {
    display: none;
    position: absolute;
    top: 100%;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    min-width: 220px;
    list-style: none;
    padding: 8px;
    margin: 8px 0 0;
    z-index: 999;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .06);
    opacity: 0;
    transform: translateY(8px);
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.sub-menu::before,
.desktop-nav .children::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}

.desktop-nav li:hover>.sub-menu,
.desktop-nav li:hover>.children {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.desktop-nav .sub-menu a,
.desktop-nav .children a {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    color: #444;
    display: block;
    transition: background .15s, color .15s;
    border: none;
}

.desktop-nav .sub-menu a:hover,
.desktop-nav .children a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #000;
}

.sub-menu li:last-child a,
.desktop-nav .children li:last-child a {
    border-bottom: none;
}

.sub-menu .sub-menu,
.desktop-nav .children .children {
    left: 100%;
    top: -6px;
    margin: 0 0 0 8px;
}

/* Header Submit Button */
a.submit-btn {
    background: #000;
    color: #fff;
    padding: 10px 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: .88rem;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: 30px;
    letter-spacing: .01em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    text-transform: uppercase;
}

a.submit-btn:hover {
    background: #222;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

a.submit-btn:active {
    transform: translateY(0);
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    transition: background .2s;
}

.mobile-menu-toggle:hover {
    background: #f5f5f5;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
    overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .08);
    will-change: transform;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .3);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity .3s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation Links */
.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    list-style: none;
    position: relative;
}

.mobile-nav>li>a {
    color: #000;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}

.mobile-nav>li>a:hover {
    background: #f9f9f9;
}

/* Mobile Submenu Resets */
.mobile-nav .sub-menu,
.mobile-nav .children {
    display: none;
    position: static;
    border: none;
    padding: 0;
    margin: 0;
    min-width: auto;
    background: #fafafa;
    margin-left: 24px;
    opacity: 1;
    transform: none;
    box-shadow: none;
    backdrop-filter: none;
}

.mobile-nav .sub-menu::before,
.mobile-nav .children::before {
    display: none;
}

.mobile-nav .sub-menu.active,
.mobile-nav .children.active {
    display: block;
}

.mobile-nav .sub-menu .sub-menu,
.mobile-nav .children .children {
    margin-left: 16px;
}

.mobile-nav .sub-menu li a,
.mobile-nav .children li a {
    padding: 12px 24px 12px 16px !important;
    font-size: .975rem !important;
    border: none !important;
    display: block;
    color: #333;
    text-decoration: none;
}

.mobile-nav .sub-menu li a:hover,
.mobile-nav .children li a:hover {
    background: #eee;
    color: #000;
}

.mobile-nav .menu-item-has-children>a .arrow::after {
    font-family: 'Font Awesome 6 Free';
    content: '\f054';
    font-weight: 900;
    font-size: .75rem;
    transition: transform .3s;
}

.mobile-nav .menu-item-has-children>a.open .arrow::after {
    transform: rotate(90deg);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

/* Header Responsive Landmark Overrides */
@media (max-width: 767px) {
    .unsent-header {
        padding: 0;
    }

    .unsent-header .container-fluid {
        padding: 0 16px;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

@media (max-width: 767px) {

    a.desktop-only,
    .desktop-only {
        display: none;
    }
}


/* ==========================================================================
   LANDING PAGE & TYPEWRITER HERO STYLES (Extracted from front-page.php)
   ========================================================================== */
.message-grid > div { max-width: 100%; }

/* Hero */
.fp-hero {
    text-align: center;
    padding: 40px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.fp-hero h1 {
    font-size: clamp(1.6rem, 5.5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -.03em;
    margin: 0 0 16px;
    line-height: 1.25;
    text-transform: uppercase;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Custom Typewriter Cursor Caret */
.fp-hero h1 .cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #000;
    margin-left: 3px;
    vertical-align: text-bottom;
}
.fp-hero h1 .cursor.blinking {
    animation: blink .7s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.fp-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 100px;
    padding: 8px 20px;
    font-size: .9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 32px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.fp-count strong {
    color: #000;
    font-size: 1.1em;
}

/* Search bar — Neobrutalist (matches blog/search pages) */
.fp-search-wrap {
    max-width: 640px;
    margin: 0 auto 48px;
    display: flex;
    border: 3px solid #000;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 4px 4px 0px #000;
    transition: box-shadow .25s, transform .25s;
}

.fp-search-wrap:focus-within {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.fp-search-wrap select {
    border: none;
    border-right: 3px solid #000;
    padding: 0 36px 0 18px;
    font-size: .85rem;
    font-weight: 700;
    font-family: inherit;
    background: #f7f7f7;
    color: #000;
    cursor: pointer;
    outline: none;
    min-width: 120px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    transition: background .2s;
}

.fp-search-wrap select:hover {
    background-color: #f0f0f0;
}

.fp-search-wrap .search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 0 0 12px;
    min-width: 0;
}

.fp-search-wrap .search-input-wrap .search-icon {
    color: #888;
    font-size: .95rem;
    margin-right: 6px;
    flex-shrink: 0;
    pointer-events: none;
    transition: color .25s;
}

.fp-search-wrap:focus-within .search-input-wrap .search-icon {
    color: #000;
}

.fp-search-wrap input[type="text"] {
    flex: 1;
    border: none;
    padding: 14px 40px 14px 0;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    min-width: 0;
    background: transparent;
}

.fp-search-wrap input[type="text"]::placeholder {
    color: #bbb;
}

/* Inline Search Clear Button Trigger */
.search-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #bbb;
    cursor: pointer;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.15s;
    z-index: 5;
}
.search-clear-btn:hover {
    color: #000;
    transform: scale(1.15);
}
.search-clear-btn:active {
    transform: scale(0.9);
}

.fp-search-wrap button {
    background: #000;
    color: #fff;
    border: none;
    border-left: 3px solid #000;
    padding: 0 28px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.fp-search-wrap button:hover {
    background: #222;
}

.fp-search-wrap button:active {
    background: #444;
}

.fp-search-wrap button .clear-search {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: .7;
    transition: opacity .2s;
}

.fp-search-wrap button .clear-search:hover {
    opacity: 1;
}

/* Results info */
.fp-results-info {
    text-align: center;
    padding: 0 24px 24px;
    font-size: .95rem;
    color: #666;
    display: none;
}

.fp-results-info .clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: .9rem;
    padding: 0;
}

/* Message Grid */
.message-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    padding: 0 24px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Staggered Card Animation */
.message-grid > a, 
.message-grid > div.unsent-message-card {
    animation: fadeSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading */
#load-more-trigger {
    text-align: center;
    padding: 40px;
    min-height: 40px;
}

#load-more-spinner {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid #e5e5e5;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.fp-empty {
    text-align: center;
    grid-column: 1 / -1;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #888;
}

.fp-empty .fp-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

/* No results */
.no-results-filter {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-results-filter p {
    font-size: 1.2rem;
    color: #888;
    margin: 0 0 16px;
}

/* Neobrutalist Skeleton Loading Screen placeholders */
.skeleton-card {
    width: 100%;
    height: 420px;
    background: #fff;
    border: 3px solid #000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    overflow: hidden;
    animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.skeleton-header {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 48px;
    border-bottom: 3px solid #000;
    background: #f7f7f7;
}
.skeleton-header-badge {
    width: 46px;
    height: 28px;
    background: #e0e0e0;
    animation: skeleton-pulse 1.4s infinite ease-in-out;
}
.skeleton-header-text {
    margin-left: 12px;
    width: 120px;
    height: 18px;
    background: #e0e0e0;
    border-radius: 4px;
    animation: skeleton-pulse 1.4s infinite ease-in-out;
}
.skeleton-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.skeleton-line {
    height: 16px;
    background: #e5e5e5;
    border-radius: 4px;
    animation: skeleton-pulse 1.4s infinite ease-in-out;
}
.skeleton-line.short {
    width: 60%;
}
.skeleton-line.medium {
    width: 85%;
}
.skeleton-footer {
    display: flex;
    border-top: 3px solid #000;
    height: 49px;
    background: #f7f7f7;
}
.skeleton-footer-btn {
    flex: 1;
    border-right: 3px solid #000;
    background: #fdfdfd;
}
.skeleton-footer-btn:last-child {
    border-right: none;
}
@keyframes skeleton-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    .fp-hero {
        padding: 20px 16px 28px;
    }
    .fp-hero h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        min-height: 2.4em;
    }
    .fp-search-wrap {
        flex-direction: column;
        border-radius: 0;
        margin: 0 16px 32px;
        border-width: 3px;
        box-shadow: 3px 3px 0px #000;
    }
    .fp-search-wrap select {
        border-right: none;
        border-bottom: 3px solid #000;
        width: 100%;
        padding: 16px 40px 16px 18px;
        font-size: .9rem;
        background-color: #fafafa;
        background-position: right 16px center;
        min-height: 52px;
    }
    .fp-search-wrap .search-input-wrap {
        padding: 0 0 0 16px;
        border-bottom: 3px solid #000;
    }
    .fp-search-wrap .search-input-wrap .search-icon {
        font-size: 1rem;
    }
    .fp-search-wrap input[type="text"] {
        padding: 16px 40px 16px 0;
        font-size: 1.05rem;
        min-height: 52px;
    }
    .fp-search-wrap button {
        justify-content: center;
        padding: 16px;
        font-size: 1rem;
        min-height: 52px;
        border-radius: 0;
        border-left: none;
        border-top: 3px solid #000;
        letter-spacing: .02em;
    }
    .fp-search-wrap button:active {
        background: #333;
    }
    .message-grid {
        padding: 0 16px 32px;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .fp-count {
        font-size: .8rem;
        padding: 7px 16px;
        margin-bottom: 24px;
    }
    .fp-results-info {
        font-size: .875rem;
        padding: 0 16px 20px;
    }
}

@media (max-width: 480px) {
    .message-grid .unsent-message-card {
        height: 380px !important;
        min-height: 320px;
        max-height: 380px;
    }
    .message-grid .unsent-message-card > div:nth-child(2) {
        font-size: 1.1rem !important;
        padding: 15px !important;
        overflow-y: auto !important;
    }
    .message-grid .unsent-message-card > div:first-child {
        height: 44px !important;
        padding: 0 10px !important;
    }
    .message-grid .unsent-message-card > div:last-child button {
        padding: 12px !important;
        font-size: 1rem !important;
    }
    .recipient-name {
        font-size: 1.15rem !important;
    }
}


/* ==========================================================================
   4. SINGLE CONFESSION POST VIEW (single-unsent.php)
   ========================================================================== */
.single-unsent-wrap {
    max-width: 520px;
    margin: 60px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.single-unsent-card-container {
    width: 100%;
    margin-bottom: 25px;
    position: relative;
    min-height: 420px;
}

/* Neobrutalist metadata info box */
.unsent-info-box {
    width: 100%;
    background: #fafafa;
    border: 2px solid #000;
    padding: 20px 24px;
    text-align: left;
    margin-bottom: 30px;
    box-shadow: 4px 4px 0px #000;
    word-wrap: break-word;
    word-break: normal;
    overflow-wrap: break-word;
}

.unsent-info-row {
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
}

.unsent-info-row:last-child {
    margin-bottom: 0;
}

.unsent-info-label {
    font-weight: 800;
    color: #000;
    display: inline-block;
    min-width: 90px;
}

.unsent-report-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.unsent-report-link:hover {
    text-decoration: underline;
}

/* Single view share bar */
.unsent-share-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.unsent-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
    border-radius: 0;
}

.unsent-share-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    color: #000;
}

.unsent-share-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

/* Large submit CTA button */
.unsent-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border: 3px solid #000;
    background: #000;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
}

.unsent-cta-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px #000;
    color: #fff;
}

.unsent-cta-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px #000;
}

/* Tooltip overlay styling */
.share-tooltip {
    position: relative;
}

.share-tooltip .tooltip-text {
    visibility: hidden;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 6px 12px;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -40px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}

.share-tooltip .tooltip-text.show {
    visibility: visible;
    opacity: 1;
}

/* Loading placeholder card */
.unsent-loading-card {
    width: 100%;
    height: 420px;
    border: 3px solid #000;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

@media (max-width: 480px) {
    .single-unsent-wrap {
        margin: 40px auto;
        padding: 15px;
    }

    .unsent-share-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .unsent-info-box {
        padding: 16px;
    }
}


/* ==========================================================================
   5. CONFESSION SUBMISSION EDITOR PAGE (page-submit.php)
   ========================================================================== */
.submit-page-wrap {
    max-width: 1180px;
    margin: 60px auto;
    padding: 20px;
}

.submit-page-wrap h1 {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 50px;
}

.submit-layout {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
}

.submit-preview-box {
    width: 440px;
    height: 496px;
    background: #000;
    color: #fff;
    border: 3px solid #000;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.submit-preview-top {
    display: flex;
    align-items: center;
    background: #fff;
    color: #000;
    padding: 0 15px;
    height: 57px;
    border-bottom: 3px solid #000;
}

.submit-preview-badge {
    background: #000;
    color: #fff;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 1.2rem;
}

.submit-preview-to-wrap {
    margin-left: 15px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    font-size: 1.05rem;
    color: #000;
}

.submit-preview-to-wrap input {
    background: transparent;
    border: none;
    color: #000;
    font-size: 1.35rem;
    font-weight: bold;
    outline: none;
    width: 75%;
    vertical-align: middle;
}

.submit-preview-emoji {
    font-size: 1.6rem;
    margin-left: 10px;
}

/* Typing area margins (optimized to match card layout and spacing) */
.submit-preview-message {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    background: #000;
    color: #fff;
    border: none;
    font-size: 1.8rem;
    padding: 20px 24px;
    resize: none;
    outline: none;
    line-height: 1.4;
    margin: 0;
    display: block;
}

.submit-preview-bottom {
    display: flex;
    border-top: 3px solid #000;
}

.submit-preview-bottom button {
    flex: 1;
    padding: 18px;
    background: #fff;
    color: #000;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 500;
}

/* Color palettes styling */
.submit-colors {
    min-width: 340px;
    max-width: 380px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 40px);
    gap: 14px 22px;
    margin-bottom: 25px;
    justify-content: flex-start;
}

.color-swatch {
    width: 45px;
    height: 45px;
    border: 3px solid #000;
    border-radius: 0;
    cursor: pointer;
}

.submit-footer {
    max-width: 500px;
    margin: 30px auto 0;
    text-align: center;
}

.submit-footer .agree-label {
    font-size: 1.05rem;
    cursor: pointer;
}

.submit-submit-btn {
    width: 100%;
    padding: 18px;
    background: #000;
    color: white;
    font-size: 1.3rem;
    border: none;
    cursor: pointer;
}

.submit-submit-btn:hover {
    background: #1a1a1a;
}

/* Submission Page Responsiveness */
@media (max-width: 768px) {
    .submit-page-wrap {
        padding: 10px;
    }

    .submit-page-wrap h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    #preview_to {
        font-size: 1.15rem;
    }

    .submit-preview-box {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 420px;
    }

    .color-grid {
        grid-template-columns: repeat(6, 36px);
        gap: 8px 20px;
        justify-content: center;
    }

    .color-swatch {
        width: 36px !important;
        height: 36px !important;
    }

    .submit-colors {
        min-width: 280px;
    }
}

/* ==========================================================================
   6. NEOBRUTALIST SUCCESS MODAL DIALOG
   ========================================================================== */
.submit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.submit-modal-card {
    background: #fff;
    border: 3px solid #000;
    width: 100%;
    max-width: 460px;
    box-shadow: 8px 8px 0px #000;
    transform: translateY(0);
    animation: modalBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalBounce {
    0% {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.submit-modal-header {
    background: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-bottom: 3px solid #000;
}

.submit-modal-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.submit-modal-body {
    padding: 30px 24px;
    text-align: center;
}

.submit-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: iconBounce 1s infinite alternate;
}

@keyframes iconBounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-8px);
    }
}

.submit-modal-body h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    color: #000;
}

.submit-modal-body p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0 0 24px;
}

.submit-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 4px 4px 0px #000;
    border-radius: 0;
}

.modal-btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.modal-btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.modal-btn-secondary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 4px 4px 0px #000;
    display: inline-block;
    border-radius: 0;
}

.modal-btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    color: #000;
}

.modal-btn-secondary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

/* ==========================================================================
   BLOG PAGE & ARCHIVE NEOBRUTALIST STYLES
   ========================================================================== */
:root {
    --blog-bg: #f9f7f4;
    --blog-card-bg: #fff;
    --blog-border: #000;
    --blog-text: #000;
    --blog-text-secondary: #555;
    --blog-accent: #e74c3c;
    --blog-radius: 0px;
}

/* Container */
.blog-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Header */
.blog-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 3px solid var(--blog-border);
}

.blog-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0 0 12px;
    font-weight: 900;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.blog-header p {
    color: var(--blog-text-secondary);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
}

/* Search Bar */
.blog-search {
    margin: -16px 0 0;
    padding-bottom: 28px;
    border-bottom: 3px solid var(--blog-border);
    margin-bottom: 24px;
}

.blog-search-wrap {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    border: 3px solid var(--blog-border);
    border-radius: var(--blog-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 4px 4px 0px #000;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}

.blog-search-wrap:focus-within {
    border-color: #000;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.blog-search-wrap .search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 0 0 12px;
    min-width: 0;
}

.blog-search-wrap .search-input-wrap .search-icon {
    color: #888;
    font-size: .95rem;
    margin-right: 6px;
    flex-shrink: 0;
    pointer-events: none;
}

.blog-search-wrap input[type="text"] {
    flex: 1;
    border: none;
    padding: 14px 16px 14px 0;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    min-width: 0;
    background: transparent;
}

.blog-search-wrap input[type="text"]::placeholder {
    color: #bbb;
}

.blog-search-wrap button {
    background: #000;
    color: #fff;
    border: none;
    border-left: 3px solid var(--blog-border);
    padding: 0 28px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s, color .2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.blog-search-wrap button:hover {
    background: #222;
}

/* Search results header */
.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 20px;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 3px solid #000;
    margin-bottom: 32px;
}

.search-results-header .search-results-count {
    font-size: .95rem;
    color: var(--blog-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-results-header .search-results-count strong {
    color: var(--blog-text);
}

.search-results-header .search-results-count .search-term {
    color: var(--blog-accent);
    font-weight: 700;
}

.search-results-header .search-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .85rem;
    color: #000;
    background: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 7px 14px;
    border: 2px solid #000;
    border-radius: var(--blog-radius);
    box-shadow: 2px 2px 0px #000;
    transition: all .15s;
}

.search-results-header .search-clear-all:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000;
    background: #fafafa;
}

/* Controls */
.blog-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
    gap: 8px;
}

.view-toggle {
    display: inline-flex;
    border: 3px solid var(--blog-border);
    border-radius: var(--blog-radius);
    overflow: hidden;
    background: var(--blog-card-bg);
    box-shadow: 3px 3px 0px #000;
}

.view-toggle button {
    background: none;
    border: none;
    border-right: 3px solid var(--blog-border);
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #000;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.view-toggle button:last-child {
    border-right: none;
}

.view-toggle button.active {
    background: var(--blog-border);
    color: #fff;
}

.view-toggle button:not(.active):hover {
    background: #f0f0f0;
}

/* Post items - list layout */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-post {
    display: flex;
    gap: 32px;
    padding: 24px;
    border: 3px solid var(--blog-border);
    border-radius: var(--blog-radius);
    background: var(--blog-card-bg);
    box-shadow: 6px 6px 0px #000;
    transition: transform .25s cubic-bezier(.16, 1, 0.3, 1), box-shadow .25s ease, opacity .5s ease;
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
}

.blog-post.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-post.visible:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px #000;
}

/* Post image */
.blog-post-image {
    width: 280px;
    height: 190px;
    flex-shrink: 0;
    border-radius: var(--blog-radius);
    overflow: hidden;
    border: 3px solid var(--blog-border);
    background: #f5f5f5;
    position: relative;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.16, 1, 0.3, 1);
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: #faf9f6;
    color: var(--blog-text-secondary);
}

/* Post content */
.blog-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.blog-post-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--blog-accent);
    color: #fff;
    padding: 5px 12px;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 2px solid #000;
    border-radius: var(--blog-radius);
    margin-bottom: 12px;
    width: fit-content;
    box-shadow: 2px 2px 0px #000;
    transition: transform .15s, box-shadow .15s;
    text-decoration: none;
}

a.blog-post-category:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000;
    color: #fff;
}

.blog-post-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 10px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.blog-post-title a {
    color: var(--blog-text);
    text-decoration: none;
    transition: color .2s;
}

.blog-post-title a:hover {
    color: var(--blog-accent);
}

.blog-post-excerpt {
    color: var(--blog-text-secondary);
    line-height: 1.6;
    font-size: .95rem;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-meta {
    font-size: .85rem;
    color: var(--blog-text-secondary);
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    border-top: 2px solid #eee;
    padding-top: 14px;
    margin-top: auto;
}

.blog-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-weight: 600;
}

.blog-post-meta .read-more-link {
    color: #000;
    font-weight: 700;
    text-decoration: none;
    font-size: .85rem;
    border: 2px solid #000;
    padding: 4px 14px;
    background: #fff;
    box-shadow: 2px 2px 0px #000;
    margin-left: auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform .15s, box-shadow .15s, gap .25s ease;
}

.blog-post-meta .read-more-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000;
    background: #000;
    color: #fff;
    gap: 10px;
}

/* Grid view overrides */
.blog-posts.grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.blog-posts.grid-view .blog-post {
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.blog-posts.grid-view .blog-post-image {
    width: 100%;
    height: 200px;
    border-radius: 0;
    border: none;
    border-bottom: 3px solid var(--blog-border);
}

.blog-posts.grid-view .blog-post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-posts.grid-view .blog-post-title {
    font-size: 1.25rem;
}

.blog-posts.grid-view .blog-post-meta .read-more-link {
    margin-left: 0;
    margin-top: 12px;
    width: fit-content;
}

/* Pagination */
.blog-pagination {
    text-align: center;
    padding: 48px 0 0;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    margin: 0 4px;
    border: 3px solid var(--blog-border);
    border-radius: var(--blog-radius);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    background: #fff;
    box-shadow: 3px 3px 0px #000;
    transition: transform .15s, box-shadow .15s;
}

.blog-pagination .page-numbers.current {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: none;
    transform: none;
}

.blog-pagination .page-numbers:hover:not(.current) {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000;
    background: #fdfdfd;
}

/* Responsive overrides */
@media (max-width: 768px) {
    .blog-container {
        padding: 32px 16px;
    }
    .blog-header {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    .blog-search {
        margin-bottom: 20px;
        padding-bottom: 24px;
    }
    .blog-post {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .blog-post-image {
        width: 100%;
        height: 200px;
    }
    .blog-post-title {
        font-size: 1.3rem;
    }
    .blog-posts.grid-view {
        grid-template-columns: 1fr;
    }
    .blog-controls {
        justify-content: center;
    }
}

/* ==========================================================================
   SINGLE BLOG POST VIEW NEOBRUTALIST STYLES
   ========================================================================== */
:root {
    --single-max: 820px;
    --single-bg: #fff;
    --single-text: #000;
    --single-muted: #555;
    --single-border: #000;
    --single-accent: #e74c3c;
    --single-radius: 0px;
}

.single-container {
    max-width: var(--single-max);
    margin: 0 auto;
    padding: 60px 24px;
}

/* Reading progress */
.reading-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 99999;
    background: #e5e5e5;
    border-bottom: 1px solid #000;
}

.reading-progress {
    height: 100%;
    background: #000;
    width: 0;
    transition: width .1s linear;
}

.reading-progress-label {
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 99999;
    font-size: .75rem;
    font-weight: 800;
    color: #000;
    background: #fff;
    border: 2px solid #000;
    padding: 2px 8px;
    box-shadow: 2px 2px 0px #000;
    opacity: 0;
    transition: opacity .3s;
    letter-spacing: .03em;
    pointer-events: none;
    text-transform: uppercase;
}

.reading-progress-label.visible {
    opacity: 1;
}

/* Article header */
.article-header {
    margin-bottom: 44px;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--single-accent);
    color: #fff;
    padding: 5px 14px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 2px solid #000;
    border-radius: var(--single-radius);
    margin-bottom: 20px;
    text-decoration: none;
    box-shadow: 2px 2px 0px #000;
    transition: transform .15s, box-shadow .15s, opacity .2s;
}

.article-category:hover {
    color: #fff;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 24px;
    letter-spacing: -.03em;
    text-transform: uppercase;
}

.article-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 3px solid var(--single-border);
    font-size: .9rem;
    color: var(--single-muted);
    flex-wrap: wrap;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.article-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--single-border);
    flex-shrink: 0;
}

.article-meta .author-name {
    font-weight: 700;
    color: var(--single-text);
}

/* Share bar */
.article-share {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.article-share a,
.article-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--single-radius);
    border: 2px solid var(--single-border);
    color: #000;
    text-decoration: none;
    font-size: .95rem;
    transition: transform .15s, box-shadow .15s, background .2s, color .2s;
    background: #fff;
    box-shadow: 2px 2px 0px #000;
    cursor: pointer;
    padding: 0;
}

.article-share a:hover,
.article-share button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000;
    background: #000;
    color: #fff;
}

.article-share .copy-confirm {
    position: relative;
}

.article-share .copy-confirm .tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 4px 10px;
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    box-shadow: 2px 2px 0px #fff;
}

.article-share .copy-confirm .tooltip.show {
    opacity: 1;
}

/* Featured image */
.article-featured-image {
    width: 100%;
    margin-bottom: 44px;
    border-radius: var(--single-radius);
    overflow: hidden;
    border: 3px solid var(--single-border);
    box-shadow: 6px 6px 0px #000;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Table of Contents */
.article-toc {
    background: #fff;
    border: 3px solid var(--single-border);
    border-radius: var(--single-radius);
    padding: 24px 28px;
    margin-bottom: 44px;
    box-shadow: 5px 5px 0px #000;
}

.article-toc-title {
    font-size: .9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #000;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-toc-list li {
    margin-bottom: 8px;
}

.article-toc-list a {
    color: #000;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 700;
    padding: 2px 0;
    display: inline-block;
    transition: color .2s;
    border-bottom: 2px solid transparent;
}

.article-toc-list a:hover {
    color: var(--single-accent);
    border-bottom-color: var(--single-accent);
}

/* Content overrides */
.article-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #000;
    margin-bottom: 48px;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 2em 0 .6em;
    letter-spacing: -.02em;
    scroll-margin-top: 80px;
    text-transform: uppercase;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 1.6em 0 .5em;
    scroll-margin-top: 80px;
}

.article-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.4em 0 .4em;
    scroll-margin-top: 80px;
}

.article-content blockquote {
    border: 3px solid #000;
    border-left: 8px solid #000;
    padding: 20px 24px;
    margin: 1.8em 0;
    background: #faf9f6;
    font-style: italic;
    font-size: 1.1rem;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.06);
    border-radius: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    border-radius: 0;
    margin: 1.8em 0;
}

.article-content a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    text-decoration-thickness: 2px;
}

.article-content a:hover {
    color: var(--single-accent);
}

.article-content ul, .article-content ol {
    margin: 1.4em 0;
    padding-left: 1.8em;
}

.article-content li {
    margin-bottom: .6em;
    font-weight: 500;
}

.article-content pre {
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    background: #111;
    color: #f5f5f5;
    padding: 20px;
    border-radius: 0;
    overflow-x: auto;
    font-size: .9rem;
    line-height: 1.5;
}

.article-content code {
    background: #f0f0f0;
    border: 1.5px solid #000;
    padding: 2px 6px;
    border-radius: 0;
    font-size: .875em;
    font-weight: 600;
}

.article-content pre code {
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
}

/* Tags */
.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    border-top: 3px solid var(--single-border);
    border-bottom: 3px solid var(--single-border);
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.article-tags-label {
    font-weight: 700;
    font-size: .95rem;
    color: #000;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.article-tags a {
    display: inline-flex;
    padding: 5px 14px;
    border: 2px solid var(--single-border);
    border-radius: var(--single-radius);
    color: #000;
    background: #fff;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 700;
    box-shadow: 2px 2px 0px #000;
    transition: transform .15s, box-shadow .15s, background .2s;
    gap: 4px;
}

.article-tags a:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000;
    background: var(--single-accent);
    color: #fff;
}

/* Author box */
.author-box {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: #fff;
    border: 3px solid var(--single-border);
    border-radius: var(--single-radius);
    box-shadow: 6px 6px 0px #000;
    margin-bottom: 44px;
    align-items: center;
}

.author-avatar-large {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid var(--single-border);
    flex-shrink: 0;
}

.author-info h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.author-info p {
    color: var(--single-muted);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 48px;
}

.post-nav-item {
    border: 3px solid var(--single-border);
    border-radius: var(--single-radius);
    padding: 20px;
    text-decoration: none;
    color: #000;
    box-shadow: 4px 4px 0px #000;
    transition: transform .25s, box-shadow .25s, background .25s;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.post-nav-item:hover {
    border-color: #000;
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px #000;
    background: #faf9f6;
}

.post-nav-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 800;
    color: var(--single-muted);
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-nav-title {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Back to blog */
.back-to-blog {
    text-align: center;
    margin-bottom: 48px;
}

.back-to-blog a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #000;
    background: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    padding: 12px 28px;
    border: 3px solid var(--single-border);
    border-radius: var(--single-radius);
    box-shadow: 3px 3px 0px #000;
    transition: transform .15s, box-shadow .15s, background .2s;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.back-to-blog a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000;
    background: #faf9f6;
    color: #000;
}

/* Related posts */
.related-posts {
    margin-bottom: 48px;
    padding-top: 40px;
    border-top: 3px solid var(--single-border);
}

.related-posts h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 24px;
    text-transform: uppercase;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-card {
    border: 3px solid var(--single-border);
    border-radius: var(--single-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 4px 4px 0px #000;
    transition: transform .3s cubic-bezier(.16, 1, 0.3, 1), box-shadow .3s ease;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    border-color: #000;
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid var(--single-border);
}

.related-card-content {
    padding: 16px;
}

.related-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card h3 a {
    color: #000;
    text-decoration: none;
}

.related-card .date {
    font-size: .8rem;
    color: var(--single-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s cubic-bezier(.16, 1, 0.3, 1), transform .5s cubic-bezier(.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Comments custom styling adjustments */
.comments-section {
    border-top: 3px solid #000;
    padding-top: 40px;
}

/* Responsive overrides */
@media (max-width: 768px) {
    .single-container {
        padding: 32px 16px;
    }
    .article-title {
        font-size: 1.7rem;
    }
    .article-meta {
        gap: 12px;
        font-size: .85rem;
    }
    .article-share {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        padding-top: 14px;
        border-top: 2px solid var(--single-border);
    }
    .article-content {
        font-size: 1.05rem;
    }
    .post-navigation {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .article-toc {
        padding: 16px 20px;
    }
}

/* ==========================================================================
   SEARCH RESULTS PAGE NEOBRUTALIST STYLES
   ========================================================================== */
.search-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 60px 24px;
}

.search-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 3px solid #000;
}

.search-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0 0 12px;
    font-weight: 900;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.search-header p {
    color: #555;
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
}

.search-header p .search-term-highlight {
    color: #e74c3c;
    font-weight: 900;
}

.search-result-item {
    display: flex;
    gap: 32px;
    padding: 24px;
    border: 3px solid #000;
    background: #fff;
    box-shadow: 6px 6px 0px #000;
    margin-bottom: 32px;
    transition: transform .25s, box-shadow .25s;
}

.search-result-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px #000;
}

.search-result-thumb {
    width: 240px;
    height: 160px;
    flex-shrink: 0;
    border: 3px solid #000;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.search-result-item:hover .search-result-thumb img {
    transform: scale(1.05);
}

.search-result-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: #faf9f6;
    color: #555;
}

.search-result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.search-result-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #000;
    color: #fff;
    padding: 5px 12px;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 2px solid #000;
    margin-bottom: 12px;
    width: fit-content;
    box-shadow: 2px 2px 0px #000;
}

.search-result-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0 0 10px;
    line-height: 1.3;
}

.search-result-title a {
    color: #000;
    text-decoration: none;
}

.search-result-title a:hover {
    color: #e74c3c;
}

.search-result-excerpt {
    color: #555;
    line-height: 1.6;
    font-size: .95rem;
    margin-bottom: 14px;
}

.search-result-meta {
    font-size: .85rem;
    color: #555;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    border-top: 2px solid #eee;
    padding-top: 12px;
}

.search-result-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    border: 3px solid #000;
    background: #fff;
    box-shadow: 6px 6px 0px #000;
}

.search-no-results h2 {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.search-no-results p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 28px;
    font-weight: 500;
}

.search-suggestions {
    max-width: 440px;
    margin: 0 auto;
    text-align: left;
    border: 3px solid #000;
    padding: 24px;
    box-shadow: 4px 4px 0px #000;
    background: #faf9f6;
}

.search-suggestions h3 {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.search-suggestions li {
    padding: 8px 0;
    border-bottom: 2px solid #000;
    font-weight: 600;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-pagination {
    text-align: center;
    padding: 48px 0 0;
}

.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    margin: 0 4px;
    border: 3px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    background: #fff;
    box-shadow: 3px 3px 0px #000;
    transition: transform .15s, box-shadow .15s;
}

.search-pagination .page-numbers.current {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: none;
    transform: none;
}

.search-pagination .page-numbers:hover:not(.current) {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000;
    background: #fdfdfd;
}

/* ==========================================================================
   404 ERROR PAGE — NEOBRUTALIST
   ========================================================================== */

.error-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #f9f7f4;
    position: relative;
    overflow: hidden;
}

/* Decorative background cards */
.error-page::before,
.error-page::after {
    content: '';
    position: absolute;
    border: 3px solid rgba(0,0,0,.06);
    border-radius: 0;
    pointer-events: none;
}
.error-page::before {
    width: 340px;
    height: 420px;
    top: 5%;
    left: -60px;
    transform: rotate(-8deg);
    background: #fff;
    box-shadow: 4px 4px 0 rgba(0,0,0,.05);
}
.error-page::after {
    width: 260px;
    height: 340px;
    bottom: 8%;
    right: -40px;
    transform: rotate(6deg);
    background: #fff;
    box-shadow: 4px 4px 0 rgba(0,0,0,.05);
}

.error-inner {
    max-width: 680px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Envelope card */
.error-envelope {
    background: #fff;
    border: 3px solid #000;
    box-shadow: 6px 6px 0px #000;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 520px;
    position: relative;
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50%       { transform: translateY(-10px) rotate(1deg); }
}

.error-envelope-header {
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 3px solid #000;
    padding: 0 14px;
    height: 52px;
    gap: 12px;
}

.error-envelope-abc {
    background: #000;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 6px 14px;
    letter-spacing: .05em;
    flex-shrink: 0;
}

.error-envelope-to {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
    color: #000;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.error-envelope-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.error-envelope-body {
    padding: 32px 28px;
    background: #f5f5f5;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
}

.error-404-number {
    font-size: 5rem;
    font-weight: 900;
    color: #000;
    line-height: 1;
    letter-spacing: -4px;
    display: block;
}

.error-envelope-message {
    font-size: 1.15rem;
    color: #444;
    line-height: 1.5;
    font-style: italic;
}

.error-envelope-footer {
    display: flex;
    border-top: 3px solid #000;
}

.error-envelope-footer span {
    flex: 1;
    padding: 13px;
    font-size: .95rem;
    font-weight: 600;
    color: #000;
    border-right: 3px solid #000;
    text-align: center;
}

.error-envelope-footer span:last-child {
    border-right: none;
}

.error-heading {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 12px;
    color: #000;
    letter-spacing: -.02em;
}

.error-subtext {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    margin: 0 auto 36px;
    max-width: 480px;
}

.error-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    border: 3px solid #000;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    letter-spacing: .02em;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px #000;
}

.error-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.error-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px #000;
}

.error-btn-primary {
    background: #000;
    color: #fff;
}

.error-btn-primary:hover {
    color: #fff;
}

.error-btn-secondary {
    background: #fff;
    color: #000;
}

.error-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 2px solid #e0e0e0;
}

.error-links a {
    color: #000;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity .2s;
}

.error-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 600px) {
    .error-page::before,
    .error-page::after { display: none; }

    .error-envelope { margin-bottom: 28px; }

    .error-404-number { font-size: 3.5rem; }

    .error-heading { font-size: 1.5rem; }

    .error-btn {
        width: 100%;
        justify-content: center;
    }

    .error-actions { flex-direction: column; }
}

/* ==========================================================================
   COMMENTS SECTION — NEOBRUTALIST
   ========================================================================== */

.comments-section {
    padding-top: 48px;
    margin-top: 48px;
    border-top: 3px solid #000;
}

/* ---- Title ---- */
.comments-title {
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.comments-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #000;
    color: #fff;
    font-size: .9rem;
    flex-shrink: 0;
}

/* ---- Comment list ---- */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 24px;
}

.comment-body {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    transition: transform .2s, box-shadow .2s;
    position: relative;
}

.comment-body:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px #000;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    border-radius: 50%;
    border: 3px solid #000;
    width: 48px;
    height: 48px;
    display: block;
    box-shadow: 2px 2px 0px #000;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px dashed #e0e0e0;
}

.comment-author {
    font-weight: 900;
    font-size: 1rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comment-author a {
    color: #000;
    text-decoration: none;
}

.comment-author a:hover {
    color: #e74c3c;
}

.comment-author .says {
    display: none;
}

.comment-time {
    font-size: .8rem;
    color: #888;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comment-time a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-time a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

.comment-time::before {
    content: "🕒";
    font-size: 0.85rem;
    opacity: 0.8;
}

.comment-edit-link {
    font-size: .75rem;
    color: #e74c3c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 2px solid #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    background: #fff;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.15s ease;
}

.comment-edit-link:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000;
}

.comment-awaiting-moderation {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 4px 12px;
    border: 2px solid #856404;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 12px;
}

.comment-text {
    line-height: 1.8;
    color: #222;
    font-size: .95rem;
}

.comment-text p {
    margin: 0 0 12px;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-reply {
    margin-top: 16px;
    text-align: right;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    color: #fff;
    background: #000;
    font-weight: 800;
    text-decoration: none;
    padding: 6px 16px;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: transform .15s, box-shadow .15s;
}

.comment-reply-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
    color: #fff;
}

/* ---- Nested replies ---- */
.children {
    list-style: none;
    margin: 24px 0 0 48px;
    padding: 0 0 0 24px;
    border-left: 3px dashed #000;
    position: relative;
}

.children .comment-body {
    background: #faf8f5;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
}

/* ---- Comment nav ---- */
.comment-navigation {
    text-align: center;
    padding: 24px 0;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.comment-navigation .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 3px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem;
    box-shadow: 3px 3px 0 #000;
    transition: transform .15s, box-shadow .15s;
}

.comment-navigation .page-numbers:hover:not(.current) {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #000;
}

.comment-navigation .page-numbers.current {
    background: #000;
    color: #fff;
    box-shadow: none;
}

/* ---- No comments ---- */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    border: 3px dashed #ccc;
    margin-bottom: 32px;
}

.no-comments-icon {
    font-size: 2rem;
    opacity: .35;
    display: block;
    margin-bottom: 10px;
}

.no-comments p {
    margin: 0;
    color: #888;
    font-size: 1rem;
}

/* ---- Comment form ---- */
.comment-respond {
    margin-top: 40px;
    padding: 28px;
    background: #fff;
    border: 3px solid #000;
    box-shadow: 5px 5px 0px #000;
}

.comment-reply-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 3px solid #000;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.comment-reply-title small {
    margin-left: auto;
}

.comment-reply-title small a {
    font-size: .8rem;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    padding: 4px 12px;
    border: 2px solid #000;
    text-transform: uppercase;
    letter-spacing: .03em;
    transition: background .2s, color .2s;
}

.comment-reply-title small a:hover {
    background: #000;
    color: #fff;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: .875rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.comment-form .required {
    color: #e74c3c;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 3px solid #000;
    border-radius: 0;
    font-family: inherit;
    font-size: .9375rem;
    background: #f9f7f4;
    transition: box-shadow .2s, transform .2s;
    box-shadow: 3px 3px 0 #000;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #000;
    background: #fff;
}

.comment-form textarea {
    height: 140px;
    resize: vertical;
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: #666;
}

.comment-form .comment-form-cookies-consent input {
    width: auto;
}

.form-submit {
    text-align: left;
}

.comment-form .submit {
    background: #000;
    color: #fff;
    border: 3px solid #000;
    border-radius: 0;
    padding: 13px 32px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 4px 4px 0 #000;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.comment-form .submit:hover {
    background: #222;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.comment-form .submit:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 #000;
}

.comment-notes,
.logged-in-as {
    font-size: .85rem;
    color: #555;
    padding: 10px 14px;
    background: #f9f7f4;
    border-left: 4px solid #000;
    margin-bottom: 4px;
}

.logged-in-as {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logged-in-as a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .comment-body {
        flex-direction: column;
        gap: 12px;
        box-shadow: 3px 3px 0 #000;
    }

    .children {
        margin-left: 16px;
    }

    .comment-respond {
        padding: 20px;
        box-shadow: 3px 3px 0 #000;
    }

    .comment-form .submit {
        width: 100%;
        justify-content: center;
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .comment-time {
        margin-left: 0;
    }
}