<?php
// style.css - ATUALIZADO E OTIMIZADO
/*
Theme Name: SEO & UX Pro
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Template WordPress premium otimizado para SEO com excelente experiência do usuário. Desenvolvido com os mais altos padrões de performance, acessibilidade e UX. Inclui schema.org, Open Graph, breadcrumbs estruturados, lazy loading, hero section e muito mais.
Version: 2.1.0
License: GPL v2 or later
Text Domain: seo-ux-pro
Domain Path: /languages
Requires at least: 5.9
Requires PHP: 7.4
*/

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #e6f0ff;
    --secondary-color: #f0f4f8;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --border-light: #f5f5f5;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --spacing-unit: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 1vw, 16px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fff;
    font-feature-settings: 'kern' 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-primary);
    word-break: break-word;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    outline-offset: 2px;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--primary-color);
    border-radius: 2px;
}

strong, b {
    font-weight: 700;
    color: var(--text-primary);
}

em, i {
    font-style: italic;
}

small {
    font-size: 0.875rem;
}

/* Lists */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Code */
code, pre {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
}

code {
    background-color: var(--secondary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: #d73a49;
}

pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    line-height: 1.5;
    box-shadow: var(--shadow-md);
    position: relative;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    z-index: 10;
}

.copy-code-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--primary-light);
    border-radius: 4px;
    font-style: italic;
    color: var(--text-secondary);
}

/* Header - Sticky com transição */
header {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    will-change: box-shadow;
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a:hover {
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

nav {
    flex: 1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav li {
    margin: 0;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    display: block;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

nav a:hover::after {
    width: 100%;
}

nav a:focus {
    outline: 2px solid var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background-color: var(--secondary-color);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6rem 2rem;
    margin-bottom: 3rem;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.btn:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.search-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-form input::placeholder {
    color: var(--text-light);
}

.search-form button {
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-form button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.search-form button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    margin: 3rem 0;
}

/* Breadcrumb - Estruturado com Schema */
.breadcrumb {
    margin: 2rem 0 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb a {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-light);
}

.breadcrumb [itemscope][itemtype="https://schema.org/BreadcrumbList"] {
    display: none;
}

/* Posts Grid - 6 posts com cards interativos */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.post-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--secondary-color), var(--border-light));
    display: block;
    aspect-ratio: 16 / 9;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: var(--transition);
    width: fit-content;
}

.post-category:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
    transform: scale(1.05);
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-primary);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    flex-wrap: wrap;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reading-time {
    background-color: var(--secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 500;
}

/* Single Post */
.single-post {
    max-width: 800px;
    margin: 3rem auto;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    max-height: 600px;
    object-fit: cover;
    display: block;
}

figure {
    margin: 2rem 0;
}

figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Table of Contents - Índice estruturado */
.table-of-contents {
    background: linear-gradient(135deg, var(--primary-light), rgba(0, 102, 204, 0.05));
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.table-of-contents h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.table-of-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.table-of-contents li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.table-of-contents a {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.table-of-contents a:hover {
    text-decoration: underline;
}

.table-of-contents a.active {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Post Body */
.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    scroll-margin-top: 80px;
}

.post-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 80px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    display: block;
}

.post-body ul, .post-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-body li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

/* Highlight Boxes */
.highlight-box {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.highlight-box strong {
    color: var(--text-primary);
}

.info-box {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.success-box {
    background-color: #d4edda;
    border-left: 4px solid var(--success-color);
    padding: 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.error-box {
    background-color: #f8d7da;
    border-left: 4px solid var(--error-color);
    padding: 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

/* Code Block */
.code-block {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: var(--shadow-md);
}

/* Post Footer */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Tags */
.post-tags {
    margin-bottom: 2rem;
}

.post-tags-title {
    display: inline-block;
    font-weight: 600;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.tag:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Author Info */
.author-info {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--primary-light), rgba(0, 102, 204, 0.05));
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
}

.author-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.author-details p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.author-social a:hover {
    color: var(--primary-dark);
    transform: scale(1.2);
    text-decoration: none;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-posts h2 {
    margin-bottom: 2rem;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.newsletter-widget h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.newsletter-widget input {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.newsletter-widget input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.newsletter-widget button {
    width: 100%;
    padding: 0.875rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.newsletter-widget button:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sidebar */
.sidebar {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.sidebar-widget {
    margin-bottom: 2.5rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.sidebar-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-widget li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget a {
    color: var(--text-secondary);
    display: block;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-widget a:hover {
    color: var(--primary-color);
    text-decoration: none;
    padding-left: 0.5rem;
}

/* Pagination - Funcional e intuitiva */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
    min-width: 44px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination a {
    background-color: #fff;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.pagination .current {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .dots {
    padding: 0.5rem 0.25rem;
    border: none;
    color: var(--text-light);
}

/* Footer - Completo com múltiplas seções */
footer {
    background-color: #1a1a1a;
    color: #fff;
    margin-top: 5rem;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ccc;
    transition: var(--transition);
}

.footer-section a:hover {
    color: #fff;
    text-decoration: none;
    padding-left: 0.5rem;
}

.footer-section p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 6px 0;
}

.skip-link:focus {
    top: 0;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    header, footer, .sidebar, .pagination, .related-posts, .newsletter-widget {
        display: none;
    }

    body {
        background-color: white;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    p, ul, ol {
        page-break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        gap: 1rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
        width: 100%;
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        padding: 0.75rem 1rem;
        border-radius: 4px;
    }

    nav a::after {
        display: none;
    }

    nav a:hover {
        background-color: var(--secondary-color);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .container {
        padding: 0 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .single-post {
        margin: 1.5rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .author-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        width: 100%;
    }

    .table-of-contents {
        padding: 1.5rem;
    }

    .post-header {
        margin-bottom: 1.5rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    body {
        font-size: 15px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-meta {
        font-size: 0.8rem;
    }

    .pagination {
        gap: 0.25rem;
    }

    .pagination a, .pagination span {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-width: 40px;
    }

    .footer-section {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f0f0f0;
        --text-secondary: #d0d0d0;
        --text-light: #999999;
        --secondary-color: #2a2a2a;
        --border-color: #404040;
        --border-light: #333333;
    }

    body {
        background-color: #1a1a1a;
        color: var(--text-primary);
    }

    header {
        background-color: #222;
    }

    .post-card {
        background-color: #222;
    }

    .sidebar {
        background-color: #262626;
    }

    code {
        background-color: #2a2a2a;
        color: #ffb3ba;
    }

    footer {
        background-color: #0a0a0a;
    }
}
?>