/*
Theme Name: PNF Rebuilt
Theme URI: https://pocket.network
Description: Pocket Network Foundation theme - rebuilt to match original design
Version: 3.0.0
Author: Pocket Network
Text Domain: pnf-rebuilt
*/

/* ============================================
   POCKET NETWORK BRAND VARIABLES
   ============================================ */
:root {
    --pocket-brand-blue: #203ea9;
    --pocket-interactive-blue: #4c9bf5;
    --pocket-yellow: #ffd60a;
    --pocket-dark: #0f1419;
    --pocket-dark-secondary: #1a1f26;
    --pocket-light: #f8f9fa;
    --pocket-border: #e9ecef;
    --pocket-text-muted: #6c757d;
    --pocket-success: #06d6a0;
    --pocket-white: #ffffff;
    
    --font-primary: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(76, 155, 245, 0.15);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--pocket-dark);
    color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
p {
    margin-bottom: 2rem;
}

ul.wp-block-list {
    padding: 0 1rem 1rem;
}

.entry-content li {
    margin-bottom: 1rem;
}

.entry-content a {
    text-decoration: underline;
}

figure.wp-block-image {
    margin-bottom: 1rem;
}

figure.wp-block-table {
    margin-bottom: 2rem;
}

h2 {
    margin-bottom: 0.75em;
}

h3 {
    margin-bottom: 0.75em;
}

hr {
    margin-bottom: 2rem;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section--light hr {
    border-top-color: var(--pocket-border);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section--light {
    background: #fff;
    color: var(--pocket-dark);
}

.section--dark {
    background: var(--pocket-dark);
    color: #fff;
}

.section--alt {
    background: var(--pocket-dark-secondary);
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pocket-interactive-blue);
    background: rgba(76, 155, 245, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section--light .section__label {
    background: rgba(32, 62, 169, 0.08);
    color: var(--pocket-brand-blue);
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    margin: 0 auto;
}

.section--light .section__subtitle {
    color: var(--pocket-text-muted);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

/* Admin bar offset handled by WordPress body margin */

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.site-logo img {
    height: 32px;
    width: auto;
}

.main-navigation .nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .menu-item a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
    text-transform: none; /* NO uppercase */
}

.main-navigation .menu-item a:hover {
    color: #fff;
}

/* Docs button (yellow CTA) */
.main-navigation .menu-item.cta-menu a,
.main-navigation .menu-item:last-child a {
    background: var(--pocket-yellow);
    color: var(--pocket-dark) !important;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.main-navigation .menu-item.cta-menu a:hover,
.main-navigation .menu-item:last-child a:hover {
    background: #fff;
    color: var(--pocket-dark) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all var(--transition-fast);
    transform-origin: center;
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn--primary {
    background: var(--pocket-brand-blue);
    color: #fff;
}

.btn--primary:hover {
    background: var(--pocket-interactive-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(32, 62, 169, 0.4);
    color: #fff;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--pocket-brand-blue);
    border: 2px solid var(--pocket-brand-blue);
}

.btn--outline:hover {
    background: var(--pocket-brand-blue);
    color: #fff;
}

.btn--small {
    padding: 12px 20px;
    font-size: 0.875rem;
}

.btn__icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   SKIP LINK & ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--pocket-yellow);
    color: var(--pocket-dark);
    padding: 8px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

.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;
}

/* ============================================
   SITE CONTENT
   ============================================ */
.site-content {
    margin-top: 10rem;
}

.home .site-content {
    margin-top: 0;
}

.site-main {
    /* Main content area */
}

.site-main.front-page {
    /* Front page specific */
}

/* Hide the WordPress separator block if present */
.site-main > .wp-block-separator:first-child {
    display: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--pocket-dark);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 64px;
    margin-bottom: 64px;
}

/* Footer widget columns */
.footer__col.widget {
    margin: 0;
}

/* Footer logo/brand widget (text widget) */
.footer__col.widget_text img {
    height: 40px;
    width: auto;
    margin-bottom: 24px;
}

.footer__col.widget_text .textwidget {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 320px;
}

.footer__col.widget_text .textwidget p {
    margin: 0 0 16px;
}

.footer__col.widget_text .textwidget p:last-child {
    margin-bottom: 0;
}

/* Footer column titles */
.footer__col-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

/* Footer navigation menus */
.footer__col.widget_nav_menu .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__col.widget_nav_menu .menu-item {
    margin: 0;
    padding: 0;
}

.footer__col.widget_nav_menu .menu-item a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer__col.widget_nav_menu .menu-item a:hover {
    color: #fff;
}

/* Legacy styles for custom footer markup */
.footer__brand img {
    height: 40px;
    width: auto;
    margin-bottom: 24px;
}

.footer__brand-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 280px;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 20, 25, 0.98);
        padding: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation .nav-menu {
        flex-direction: column;
        gap: 16px;
        align-items: flex-end;
    }
    
    #menu-main-menu li.menu-item {
        margin-bottom: 1rem;
    }
    
    .main-navigation .menu-item.cta-menu a,
    .main-navigation .menu-item:last-child a {
        width: 100%;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer__col.widget_text {
        grid-column: 1 / -1;
    }
    
    .footer__col.widget_text .textwidget {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .entry-header,
    .page-header {
        margin: 0rem 0 2rem;
    }
    
    .site-content {
        margin-top: 8rem;
    }
    
    h1.entry-title {
        margin: 3rem 0 3rem;
    }
    
    .archive-header,
    .search-header,
    .page-header {
        padding-top: 0;
        padding-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 64px 0;
    }
    
    .section__header {
        margin-bottom: 40px;
    }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.entry-header,
.page-header {
    margin: 4rem 0 2rem;
}

.entry-thumbnail {
    margin: 2rem 0;
}

aside#secondary {
    margin: 2rem 0;
}

/* Hide default page title on front page */
.front-page .entry-header {
    display: none;
}

h1.entry-title {
    margin: 7rem 0 1rem;
}

/* ============================================
   ARCHIVE & SEARCH PAGES
   ============================================ */
.archive-header,
.search-header,
.page-header {
    padding-top: 1rem;
    padding-bottom: 2rem;
    text-align: center;
}

.archive-label,
.search-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pocket-interactive-blue);
    background: rgba(76, 155, 245, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.archive-header .page-title,
.search-header .page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.search-term {
    color: var(--pocket-interactive-blue);
}

.archive-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    margin: 0 auto;
}

.search-header__form {
    max-width: 480px;
    margin: 32px auto 0;
}

.search-results-count {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
}

/* ============================================
   POSTS GRID
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

/* ============================================
   POST CARDS
   ============================================ */
.post-card {
    background: var(--pocket-dark-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-card__thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.post-card:hover .post-card__thumbnail img {
    transform: scale(1.05);
}

.post-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.post-card__category {
    background: rgba(76, 155, 245, 0.15);
    color: var(--pocket-interactive-blue);
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 500;
}

.post-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px;
}

.post-card__title a {
    color: #fff;
}

.post-card__title a:hover {
    color: var(--pocket-interactive-blue);
}

.post-card__excerpt {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    flex-grow: 1;
}

.post-card__excerpt p {
    margin: 0;
}

.post-card__footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pocket-interactive-blue);
    transition: gap var(--transition-fast);
}

.post-card__link:hover {
    gap: 12px;
}

.post-card__link svg {
    transition: transform var(--transition-fast);
}

.post-card__link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   SINGLE POST CONTENT
   ============================================ */
.entry-meta time {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

.entry-category {
    background: rgba(76, 155, 245, 0.15);
    color: var(--pocket-interactive-blue);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-left: 12px;
}

.entry-category:hover {
    background: rgba(76, 155, 245, 0.25);
}

.entry-meta--author {
    display: flex;
    align-items: start;
    justify-content: left;
    flex-wrap: wrap;
    gap: 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
}

.entry-meta-primary {
    display: flex;
    align-items: center;
}

.entry-meta-secondary {
    display: flex;
    align-items: center;
}

.entry-author-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.entry-meta-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 12px;
}

.entry-posted-in a {
    color: var(--pocket-interactive-blue);
}

.entry-posted-in a:hover {
    text-decoration: underline;
}

.entry-thumbnail {
    margin: 48px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
}

.entry-thumbnail__caption {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 12px 16px;
    background: var(--pocket-dark-secondary);
}

.entry-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.entry-tags__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 4px;
}

.entry-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.8125rem;
    transition: all var(--transition-fast);
}

.entry-tag:hover {
    background: var(--pocket-interactive-blue);
    color: #fff;
}

.entry-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.entry-share__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.entry-share__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
}

.entry-share__link:hover {
    background: var(--pocket-interactive-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-navigation__link {
    display: block;
    padding: 24px;
    background: var(--pocket-dark-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.post-navigation__link:hover {
    background: rgba(76, 155, 245, 0.1);
    transform: translateY(-2px);
}

.post-navigation__link--next {
    text-align: right;
}

.post-navigation__label {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.post-navigation__title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form__wrapper {
    display: flex;
    align-items: center;
    background: var(--pocket-dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 4px;
    transition: border-color var(--transition-fast);
}

.search-form__wrapper:focus-within {
    border-color: var(--pocket-interactive-blue);
}

.search-form__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.search-form__input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 12px 0;
    outline: none;
}

.search-form__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--pocket-brand-blue);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-form__submit:hover {
    background: var(--pocket-interactive-blue);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 120px 0 80px;
}

.error-404__code {
    display: block;
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--pocket-brand-blue), var(--pocket-interactive-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.error-404 .page-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.error-404__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin: 0 auto 32px;
}

.error-404__actions {
    margin-bottom: 48px;
}

.error-404__search {
    max-width: 400px;
    margin: 0 auto 48px;
}

.error-404__search-label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.error-404__recent {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.error-404__recent-title {
    font-size: 1.125rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.error-404__recent-list {
    list-style: none;
}

.error-404__recent-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.error-404__recent-list a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.error-404__recent-list a:hover {
    color: var(--pocket-interactive-blue);
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
    text-align: center;
    padding: 80px 0;
}

.no-results .page-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.no-results__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin: 0 auto 32px;
}

.no-results__search {
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   PAGINATION
   ============================================ */
.navigation.pagination {
    margin-top: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: var(--pocket-dark-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
}

.page-numbers:hover {
    background: rgba(76, 155, 245, 0.2);
    color: #fff;
}

.page-numbers.current {
    background: var(--pocket-brand-blue);
    color: #fff;
}

.page-numbers.dots {
    background: transparent;
    cursor: default;
}

.page-numbers.prev,
.page-numbers.next {
    gap: 8px;
}

/* ============================================
   RESPONSIVE - TEMPLATE PARTS
   ============================================ */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-navigation__link--next {
        text-align: left;
    }

    .entry-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .archive-header,
    .search-header,
    .page-header {
        padding-top: 100px;
        padding-bottom: 32px;
    }

    .error-404 {
        padding: 100px 0 60px;
    }
}

@media (max-width: 480px) {
    .post-card__content {
        padding: 20px;
    }
}

/* ============================================
   MOBILE OVERRIDES (must be last)
   ============================================ */
@media (max-width: 768px) {
    h1.entry-title {
        margin: 3rem 0 3rem;
    }
    
    .archive-header,
    .search-header,
    .page-header {
        padding-top: 0;
        padding-bottom: 1rem;
    }
    
    .entry-header,
    .page-header {
        margin: 0 0 2rem;
    }
    
    .site-content {
        margin-top: 8rem;
    }
    
    .entry-meta--author {
        flex-direction: column;
        gap: 8px;
    }
    
    .entry-meta-separator--mobile-hide {
        display: none;
    }
    
    .entry-meta-secondary {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}
