/*
Theme Name: RankPrompt Developer Theme
Theme URI: https://rankprompt.com
Author: RankPrompt
Author URI: https://rankprompt.com
Description: A clean, modern blog theme for RankPrompt managed blogs. Automatically customized with brand colors and logo.
Version: 1.1.0
License: Proprietary
Text Domain: rankprompt-developer
*/

/* ============================================
   CSS Variables - Customizable via WordPress
   ============================================ */
:root {
    /* Brand colors (overridden by style_snapshot) */
    --rp-primary: #7c3aed;
    --rp-primary-dark: #6d28d9;
    --rp-secondary: #1f2937;

    /* Neutral palette */
    --rp-text: #1a1a1a;
    --rp-text-secondary: #6b7280;
    --rp-text-muted: #9ca3af;
    --rp-bg: #ffffff;
    --rp-bg-subtle: #f9fafb;
    --rp-border: #e5e7eb;

    /* Typography */
    --rp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rp-font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
    --rp-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --rp-content-width: 720px;
    --rp-wide-width: 1200px;
}

/* ============================================
   Base Reset & Typography
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--rp-font-sans);
    color: var(--rp-text);
    background: var(--rp-bg);
    line-height: 1.7;
}

/* ============================================
   Header - Glassmorphism Style
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.header-inner {
    max-width: var(--rp-wide-width);
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--rp-text);
    flex-shrink: 0;
}

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

.site-logo .site-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    color: var(--rp-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--rp-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Inline Search in Header */
.header-search {
    display: flex;
    align-items: center;
    background: var(--rp-bg-subtle);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.header-search:focus-within {
    border-color: var(--rp-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.header-search-input {
    width: 140px;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-family: var(--rp-font-sans);
    color: var(--rp-text);
    outline: none;
    transition: width 0.2s ease;
}

.header-search-input::placeholder {
    color: var(--rp-text-muted);
}

.header-search-input:focus {
    width: 180px;
}

.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--rp-text-muted);
    cursor: pointer;
    transition: color 0.15s ease;
}

.header-search-btn:hover {
    color: var(--rp-primary);
}

/* Search field width adjustment - handled in main responsive block */

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--rp-primary);
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.header-cta:hover {
    background: var(--rp-primary-dark);
    transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--rp-text);
    order: 10;
    /* Push to far right */
}

/* Mobile CTA (hidden on desktop, shown only inside mobile menu dropdown) */
.mobile-cta {
    display: none !important;
}

/* Responsive: Tablet and below (1200px breakpoint for better nav handling with many links) */
@media (max-width: 1200px) {
    .header-inner {
        padding: 0.75rem 1rem;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--rp-border);
        gap: 0.75rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .main-nav.active a {
        padding: 0.5rem 0;
        font-size: 1rem;
    }

    /* Show mobile CTA in dropdown */
    .main-nav.active .mobile-cta {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        margin-top: 0.5rem;
        background: var(--rp-primary);
        color: white;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.15s ease;
    }

    .main-nav.active .mobile-cta:hover {
        background: var(--rp-primary-dark);
    }

    /* Hide desktop CTA on mobile - use !important to override .header-cta */
    .header-cta.desktop-cta {
        display: none !important;
    }

    .header-actions {
        gap: 0.5rem;
    }

    /* Keep search visible but compact */
    .header-search-input {
        width: 100px;
    }

    .header-search-input:focus {
        width: 120px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .header-search {
        display: none;
    }
}

/* ============================================
   Main Content Area
   ============================================ */
.site-main {
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    max-width: var(--rp-content-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Reduce spacing between header and body in single posts */
.content-wrapper.content-wrapper--header {
    padding-bottom: 0 !important;
}

.content-wrapper.content-wrapper--body {
    padding-top: 1rem !important;
    position: relative;
}

/* ============================================
   Table of Contents Sidebar
   ============================================ */
.toc-sidebar {
    display: none;
}

@media (min-width: 1200px) {
    .content-wrapper.content-wrapper--body {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 2rem;
        max-width: calc(var(--rp-content-width) + 260px + 4rem);
    }

    .toc-sidebar {
        display: block;
        position: relative;
    }

    .toc-container {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        padding-right: 1rem;
        scrollbar-width: thin;
        scrollbar-color: var(--rp-border) transparent;
    }

    .toc-container::-webkit-scrollbar {
        width: 4px;
    }

    .toc-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .toc-container::-webkit-scrollbar-thumb {
        background: var(--rp-border);
        border-radius: 2px;
    }
}

.toc-title {
    font-family: var(--rp-font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--rp-text-secondary);
    margin: 0 0 1rem 0;
    padding: 0;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin: 0;
    padding: 0;
}

.toc-item--h2 {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.toc-item--h2>.toc-link {
    flex: 1;
    min-width: 0;
}

.toc-item--h2.has-children {
    padding-left: 0;
}

.toc-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    padding: 0;
    margin-right: 4px;
    margin-top: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--rp-text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.toc-toggle:hover {
    color: var(--rp-text-secondary);
}

.toc-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.toc-item.is-expanded .toc-chevron {
    transform: rotate(180deg);
}

.toc-link {
    display: block;
    font-family: var(--rp-font-sans);
    text-decoration: none;
    color: var(--rp-text-secondary);
    transition: color 0.2s ease;
    line-height: 1.4;
    padding: 6px 0;
}

.toc-link:hover {
    color: var(--rp-text);
}

.toc-link.is-active {
    color: var(--rp-primary);
    font-weight: 500;
}

.toc-link--h2 {
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.toc-link--h3 {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--rp-text-muted);
}

.toc-link--h3:hover {
    color: var(--rp-text-secondary);
}

.toc-link--h3.is-active {
    color: var(--rp-primary);
}

.toc-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 24px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toc-submenu.is-open {
    max-height: 500px;
}

.toc-item--h3 {
    margin: 0;
}

/* Main content area adjustments when TOC is present */
.main-content-area {
    max-width: var(--rp-content-width);
    width: 100%;
}

@media (min-width: 1200px) {
    .main-content-area {
        max-width: none;
    }
}

.wide-wrapper {
    max-width: var(--rp-wide-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ============================================
   Blog Post Cards (Index/Archive)
   ============================================ */
.posts-grid {
    display: grid;
    gap: 3rem;
}

.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
}

.post-card:hover .post-card-title {
    color: var(--rp-primary);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--rp-text-muted);
    margin-bottom: 0.75rem;
}

.post-card-meta .meta-separator {
    color: var(--rp-border);
}

.post-card-tag {
    color: var(--rp-primary);
    font-weight: 500;
}

.post-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
    transition: color 0.15s ease;
}

.post-card-excerpt {
    color: var(--rp-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.post-card-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--rp-text-muted);
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Featured Image */
.post-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

/* Placeholder for cards without featured image */
.post-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rp-primary) 0%, #a855f7 100%);
}

.post-card-placeholder svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Single Post
   ============================================ */
.single-post-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 0;
}

.single-post-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem 0;
}

@media (max-width: 768px) {
    .single-post-title {
        font-size: 1.75rem;
    }
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--rp-text-muted);
    font-size: 0.9rem;
}

.single-post-meta .meta-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.single-post-meta .meta-info {
    text-align: left;
}

.single-post-meta .author {
    font-weight: 600;
    color: var(--rp-text);
    display: block;
}

.single-post-meta .meta-details {
    font-size: 0.8rem;
    color: var(--rp-text-muted);
}

.single-post-meta .separator {
    color: var(--rp-border);
}

/* Featured image on single post */
.single-featured-image {
    width: 100%;
    max-width: var(--rp-wide-width);
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Post Tags
   ============================================ */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rp-border);
}

.post-tags .tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--rp-bg-subtle);
    color: var(--rp-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all 0.15s ease;
}

.post-tags .tag:hover {
    background: var(--rp-primary);
    color: white;
}

/* ============================================
   Author Bio Section
   ============================================ */
.author-bio-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rp-border);
}

.author-bio-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--rp-bg-subtle);
    border-radius: 16px;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio-content {
    flex: 1;
}

.author-bio-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.author-bio-title {
    margin: 0 0 0.75rem 0;
    color: var(--rp-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.author-bio-text {
    margin: 0;
    color: var(--rp-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .author-bio-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ============================================
   More to Read Section
   ============================================ */
.more-to-read {
    background: var(--rp-bg-subtle);
    padding: 4rem 0;
    margin-top: 4rem;
}

.more-to-read .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    text-align: center;
}

.more-to-read .content-wrapper {
    max-width: 900px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 700px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

.related-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-post-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Placeholder for cards without featured image */
.related-post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rp-primary) 0%, #a855f7 100%);
}

.related-post-placeholder svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.5);
}

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

.related-post-content {
    padding: 1.25rem;
}

.related-post-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rp-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    color: var(--rp-text);
    transition: color 0.15s ease;
}

.related-post-card:hover .related-post-title {
    color: var(--rp-primary);
}

.related-post-excerpt {
    font-size: 0.9rem;
    color: var(--rp-text-secondary);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

.related-post-meta {
    font-size: 0.8rem;
    color: var(--rp-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   Article Content (Single Post)
   ============================================ */
.entry-content {
    font-family: var(--rp-font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content>* {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-family: var(--rp-font-sans);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.entry-content h3 {
    font-family: var(--rp-font-sans);
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.entry-content h4 {
    font-family: var(--rp-font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--rp-primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: var(--rp-primary-dark);
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--rp-primary);
    background: var(--rp-bg-subtle);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
}

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

.entry-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    font-family: var(--rp-font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
}

.entry-content code {
    font-family: var(--rp-font-mono);
    background: var(--rp-bg-subtle);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.entry-content figure {
    margin: 2rem 0;
}

/* Style hero images in content */
.single-post .entry-content>figure.generated-image[data-placement="hero"]:first-child,
.single-post .entry-content>figure:first-child:has(img[data-placement="hero"]) {
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.single-post .entry-content>figure.generated-image[data-placement="hero"]:first-child img,
.single-post .entry-content>figure:first-child:has(img[data-placement="hero"]) img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* Regular first figure styling */
.single-post .entry-content>figure:first-child {
    margin-top: 0;
}

.entry-content figcaption {
    font-family: var(--rp-font-sans);
    font-size: 0.85rem;
    color: var(--rp-text-muted);
    text-align: center;
    margin-top: 0.75rem;
}

.entry-content hr {
    border: none;
    border-top: 1px solid var(--rp-border);
    margin: 3rem 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: var(--rp-font-sans);
    font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--rp-border);
}

.entry-content th {
    font-weight: 600;
    background: var(--rp-bg-subtle);
}

/* ============================================
   Footer - Modern Design
   ============================================ */
.site-footer {
    margin-top: 0;
    background: var(--rp-secondary);
    color: rgba(255, 255, 255, 0.9);
}

.footer-inner {
    max-width: var(--rp-wide-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

/* Footer Brand */
.footer-brand {
    max-width: 300px;
}

@media (max-width: 768px) {
    .footer-brand {
        max-width: none;
        margin: 0 auto;
    }
}

.footer-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo img {
    max-height: 36px;
    width: auto;
}

.footer-site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-description {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Footer Nav */
.footer-nav {
    text-align: left;
}

@media (max-width: 768px) {
    .footer-nav {
        text-align: center;
    }
}

.footer-nav-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.footer-nav a:hover {
    color: white;
}

/* Footer Social */
.footer-social {
    text-align: left;
}

@media (max-width: 768px) {
    .footer-social {
        text-align: center;
    }
}

.footer-social-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.5);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.15s ease;
}

.social-link:hover {
    background: var(--rp-primary);
    color: white;
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    max-width: var(--rp-wide-width);
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

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

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

.footer-powered a {
    color: var(--rp-primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-powered a:hover {
    text-decoration: underline;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rp-border);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.pagination a {
    color: var(--rp-text-secondary);
    background: var(--rp-bg-subtle);
}

.pagination a:hover {
    background: var(--rp-primary);
    color: white;
}

.pagination .current {
    background: var(--rp-primary);
    color: white;
}

/* ============================================
   404 Page
   ============================================ */
.error-404 {
    text-align: center;
    padding: 4rem 1.5rem;
}

.error-404 h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--rp-primary);
    margin: 0;
    line-height: 1;
}

.error-404 p {
    font-size: 1.25rem;
    color: var(--rp-text-secondary);
    margin: 1rem 0 2rem;
}

.error-404 a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--rp-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.error-404 a:hover {
    background: var(--rp-primary-dark);
}

/* ============================================
   Utilities
   ============================================ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {

    .site-header,
    .site-footer,
    .pagination,
    .more-to-read {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .entry-content a {
        text-decoration: none;
        color: inherit;
    }

    .entry-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}