/*
Theme Name: TechBlog
Theme URI: https://exemplo.com/techblog
Author: TechBlog Team
Author URI: https://exemplo.com
Description: Tema elegante e objetivo para blogs de tecnologia. Design moderno com suporte a modo escuro, tipografia refinada e layout responsivo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techblog
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode

TechBlog - Soluções práticas para problemas do cotidiano digital.
*/

/* ========================================
   CSS Variables / Design Tokens
   ======================================== */
:root {
    /* Light Mode */
    --background: hsl(220, 20%, 97%);
    --foreground: hsl(220, 25%, 10%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(220, 25%, 10%);
    --primary: hsl(29, 100%, 50%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(220, 15%, 92%);
    --secondary-foreground: hsl(220, 25%, 20%);
    --muted: hsl(220, 15%, 94%);
    --muted-foreground: hsl(220, 10%, 45%);
    --accent: hsl(29, 100%, 50%);
    --accent-foreground: hsl(0, 0%, 100%);
    --border: hsl(220, 15%, 88%);
    --input: hsl(220, 15%, 88%);
    --ring: hsl(29, 100%, 50%);
    --radius: 0.5rem;
    
    /* Custom Theme Tokens */
    --tech-orange: hsl(29, 100%, 50%);
    --tech-dark: hsl(220, 25%, 10%);
    --tech-muted: hsl(220, 10%, 45%);
    --gradient-tech: linear-gradient(135deg, hsl(29, 100%, 50%), hsl(29, 100%, 40%));
    --shadow-card: 0 2px 8px -2px hsla(220, 25%, 10%, 0.08);
    --shadow-card-hover: 0 8px 24px -4px hsla(220, 25%, 10%, 0.12);
}

.dark {
    --background: hsl(220, 25%, 8%);
    --foreground: hsl(220, 15%, 95%);
    --card: hsl(220, 25%, 12%);
    --card-foreground: hsl(220, 15%, 95%);
    --primary: hsl(29, 100%, 55%);
    --primary-foreground: hsl(220, 25%, 8%);
    --secondary: hsl(220, 20%, 18%);
    --secondary-foreground: hsl(220, 15%, 90%);
    --muted: hsl(220, 20%, 18%);
    --muted-foreground: hsl(220, 10%, 55%);
    --accent: hsl(29, 100%, 55%);
    --accent-foreground: hsl(220, 25%, 8%);
    --border: hsl(220, 20%, 20%);
    --input: hsl(220, 20%, 20%);
    --ring: hsl(29, 100%, 55%);
    --shadow-card: 0 2px 8px -2px hsla(0, 0%, 0%, 0.3);
    --shadow-card-hover: 0 8px 24px -4px hsla(0, 0%, 0%, 0.4);
}

/* ========================================
   Base Styles
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-mono {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr 320px;
    }
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: hsla(220, 20%, 97%, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.dark .site-header {
    background-color: hsla(220, 25%, 8%, 0.95);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--gradient-tech);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.75rem;
}

.site-title {
    font-size: 1.125rem;
    font-weight: 600;
}

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

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.current-menu-item a {
    color: var(--foreground);
}

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

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    color: var(--foreground);
    background-color: var(--secondary);
}

.btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-primary {
    display: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: var(--gradient-tech);
    color: var(--primary-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

@media (min-width: 768px) {
    .btn-primary {
        display: inline-flex;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background-color: var(--background);
    padding: 1rem 1.5rem;
}

.mobile-nav.is-open {
    display: block;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--foreground);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-gradient {
    background: var(--gradient-tech);
    color: var(--primary-foreground);
}

.btn-gradient:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background-color: var(--muted);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background-color: var(--card);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

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

.card-content {
    padding: 1.5rem;
}

/* Featured Post */
.featured-post {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .featured-post {
        grid-template-columns: 1fr 1fr;
    }
}

.featured-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

@media (min-width: 768px) {
    .featured-image {
        aspect-ratio: auto;
        height: 100%;
    }
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .featured-content {
        padding: 2rem;
    }
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: var(--gradient-tech);
    color: var(--primary-foreground);
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .featured-title {
        font-size: 1.75rem;
    }
}

.featured-excerpt {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.author-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    object-fit: cover;
}

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

/* Post Card */
.post-card .card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

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

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

.post-category {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.75rem;
}

.post-title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-title a {
    transition: color 0.2s ease;
}

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

.post-excerpt {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: var(--card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.widget-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--gradient-tech);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
}

.widget-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
}

.widget-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsla(29, 100%, 50%, 0.1);
}

/* Categories Widget */
.categories-list {
    list-style: none;
}

.categories-list li {
    padding: 0.5rem 0;
}

.categories-list li:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.categories-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.categories-list a:hover {
    color: var(--foreground);
}

.category-count {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background-color: var(--secondary);
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius);
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Code Block Widget */
.code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background-color: var(--secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

.code-block .comment {
    color: var(--primary);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    border-top: 1px solid var(--border);
    background-color: var(--card);
    margin-top: 4rem;
}

.footer-content {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    max-width: 24rem;
    margin-top: 1rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--foreground);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: var(--secondary);
    color: var(--muted-foreground);
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--foreground);
}

/* ========================================
   Single Post
   ======================================== */
.single-header {
    padding: 3rem 0;
    text-align: center;
}

.single-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.single-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .single-title {
        font-size: 2.5rem;
    }
}

.single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.single-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-featured-image {
    margin-bottom: 3rem;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 21 / 9;
}

.single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content */
.post-content {
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

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

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--muted-foreground);
}

.post-content pre {
    background-color: var(--secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.post-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    background-color: var(--secondary);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

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

.post-content img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

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

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card);
    border-radius: 0.75rem;
    margin: 3rem 0;
}

.author-box-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-box-bio {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.related-posts-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ========================================
   Comments
   ======================================== */
.comments-section {
    max-width: 48rem;
    margin: 3rem auto;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9375rem;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.comment-content {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.comment-reply-link {
    font-size: 0.8125rem;
    color: var(--primary);
    margin-top: 0.75rem;
    display: inline-block;
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
}

.comment-form-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--ring);
}

.comment-form textarea {
    min-height: 8rem;
    resize: vertical;
}

/* ========================================
   Page Template
   ======================================== */
.page-header {
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
}

.page-content {
    max-width: 48rem;
    margin: 0 auto 3rem;
}

/* ========================================
   Archive / Search
   ======================================== */
.archive-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.archive-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.archive-description {
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 24rem;
}

.search-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--ring);
}

.search-button {
    padding: 0.625rem 1rem;
    border: none;
    border-radius: var(--radius);
    background: var(--gradient-tech);
    color: var(--primary-foreground);
    cursor: pointer;
}

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

.error-code {
    font-size: 8rem;
    font-weight: 700;
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.error-message {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
}

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

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: var(--radius);
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-numbers:hover {
    background-color: var(--muted);
}

.page-numbers.current {
    background: var(--gradient-tech);
    color: var(--primary-foreground);
}

/* ========================================
   Utility Classes
   ======================================== */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-balance {
    text-wrap: balance;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ========================================
   WordPress Core Styles
   ======================================== */
.alignnone {
    margin: 1rem 0;
}

.aligncenter {
    display: block;
    margin: 1rem auto;
}

.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.gallery-item {
    margin: 0;
}

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

.sticky .post-category::before {
    content: "★ ";
}
