/*
Theme Name: 3pleLift
Theme URI: https://wordpress.org/themes/3plelift
Author: 3pleLift Team
Author URI: https://3plelift.com
Description: A modern blog theme featuring a beautiful postcard-style grid layout for posts, responsive design, and clean typography. Perfect for blogs, news sites, and content-focused websites with support for custom logos, dark mode, and mobile-first responsive design.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 3plelift
Tags: blog, grid-layout, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, custom-logo, dark-mode-ready, accessibility-ready
Domain Path: /languages/

3pleLift is a clean, modern WordPress theme designed for blogs and content-focused websites.
*/

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* CSS Variables for Light/Dark Mode */
:root {
    --bg-color: #ffffff;
    --text-color: #202124;
    --text-secondary: #5f6368;
    --text-tertiary: #70757a;
    --border-color: #e8eaed;
    --border-light: #e5e7eb;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #333333;
    --footer-text: #cccccc;
    --footer-border: #555555;
    --link-color: #1a73e8;
    --link-hover: #1557b0;
    --button-bg: #f3f4f6;
    --button-hover: #e5e7eb;
    --code-bg: #f1f3f4;
    --blockquote-bg: #f8f9fa;
    --meta-bg: #f1f3f4;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #e8eaed;
        --text-secondary: #9aa0a6;
        --text-tertiary: #80868b;
        --border-color: #2d2d2d;
        --border-light: #3c4043;
        --card-bg: #1e1e1e;
        --header-bg: #1f1f1f;
        --footer-bg: #0f0f0f;
        --footer-text: #e8eaed;
        --footer-border: #3c4043;
        --link-color: #8ab4f8;
        --link-hover: #aecbfa;
        --button-bg: #2d2d2d;
        --button-hover: #3c4043;
        --code-bg: #2d2d2d;
        --blockquote-bg: #1e1e1e;
        --meta-bg: #2d2d2d;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Netlify Header Exact Match */
.site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    width: 100%;
    height: 70px;
}

.header-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 24px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* Navigation Visibility */
.desktop-nav {
    display: none;
}

/* Logo Section */
.site-branding {
    flex-shrink: 0;
    margin-right: 64px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.netlify-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Custom Logo Styling */
.custom-logo {
    max-height: 32px;
    width: auto;
    border-radius: 4px;
}

.logo-small .custom-logo,
.logo-small img {
    max-height: 24px;
    width: auto;
    border-radius: 4px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.5px;
}


/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.search-toggle:hover {
    background-color: var(--button-hover);
    color: var(--link-color);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.menu-toggle:hover {
    background-color: var(--button-hover);
    color: var(--link-color);
}


.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.search-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    height: 64px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-overlay .header-replica {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 24px;
}

.search-overlay .logo-small {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-overlay .logo-small svg {
    width: 24px;
    height: 24px;
}

.search-overlay .logo-small .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.search-overlay .search-form {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--button-bg);
    border-radius: 24px;
    padding: 0 16px;
    margin: 0 40px;
    max-width: 600px;
}

.search-overlay .search-form input[type="search"] {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
    color: var(--text-color);
}

.search-overlay .search-form input[type="search"]::placeholder {
    color: var(--text-secondary);
    font-size: 16px;
}

.search-overlay .search-form button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-tertiary);
    border-radius: 50%;
    transition: background-color 0.15s ease;
}

.search-overlay .search-form button:hover {
    background-color: var(--button-hover);
}

.search-overlay .close-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    color: var(--text-tertiary);
    border-radius: 50%;
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

.search-overlay .close-search:hover {
    background-color: var(--button-hover);
}

.search-overlay .menu-toggle-overlay {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

.search-overlay .menu-toggle-overlay:hover {
    background-color: var(--button-hover);
}

/* Mobile Navigation Container */
.mobile-nav-container {
    display: none;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-light);
    padding: 0 16px;
}

.mobile-nav {
    display: block;
}

.mobile-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-nav ul::-webkit-scrollbar {
    display: none;
}

.mobile-nav li {
    flex-shrink: 0;
    position: relative;
}

.mobile-nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
    padding: 16px 20px;
    display: block;
    position: relative;
    transition: color 0.15s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.mobile-nav a:hover {
    color: var(--text-color);
}

.mobile-nav .current-menu-item a {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* Search Form */
.search-form {
    display: flex;
    margin-left: 30px;
}

.search-form input[type="search"] {
    padding: 8px 15px;
    border: 1px solid var(--border-light);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    width: 200px;
    background: var(--card-bg);
    color: var(--text-color);
}

.search-form button {
    background: var(--link-color);
    color: var(--bg-color);
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.search-form button:hover {
    background: var(--link-hover);
}

/* Main Content Area */
.site-content {
    padding: 60px 0;
    min-height: 70vh;
    background: var(--bg-color);
}

.content-area {
    width: 100%;
}

.content-area.has-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Page Header */
.page-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 36px;
    font-weight: 400;
    color: var(--text-color);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.archive-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.archive-description p {
    margin: 0;
}

/* Postcard Grid Layout */
.postcard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: transparent;
}

.post-card-inner {
    display: flex;
    align-items: center;
    padding: 32px;
    gap: 32px;
    min-height: 200px;
}

.post-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    min-height: 16px;
}

.post-card-date {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.post-card-separator {
    color: var(--text-secondary);
    font-weight: 300;
    flex-shrink: 0;
}

.post-card-category {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.post-card-category:hover {
    color: var(--link-hover);
}

.post-card-title {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
    color: var(--text-color);
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
}

.post-card-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--button-bg);
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.08);
}


/* Make entire card clickable */
.post-card-inner {
    text-decoration: none;
    color: inherit;
}


/* Single Post */
.single-post {
    background: var(--card-bg);
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Ensure header and footer always span full width */
.site-header,
.site-footer {
    width: 100%;
    max-width: none;
    margin: 0;
}

.site-header .container,
.site-footer .container {
    padding: 0 20px;
}

/* Single page content layout */
.single .site-content {
    width: 100%;
    background: var(--bg-color);
    padding: 60px 0;
}

.single .content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.single .content-area.has-sidebar {
    display: block;
    max-width: 1200px;
    padding: 0 20px;
}

.single .content-area.has-sidebar .main-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Single post article content should be narrower for readability */
.single-post .post-header,
.single-post .post-thumbnail,
.single-post .post-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Keep Reading section uses full width */
.keep-reading-section {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}


.post-header {
    margin-bottom: 40px;
    text-align: left;
    padding: 0 20px 32px;
    border-bottom: 1px solid var(--border-color);
}


.post-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    margin: 5px 0 5px 0;
    color: var(--text-color);
    letter-spacing: -0.5px;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


.single-post .author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-post .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.single-post .author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-author {
    font-weight: 500;
    color: var(--text-color);
    font-size: 16px;
}

.post-read-time {
    font-weight: 400;
    color: var(--text-tertiary);
    font-size: 14px;
}

.single-post .post-actions {
    display: flex;
    gap: 12px;
}

.single-post .share-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--button-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-tertiary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.single-post .share-button:hover {
    background: var(--button-hover);
    border-color: var(--link-color);
    color: var(--link-color);
}


.post-thumbnail {
    margin: 40px 20px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--button-bg);
    text-align: center;
}

.post-thumbnail img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 400;
    margin: 40px 20px 48px;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-content h2 {
    font-size: 32px;
    font-weight: 500;
    margin: 48px 0 24px;
    color: var(--text-color);
    letter-spacing: -0.5px;
    line-height: 1.3;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-content h3 {
    font-size: 28px;
    font-weight: 500;
    margin: 40px 0 20px;
    color: var(--text-color);
    letter-spacing: -0.25px;
    line-height: 1.3;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-content h4 {
    font-size: 24px;
    font-weight: 500;
    margin: 32px 0 16px;
    color: var(--text-color);
    line-height: 1.4;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-content h5 {
    font-size: 20px;
    font-weight: 500;
    margin: 24px 0 12px;
    color: var(--text-color);
    line-height: 1.4;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-content h6 {
    font-size: 18px;
    font-weight: 500;
    margin: 20px 0 10px;
    color: var(--text-color);
    line-height: 1.4;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content ul,
.post-content ol {
    margin: 24px 0;
    padding-left: 32px;
    line-height: 1.7;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

.post-content a:hover {
    border-bottom-color: var(--link-color);
}

.post-content blockquote {
    border-left: 4px solid var(--link-color);
    padding: 24px 32px;
    margin: 32px 0;
    background: var(--blockquote-bg);
    border-radius: 0 8px 8px 0;
    font-size: 20px;
    font-style: italic;
    color: var(--text-color);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-content blockquote p {
    margin-bottom: 0;
}

.post-content code {
    background: var(--code-bg);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    color: var(--link-color);
}

.post-content pre {
    background: var(--code-bg);
    color: var(--text-color);
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid var(--border-color);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}



/* Keep Reading Section */
.keep-reading-section {
    margin: 10px 0 40px 0;
    padding: 10px 0 20px 0;
    border-top: 1px solid var(--border-color);
    max-width: 100%;
}

.keep-reading-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 32px;
    text-align: center;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Ensure related posts grid uses full container width */
.keep-reading-section .postcard-grid {
    max-width: 100%;
    margin: 0;
}

/* Force block layout for all content in single post */
.single-post .post-content ~ * {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    float: none !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
}

/* Specifically target plugin containers that appear after post content */
.single-post .post-content ~ .related-posts,
.single-post .post-content ~ [class*="related"],
.single-post .post-content ~ [class*="plugin"],
.single-post .post-content ~ div[id*="related"],
.single-post .post-content ~ div[class*="yarpp"],
.single-post .post-content ~ .wp-block {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    float: none !important;
    margin-bottom: 40px !important;
}

/* Ensure Keep Reading section appears below plugin content */
.keep-reading-section {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    float: none !important;
    margin-top: 60px !important;
}

/* Force full-width container for plugin content */
.single-post .main-content > * {
    max-width: 100%;
    width: 100%;
}

/* Additional reset for common plugin styling issues */
.single-post .post-content ~ * img,
.single-post .keep-reading-section img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent any floating or inline-block issues */
.single-post .main-content {
    overflow: hidden;
}

.single-post .main-content > * {
    position: relative;
    z-index: 1;
}

/* High specificity rules to override plugin styles */
.single-post .main-content article.single-post * {
    box-sizing: border-box !important;
}

/* Force stacking context for plugin content */
.single-post .main-content .plugin-content-separator ~ * {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    margin-top: 20px !important;
}

/* Ensure the Keep Reading section is always below other content */
.single-post .main-content .keep-reading-section {
    margin-top: 20px !important;
    clear: both !important;
    position: relative !important;
    z-index: 10 !important;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    transition: all 0.2s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    text-decoration: none;
    color: #5f6368;
    transition: color 0.2s ease;
}

.post-navigation a:hover {
    color: #1a73e8;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9aa0a6;
    margin-bottom: 12px;
    font-weight: 500;
}

.post-navigation .nav-title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #202124;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-navigation a:hover .nav-title {
    color: #1a73e8;
}

/* Comments */
.comments-area {
    background: var(--card-bg);
    max-width: 800px;
    margin: 48px auto 0;
    padding: 0 20px;
}

.comments-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 32px;
    color: var(--text-color);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f1f3f4;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 16px;
    width: 40px;
    height: 40px;
}

.comment-author cite {
    font-style: normal;
    font-weight: 500;
    color: #202124;
}

.comment-metadata {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 16px;
}

.comment-metadata a {
    color: #5f6368;
    text-decoration: none;
}

.comment-content {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.comment-content p {
    margin-bottom: 16px;
}

.comment-reply-link {
    font-size: 14px;
    color: var(--link-color);
    font-weight: 500;
    text-decoration: none;
    margin-top: 12px;
    display: inline-block;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.comment-form {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.comment-form h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--text-color);
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: var(--card-bg);
    color: var(--text-color);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: var(--link-color);
    color: var(--bg-color);
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.comment-form input[type="submit"]:hover {
    background: var(--link-hover);
}

/* Sidebar */
.sidebar {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget {
    margin-bottom: 40px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--link-color);
    color: var(--text-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.widget li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget .widget-title {
    color: var(--footer-text);
    border-bottom-color: var(--footer-border);
}

.footer-widget a {
    color: var(--footer-text);
}

.footer-widget a:hover {
    color: var(--bg-color);
}

.site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--footer-border);
    font-size: 14px;
    color: var(--footer-text);
}

.footer-left {
    flex: 1;
}

.footer-left p {
    margin: 0;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.footer-navigation a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-navigation a:hover {
    color: var(--bg-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 12px 32px;
    background: var(--card-bg);
    border: 2px solid var(--link-color);
    border-radius: 24px;
    color: var(--link-color);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination a:hover {
    background: var(--link-color);
    color: var(--bg-color);
}

.pagination .current {
    background: var(--link-color);
    color: var(--bg-color);
    border-color: var(--link-color);
}

/* Load More Button Style */
.load-more-wrapper {
    text-align: center;
    margin-top: 60px;
}

.load-more-button {
    display: inline-block;
    padding: 12px 32px;
    background: var(--card-bg);
    border: 2px solid var(--link-color);
    border-radius: 24px;
    color: var(--link-color);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.load-more-button:hover {
    background: var(--link-color);
    color: var(--bg-color);
}

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

.error-404 h1 {
    font-size: 120px;
    color: var(--link-color);
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.error-404 p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .header-inner {
        max-width: 1400px;
        padding: 0 64px;
        margin: 0 auto;
    }
    
    .container {
        max-width: 1400px;
        padding: 0 64px;
    }
    
    .desktop-nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 40px;
    }
    
    .desktop-nav li {
        position: relative;
    }
    
    .desktop-nav a {
        color: var(--text-secondary);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        padding: 16px 0;
        display: block;
        transition: color 0.15s ease;
    }
    
    .desktop-nav a:hover {
        color: var(--link-color);
    }
    
    .postcard-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Large Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .header-inner {
        max-width: 1200px;
        padding: 0 48px;
        margin: 0 auto;
    }
    
    .container {
        padding: 0 48px;
    }
    
    .desktop-nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 36px;
    }
    
    .desktop-nav li {
        position: relative;
    }
    
    .desktop-nav a {
        color: var(--text-secondary);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        padding: 16px 0;
        display: block;
        transition: color 0.15s ease;
    }
    
    .desktop-nav a:hover {
        color: var(--link-color);
    }
    
    .postcard-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .header-inner {
        padding: 0 40px;
        max-width: 1024px;
        margin: 0 auto;
    }
    
    .container {
        max-width: 1024px;
        padding: 0 40px;
    }
    
    .site-branding {
        margin-right: 48px;
    }
    
    .desktop-nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 32px;
    }
    
    .desktop-nav li {
        position: relative;
    }
    
    .desktop-nav a {
        color: var(--text-secondary);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        padding: 16px 0;
        display: block;
        transition: color 0.15s ease;
    }
    
    .desktop-nav a:hover {
        color: var(--link-color);
    }
    
    .header-actions {
        gap: 24px;
    }
    
    .postcard-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Desktop Base (1024px+) */
@media (min-width: 1024px) {
    .desktop-nav {
        display: flex !important;
    }
    
    .mobile-nav-container {
        display: none !important;
    }
    
    .site-branding {
        margin-right: 64px;
    }
    
    .desktop-nav ul {
        gap: 40px;
    }
    
    .header-actions {
        gap: 32px;
    }
    
    .content-area.has-sidebar {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-inner {
        padding: 0 32px;
        height: 64px;
    }
    
    
    .site-branding {
        margin-right: 0;
        flex: 1;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-nav-container {
        display: block;
        padding: 0 20px;
    }
    
    
    .header-actions {
        gap: 20px;
    }
    
    
    .page-header {
        margin-bottom: 40px;
        padding-bottom: 20px;
    }
    
    .page-title {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .archive-description {
        font-size: 16px;
    }
    
    .postcard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .post-card-inner {
        padding: 28px;
        gap: 28px;
    }
    
    .post-card-thumbnail {
        width: 110px;
        height: 110px;
        min-width: 110px;
        min-height: 110px;
    }
    
    .site-content {
        padding: 40px 0;
    }
    
    .content-area.has-sidebar {
        display: block;
    }
    
    .sidebar {
        margin-top: 40px;
    }
    
    .search-overlay .header-replica {
        padding: 0 20px;
        gap: 16px;
    }
    
    .search-overlay .search-form {
        margin: 0 20px;
    }
    
    .search-overlay .logo-small .logo-text {
        font-size: 16px;
    }
}

/* Mobile Large (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .header-inner {
        padding: 0 16px;
        gap: 12px;
        height: 64px;
    }
    
    .container {
        padding: 0;
    }
    
    .mobile-nav-container {
        display: block;
        padding: 0 16px;
    }
    
    
    .header-actions {
        gap: 16px;
    }
    
    .search-toggle,
    .menu-toggle {
        padding: 6px;
    }
    
    .page-header {
        margin-bottom: 32px;
        padding-bottom: 20px;
    }
    
    .page-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .archive-description {
        font-size: 15px;
    }
    
    .postcard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    
    .post-card-inner {
        padding: 24px;
        gap: 24px;
        min-height: auto;
    }
    
    .post-card-thumbnail {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
    }
    
    .post-card-title {
        font-size: 16px;
        -webkit-line-clamp: 2;
    }
    
    .post-card-meta {
        gap: 6px;
    }
    
    .post-card-category {
        max-width: 140px;
    }
    
    .site-content {
        padding: 32px 0;
    }
    
    
    .search-overlay .header-replica {
        padding: 0 16px;
        gap: 16px;
        justify-content: center;
    }
    
    .search-overlay .search-form {
        margin: 0;
        flex: 1;
        max-width: none;
        background: #f1f3f4;
        border-radius: 28px;
        padding: 0;
    }
    
    .search-overlay .search-form input[type="search"] {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .search-overlay .search-form input[type="search"]::placeholder {
        color: #70757a;
    }
    
    .search-overlay .search-form button {
        padding: 16px 20px;
    }
    
    .search-overlay .close-search {
        padding: 16px;
    }
}

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {
    .header-inner {
        padding: 0 12px;
        gap: 8px;
        height: 60px;
    }
    
    .site-header {
        height: auto;
    }
    
    .container {
        padding: 0;
    }
    
    .mobile-nav-container {
        display: block;
        padding: 0 12px;
    }
    
    
    .logo-text {
        font-size: 18px;
    }
    
    .header-actions {
        gap: 12px;
    }
    
    .search-toggle,
    .menu-toggle {
        padding: 4px;
        width: 36px;
        height: 36px;
    }
    
    .mobile-nav a {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .page-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .archive-description {
        font-size: 14px;
    }
    
    .postcard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .post-card {
        border-radius: 12px;
    }
    
    .post-card-inner {
        padding: 20px;
        gap: 20px;
    }
    
    .post-card-thumbnail {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
        border-radius: 8px;
    }
    
    .post-card-title {
        font-size: 16px;
    }
    
    .post-card-meta {
        font-size: 11px;
        letter-spacing: 0.6px;
        gap: 6px;
    }
    
    .post-card-category {
        max-width: 100px;
    }
    
    .site-content {
        padding: 24px 0;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    
    .search-overlay .header-replica {
        padding: 0 12px;
        gap: 12px;
        justify-content: center;
    }
    
    .search-overlay .search-form {
        margin: 0;
        flex: 1;
        max-width: none;
        background: #f1f3f4;
        border-radius: 28px;
        padding: 0;
    }
    
    .search-overlay .search-form input[type="search"] {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .search-overlay .search-form button {
        padding: 14px 16px;
    }
    
    .search-overlay .close-search {
        padding: 14px;
    }
}
    

    
/* ============================================
   SINGLE POST RESPONSIVE DESIGN
   ============================================ */

/* Single Post - Desktop */
@media (min-width: 1024px) {
    .single .content-area {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px;
    }
    
    .post-title {
        font-size: 48px;
        line-height: 1.2;
        margin: 5px 0 5px 0;
    }
    
    .post-content {
        font-size: 18px;
        line-height: 1.8;
        margin: 40px 0 48px;
    }
    
    .post-content h2 {
        font-size: 32px;
        margin: 48px 0 24px;
    }
    
    .post-content h3 {
        font-size: 28px;
        margin: 40px 0 20px;
    }
}

/* Single Post - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .single .content-area {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 32px;
    }
    
    .post-title {
        font-size: 36px;
        line-height: 1.3;
        margin: 5px 0 5px 0;
    }
    
    .post-content {
        font-size: 17px;
        line-height: 1.7;
        margin: 36px 0 44px;
    }
    
    .post-content h2 {
        font-size: 28px;
        margin: 40px 0 20px;
    }
    
    .post-content h3 {
        font-size: 24px;
        margin: 32px 0 16px;
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-navigation .nav-next {
        text-align: left;
    }
}

/* Single Post - Mobile Large */
@media (min-width: 480px) and (max-width: 767px) {
    .single .content-area {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
    }
    
    .post-title {
        font-size: 34px;
        line-height: 1.3;
        margin: 5px 0 5px 0;
    }
    
    .keep-reading-section {
        margin: 40px 0 32px 0;
        padding: 32px 0;
    }
    
    .keep-reading-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .post-author-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .single-post .post-actions {
        align-self: stretch;
    }
    
    .single-post .share-button {
        width: 100%;
        justify-content: center;
    }
    
    .post-header {
        padding: 2px 2px 32px;
    }
    
    .post-content {
        font-size: 16px;
        line-height: 1.6;
        margin: 32px 0 40px;
        padding: 0 2px;
    }
    
    .post-thumbnail {
        margin: 40px 2px;
    }
    
    .post-content h2 {
        font-size: 24px;
        margin: 32px 0 16px;
    }
    
    .post-content h3 {
        font-size: 20px;
        margin: 24px 0 12px;
    }
    
    .post-content h4 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    
    .post-thumbnail {
        margin: 32px 0;
        border-radius: 12px;
    }
    
    .post-navigation {
        margin: 40px 0 32px 0;
        padding: 24px 0;
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }
    
    .comments-area {
        padding: 0;
        margin: 40px 0 0;
    }
}

/* Single Post - Mobile Small */
@media (max-width: 479px) {
    .single .content-area {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
    }
    
    .post-title {
        font-size: 32px;
        line-height: 1.3;
        margin: 5px 0 5px 0;
    }
    
    .keep-reading-section {
        margin: 32px 0 24px 0;
        padding: 24px 0;
    }
    
    .keep-reading-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .post-header {
        padding: 2px 2px 32px;
    }
    
    .post-content {
        font-size: 16px;
        line-height: 1.6;
        margin: 24px 0 32px;
        padding: 0 2px;
    }
    
    .post-thumbnail {
        margin: 40px 2px;
    }
    
    .post-content h2 {
        font-size: 20px;
        margin: 24px 0 12px;
    }
    
    .post-content h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    
    .post-content h4 {
        font-size: 16px;
        margin: 16px 0 8px;
    }
    
    .post-content blockquote {
        padding: 16px;
        margin: 20px 0;
        font-size: 16px;
    }
    
    .post-navigation .nav-links {
        gap: 12px;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        padding: 12px;
    }
}

/* ============================================
   FOOTER RESPONSIVE DESIGN
   ============================================ */

/* Footer - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Footer - Mobile */
@media (max-width: 767px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .site-footer {
        padding: 32px 0 16px;
        margin-top: 40px;
    }
    
    .site-info {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-right {
        justify-content: center;
    }
    
    .footer-navigation ul {
        gap: 16px;
    }
}

/* ============================================
   PAGINATION RESPONSIVE DESIGN
   ============================================ */

/* Pagination - Mobile */
@media (max-width: 767px) {
    .pagination {
        gap: 8px;
        margin-top: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination a,
    .pagination span {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 40px;
        text-align: center;
    }
}

/* ============================================
   SEARCH FORM RESPONSIVE DESIGN
   ============================================ */

/* Search Form - Mobile */
@media (max-width: 767px) {
    .search-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-form input[type="search"] {
        width: 100%;
        border-radius: 4px;
    }
    
    .search-form button {
        border-radius: 4px;
        align-self: flex-start;
    }
}

/* ============================================
   GENERAL RESPONSIVE UTILITIES
   ============================================ */

/* Text Utilities */
@media (max-width: 767px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .widget-title {
        font-size: 18px;
    }
}

/* Spacing Utilities */
@media (max-width: 479px) {
    .site-content {
        min-height: 60vh;
    }
    
    .error-404 {
        padding: 40px 0;
    }
    
    .error-404 h1 {
        font-size: 80px;
    }
    
    .error-404 h2 {
        font-size: 24px;
    }
}
/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .post-card {
        border: 2px solid;
    }
    
    .main-navigation a:hover,
    .main-navigation .current-menu-item a {
        background-color: currentColor;
        color: white;
    }
}


/* Accessibility */
.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    background: var(--link-color);
    color: var(--bg-color);
    padding: 10px 20px;
    text-decoration: none;
}

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

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.sticky {
    position: relative;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

 