/*
Theme Name: ANHQV Tech
Theme URI: https://aquinohayquienviva.es
Author: Unpokitodxfavor
Author URI: https://aquinohayquienviva.es
Description: Tema moderno enfocado en tecnología con modo oscuro y efectos de glassmorphism. Incluye posts relacionados, breadcrumbs, SEO optimizado, social sharing, diseño 100% responsive, 6 widgets personalizados y sistema de contador de visitas.
Version: 2.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anhqv-tech
Tags: blog, dark, technology, two-columns, responsive-layout, custom-menu, featured-images, threaded-comments, translation-ready, widgets, custom-widgets, analytics
*/

:root {
    /* Identidad de Marca (Tech Magazine) */
    --accent-primary: #3b82f6;
    /* Blue 500 */
    --accent-glow: #60a5fa;
    /* Blue 400 */
    --accent-secondary: #f59e0b;
    /* Amber 500 */

    /* Fondo y Superficies (Dark Mode) */
    --bg-body: #0f172a;
    /* Slate 900 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --bg-header: #0f172a;
    --bg-overlay: rgba(15, 23, 42, 0.95);

    /* Tipografía */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Espaciado */
    --container-width: 1200px;
    --reading-width: 800px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
}

/* ==================== */
/* Reset Básico */
/* ==================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--accent-glow);
}

a:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Skip Link para accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==================== */
/* Tipografía */
/* ==================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 0.75em;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    margin-bottom: 1.5rem;
}

/* ==================== */
/* Header */
/* ==================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* ANTI-AD PROTECTION */
.site-header .google-auto-placed,
.site-header .adsbygoogle,
.site-header ins {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Logo & Branding */
.site-branding a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.site-logo {
    height: 40px;
    width: auto;
    border-radius: 0;
    display: block;
    margin-right: 12px;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.site-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
}

.main-navigation a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    opacity: 0.85;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-medium);
}

.main-navigation a:hover,
.main-navigation a:focus {
    opacity: 1;
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.hamburger .line {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: all var(--transition-medium);
}

.mobile-menu-toggle[aria-expanded="true"] .line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
}

/* ==================== */
/* Breadcrumbs */
/* ==================== */

.breadcrumb-wrapper {
    max-width: var(--container-width);
    margin: 2rem auto 0;
    padding: 0 1.5rem;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--accent-primary);
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-main);
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 0.25rem;
}

/* ==================== */
/* Main Layout */
/* ==================== */

.main-container {
    max-width: var(--container-width);
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: 160px 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

/* No Left Sidebar Layout */
.has-no-left-sidebar .layout-grid {
    grid-template-columns: 1fr 300px;
}

.has-no-left-sidebar .sidebar-left-ad {
    display: none;
}

.has-no-left-sidebar .single-post-container {
    max-width: 1000px;
    /* Expand reading width when sidebar is hidden */
}

.sidebar-left-ad {
    position: sticky;
    top: 2rem;
}

@media (max-width: 1200px) {
    .layout-grid {
        grid-template-columns: 1fr 300px;
    }

    .sidebar-left-ad {
        display: none;
    }
}


/* ==================== */
/* Posts Grid */
/* ==================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* ==================== */
/* Post Cards */
/* ==================== */

.post-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.4);
}

.post-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 0;
}

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

.post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-category a {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-secondary);
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.post-title {
    font-size: 1.4rem;
    margin: 1rem 0;
}

.post-title a {
    transition: color var(--transition-fast);
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tags a {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.card-tags a:hover {
    background: var(--accent-primary);
    color: white;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: auto;
}

/* ==================== */
/* Single Post */
/* ==================== */

.single-post-container {
    max-width: var(--reading-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.entry-header {
    text-align: center;
    margin-bottom: 3rem;
}

.entry-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin: 1rem 0;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.entry-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    line-height: 1.6;
}

.header-meta {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reading-time {
    color: var(--text-muted);
}

.entry-thumbnail-full {
    margin: 0 0 3rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.entry-content {
    font-size: 1.125rem;
    color: #cbd5e1;
}

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

.entry-content h2 {
    margin-top: 3rem;
    font-size: 1.8rem;
    color: var(--accent-glow);
}

.entry-content h3 {
    margin-top: 2.5rem;
    font-size: 1.4rem;
    color: var(--accent-glow);
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

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

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

.entry-content code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.entry-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

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

/* Tags */
.entry-footer-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tags-label {
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 0.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.entry-footer-tags a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.entry-footer-tags a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* ==================== */
/* Social Share */
/* ==================== */

.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.share-label {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-medium);
    background: rgba(255, 255, 255, 0.05);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-btn.twitter:hover {
    background: #1DA1F2;
}

.share-btn.facebook:hover {
    background: #1877F2;
}

.share-btn.linkedin:hover {
    background: #0077B5;
}

.share-btn.whatsapp:hover {
    background: #25D366;
}

/* ==================== */
/* Author Bio */
/* ==================== */

.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.author-name a {
    color: var(--accent-primary);
}

.author-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== */
/* Related Posts */
/* ==================== */

.related-posts {
    margin: 4rem 0;
}

.related-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-glow);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.related-thumbnail {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.related-content {
    padding: 1.5rem;
}

.related-meta {
    margin-bottom: 0.75rem;
}

.related-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-secondary);
    font-weight: 700;
    background: rgba(245, 158, 11, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.related-post-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.related-post-title a {
    color: var(--text-main);
}

.related-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== */
/* Post Navigation */
/* ==================== */

.post-navigation {
    margin: 4rem 0;
}

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

.nav-previous,
.nav-next {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-medium);
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.nav-subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nav-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

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

/* ==================== */
/* AD ZONES */
/* ==================== */

.ad-zone {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    margin: 3rem 0;
    text-align: center;
    border-radius: 8px;
    position: relative;
}

.ad-zone::before {
    content: 'ADVERTISEMENT';
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

/* ==================== */
/* Sidebar */
/* ==================== */

.widget-area {
    position: sticky;
    top: 5rem;
}

.widget {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-search {
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    position: relative;
    width: 100%;
}

.search-field {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    padding: 0.8rem 1.5rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-medium);
    outline: none;
}

.search-field:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 0 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 0.85rem;
}

.search-submit:hover {
    background: var(--accent-glow);
}

.widget-title {
    font-size: 1.25rem;
    color: var(--accent-glow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 0.5rem;
}

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

.widget a {
    color: var(--text-muted);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.widget a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

/* ==================== */
/* Pagination */
/* ==================== */

.pagination,
.posts-navigation {
    margin: 4rem 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* ==================== */
/* Footer */
/* ==================== */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8rem;
    padding: 5rem 0 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: #0b1120;
}

.site-info {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-info a:hover {
    color: var(--accent-primary);
}

/* ==================== */
/* Responsive */
/* ==================== */

@media (max-width: 900px) {

    <<<<<<< HEAD

    /* Layout Grid Stack - CRITICAL: Must match specificity of .has-no-left-sidebar */
    .layout-grid,
    .has-no-left-sidebar .layout-grid {
        =======

        /* Layout Grid Stack */
        .layout-grid {
            >>>>>>>9df725015494d03b897e995fb84a9a030b66c974 grid-template-columns: 1fr;
        }

        .widget-area {
            position: static;
        }

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

        .main-navigation {
            position: fixed;
            top: 60px;
            left: 0;
            right: 0;
            background: var(--bg-overlay);
            backdrop-filter: blur(10px);
            padding: 2rem;
            transform: translateX(-100%);
            transition: transform var(--transition-medium);
        }

        .main-navigation.is-open {
            transform: translateX(0);
        }

        .main-navigation ul {
            flex-direction: column;
            gap: 1.5rem;
        }

        .main-navigation a {
            font-size: 1.1rem;
            display: block;
            padding: 0.5rem 0;
        }

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

        /* Related Grid */
        .related-grid {
            grid-template-columns: 1fr;
        }

        /* Post Navigation */
        .post-navigation .nav-links {
            grid-template-columns: 1fr;
        }

        .nav-next {
            text-align: left;
        }

        /* Single Post */
        .entry-title {
            font-size: 2rem;
        }

        .entry-content {
            font-size: 1rem;
        }

        .author-bio {
            flex-direction: column;
            text-align: center;
        }

        /* Social Share */
        .social-share {
            flex-wrap: wrap;
            justify-content: center;
        }
    }

    /* Tablet Breakpoint */
    @media (max-width: 768px) {
        .main-container {
            margin: 2rem auto;
        }

        /* Widgets get more breathing room */
        .widget {
            margin-bottom: 1.5rem;
        }

        /* Search bar improvements */
        .search-field {
            font-size: 1rem;
            padding: 0.9rem 1.5rem;
        }
    }

    @media (max-width: 480px) {
        .header-container {
            padding: 0 1rem;
        }

        .site-tagline {
            display: none;
        }

        .main-container {
            padding: 0 1rem;
            margin: 1.5rem auto;
        }

        .entry-thumbnail-full {
            margin-left: -1rem;
            margin-right: -1rem;
            border-radius: 0;
        }

        .single-post-container {
            padding: 1rem;
        }

        /* Full-width search on mobile */
        .search-form {
            width: 100%;
        }

        .search-field {
            width: 100%;
            padding: 0.85rem 5rem 0.85rem 1.25rem;
            font-size: 0.95rem;
        }

        .search-submit {
            padding: 0 1rem;
            font-size: 0.8rem;
        }

        /* Better widget spacing */
        .widget {
            padding: 1.25rem;
            margin-bottom: 1.25rem;
        }

        .widget-title {
            font-size: 1.1rem;
        }

        /* Fix single post viewport on mobile */
        .single-post-container {
            padding: 1.5rem 1rem;
        }
    }

    /* Very small mobile devices */
    @media (max-width: 375px) {
        .header-container {
            padding: 0 0.75rem;
        }

        .brand-text {
            font-size: 1rem;
        }

        .main-container {
            padding: 0 0.75rem;
        }

        /* Optimize search for very small screens */
        .search-field {
            padding: 0.75rem 4.5rem 0.75rem 1rem;
            font-size: 0.9rem;
        }

        .search-submit {
            padding: 0 0.85rem;
            font-size: 0.75rem;
        }

        /* Further reduce padding for very small screens */
        .single-post-container {
            padding: 1rem 0.75rem;
        }
    }

    /* ==================== */
    /* Animations */
    /* ==================== */

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .post-card {
        animation: fadeIn 0.5s ease-out;
    }

    /* ==================== */
    /* Utilities */
    /* ==================== */

    .text-center {
        text-align: center;
    }

    .mt-4 {
        margin-top: 2rem;
    }

    .mb-4 {
        margin-bottom: 2rem;
    }