/*
Theme Name: Astolfo
Theme URI: https://seusite.com/astolfo
Author: Bernardo Collet
Author URI: https://seusite.com
Description: Tema Cyber-Luxury profissional para portais de games, com foco em performance, segurança e SEO.
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astolfo
Domain Path: /languages
*/

:root {
    --primary: #ff1a2b;
    --primary-rgb: 255, 26, 43;
    --bg: #050505;
    --surface: #0d0d0d;
    --surface-light: #161616;
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-body: #b0b0b0;
    --text-muted: #666666;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1300px;
    --base-font-size: 16px;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: var(--base-font-size);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* HEADER */
.main-header {
    height: 90px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo img,
.custom-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.3));
}

/* Menu Desktop */
.nav-links {
    display: flex;
    gap: 45px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 10px 0;
    display: block;
}

.nav-links a:hover,
.nav-links .current-menu-item a,
.nav-links .current_page_item a {
    color: var(--primary);
}

/* MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.mobile-menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
    border-radius: 3px;
}

/* Menu Wrapper para Mobile */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
}

/* SIDEBAR */
#sidebar,
.widget-area {
    padding: 20px;
    background: transparent;
}

#sidebar > ul,
.widget-area > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#sidebar > ul > li,
.widget-area > ul > li {
    background: var(--surface);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    list-style: none;
}

#sidebar h2,
.widget-area h2,
.widget-title,
.widgettitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

#sidebar h2::before,
.widget-area h2::before,
.widget-title::before,
.widgettitle::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary);
    display: inline-block;
}

#sidebar ul ul,
.widget-area ul ul {
    list-style: none;
    padding: 0;
}

#sidebar ul ul li,
.widget-area ul ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
}

#sidebar ul ul li:last-child,
.widget-area ul ul li:last-child {
    border-bottom: none;
}

#sidebar ul ul li a,
.widget-area ul ul li a {
    color: var(--text-body);
    font-weight: 600;
    transition: var(--transition);
}

#sidebar ul ul li a:hover,
.widget-area ul ul li a:hover {
    color: var(--primary);
}

/* Search Form no Sidebar */
#sidebar .searchform,
.widget-area .search-form {
    margin-bottom: 20px;
}

#sidebar .searchform div,
.widget-area .search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

#s,
.search-field {
    width: 100%;
    background: #000;
    border: 1px solid var(--border);
    padding: 12px;
    color: #fff;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

#s:focus,
.search-field:focus {
    border-color: var(--primary);
    outline: none;
}

#searchsubmit,
.search-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

#searchsubmit:hover,
.search-submit:hover {
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
    transform: scale(1.05);
}

.screen-reader-text {
    display: none;
}

/* Newsletter Widget */
.newsletter-sidebar,
.newsletter-widget {
    background: linear-gradient(145deg, #0d0d0d, #050505);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.newsletter-shortcode input[type="email"],
.newsletter-sidebar input[type="email"],
.newsletter-widget input[type="email"] {
    width: 100%;
    background: #000;
    border: 1px solid var(--border);
    padding: 15px;
    color: #fff;
    margin-bottom: 15px;
    border-radius: 4px;
}

.newsletter-shortcode button,
.newsletter-sidebar button,
.newsletter-widget button {
    width: 100%;
}

/* Categories Widget */
.categories ul,
.widget_categories ul {
    list-style: none;
}

.categories ul li,
.widget_categories ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.categories ul li a,
.widget_categories ul li a {
    color: var(--text-body);
    transition: var(--transition);
}

.categories ul li a:hover,
.widget_categories ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.categories ul li .count,
.widget_categories ul li .count {
    color: var(--primary);
    font-size: 0.8rem;
    margin-left: 8px;
}

/* Popular Posts Widget */
.popular-posts-list {
    list-style: none;
}

.popular-posts-list li {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.popular-posts-list li:last-child {
    border-bottom: none;
}

.popular-post-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-content h4 a:hover {
    color: var(--primary);
}

.popular-post-content .post-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #000;
}

.hero-img,
.hero .wp-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 20%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 800px;
}

.badge {
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.75rem;
    margin-bottom: 25px;
    display: block;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 30px;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-body);
    margin-bottom: 50px;
    max-width: 600px;
    line-height: 1.5;
}

/* BUTTONS */
.btn-primary,
.button,
input[type="submit"] {
    background: var(--primary);
    color: white;
    padding: 18px 40px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover,
.button:hover,
input[type="submit"]:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.6);
}

/* NEWS GRID */
.news-grid {
    padding: 120px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 60px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title::after {
    content: '';
    height: 2px;
    flex: 1;
    background: var(--border);
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 50px;
}

.card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-body {
    padding: 35px;
}

.category,
.card-body .category a {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

.card-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.read-more {
    display: inline-block;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 15px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary);
    padding-left: 10px;
}

/* SINGLE POST */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 100px;
    padding: 80px 0;
    align-items: start;
}

.article-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 25px 0;
}

.article-meta {
    display: flex;
    gap: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 40px;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 30px;
    margin-bottom: 60px;
}

.article-content {
    font-size: 1.25rem;
    color: var(--text-body);
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 30px;
}

/* SIDEBAR SINGLE */
.single-sidebar {
    position: sticky;
    top: 130px;
}

/* ARCHIVE */
.archive-container {
    padding: 60px 0 100px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
}

.archive-sidebar h2 {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 15px;
}

.archive-filter-group {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.archive-filter-group h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-filter-group h4::before {
    content: '';
    width: 3px;
    height: 12px;
    background: var(--primary);
    display: inline-block;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.filter-list li:last-child {
    border-bottom: none;
}

.filter-list a {
    color: var(--text-body);
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    transition: var(--transition);
}

.filter-list a:hover,
.filter-list li.current-cat a {
    color: var(--primary);
    padding-left: 10px;
}

.archive-card {
    display: flex;
    gap: 30px;
    background: var(--surface);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
    transition: var(--transition);
}

.archive-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.archive-card-img {
    width: 240px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.archive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-card:hover .archive-card-img img {
    transform: scale(1.05);
}

.archive-card-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 800;
}

.archive-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.archive-card-content h3 a:hover {
    color: var(--primary);
}

.archive-card-content p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* LOAD MORE */
.load-more-container {
    text-align: center;
    margin: 50px 0;
}

.load-more-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 15px 40px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

/* FOOTER */
.main-footer {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .single-layout,
    .archive-container {
        grid-template-columns: 1fr;
    }
    
    .single-sidebar,
    .archive-sidebar {
        display: block;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Menu Mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        transition: 0.4s ease-in-out;
        z-index: 999;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    
    .nav-menu-wrapper.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        gap: 30px;
        width: 100%;
    }
    
    .nav-links li {
        text-align: center;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 12px 20px;
        display: block;
    }
    
    /* Animação do botão hamburguer */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Grid */
    .grid-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Archive */
    .archive-card {
        flex-direction: column;
    }
    
    .archive-card-img {
        width: 100%;
        height: 200px;
    }
    
    /* Sidebar */
    #sidebar > ul > li {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title::after {
        width: 50px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* SKIP TO CONTENT */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: -9999px;
    z-index: 999999;
}

.skip-to-content:focus {
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
}

/* READING PROGRESS */
.reading-progress-bar {
    position: fixed;
    top: 90px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: none;
    cursor: pointer;
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    transition: all 0.3s;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
}

/* NO RESULTS */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border-radius: 15px;
}

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* =============================================
   PAGE TEMPLATE STYLES
   ============================================= */

/* Page Layout */
.page-layout {
    padding: 60px 0 100px;
    max-width: 900px;
    margin: 0 auto;
}

.page-article {
    background: var(--surface);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid var(--border);
}

/* Breadcrumbs */
.page-breadcrumbs {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.page-breadcrumbs a {
    color: var(--text-muted);
    transition: var(--transition);
}

.page-breadcrumbs a:hover {
    color: var(--primary);
}

.page-breadcrumbs .separator {
    margin: 0 10px;
}

.page-breadcrumbs .current {
    color: var(--primary);
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-excerpt {
    font-size: 1.2rem;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Featured Image */
.page-featured-image {
    margin: 40px 0;
    border-radius: 15px;
    overflow: hidden;
}

.page-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
}

.image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* Page Content */
.page-content {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.8;
}

.page-content p {
    margin-bottom: 1.5em;
}

.page-content h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin: 1.5em 0 0.8em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.page-content h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 1.3em 0 0.6em;
}

.page-content h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 1em 0 0.5em;
}

.page-content ul,
.page-content ol {
    margin: 1em 0 1em 2em;
}

.page-content li {
    margin-bottom: 0.5em;
}

.page-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 4px solid var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    font-style: italic;
    border-radius: 10px;
}

.page-content blockquote p {
    margin-bottom: 0;
}

.page-content code {
    background: var(--surface-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.page-content pre {
    background: var(--surface-light);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.page-content pre code {
    background: none;
    padding: 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.page-content th,
.page-content td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
}

.page-content th {
    background: var(--surface-light);
    font-weight: 700;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.page-content .alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.page-content .alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-content .aligncenter {
    display: block;
    margin: 20px auto;
}

.page-content .wp-caption {
    max-width: 100%;
    background: var(--surface-light);
    padding: 10px;
    border-radius: 10px;
    margin: 1em 0;
}

.page-content .wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Page Links */
.page-links {
    margin: 40px 0 20px;
    text-align: center;
}

.page-links-title {
    margin-right: 15px;
    font-weight: 700;
}

.page-links span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 15px;
    background: var(--surface-light);
    border-radius: 5px;
}

.page-links a span {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.page-links a:hover span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Edit Link */
.page-edit-link {
    text-align: right;
    margin: 30px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.edit-link a {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.edit-link a:hover {
    text-decoration: underline;
}

/* Last Updated */
.page-last-updated {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.update-icon {
    display: inline-block;
    margin-right: 8px;
}

/* Responsive Page */
@media (max-width: 768px) {
    .page-layout {
        padding: 30px 0 60px;
    }
    
    .page-article {
        padding: 25px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-excerpt {
        font-size: 1rem;
    }
    
    .page-content {
        font-size: 1rem;
    }
    
    .page-content h2 {
        font-size: 1.5rem;
    }
    
    .page-content h3 {
        font-size: 1.3rem;
    }
    
    .page-content blockquote {
        padding: 1em;
    }
}

/* Print Styles */
@media print {
    .page-layout {
        padding: 0;
    }
    
    .page-article {
        background: white;
        padding: 0;
        border: none;
    }
    
    .page-breadcrumbs,
    .page-edit-link,
    .page-last-updated {
        display: none;
    }
    
    .page-title {
        color: black;
        -webkit-text-fill-color: black;
        background: none;
    }
    
    .page-content {
        color: black;
    }
}

/* =============================================
   ARCHIVE PAGE STYLES
   ============================================= */

.archive-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    padding: 60px 0 100px;
}

/* Sidebar Filters */
.archive-sidebar h2 {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 15px;
}

.archive-filter-group {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.archive-filter-group h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-filter-group h4::before {
    content: '';
    width: 3px;
    height: 12px;
    background: var(--primary);
    display: inline-block;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-list li:last-child {
    border-bottom: none;
}

.filter-list a {
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    transition: var(--transition);
}

.filter-list a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.filter-list .current-cat a,
.filter-list .current-cat-parent a {
    color: var(--primary);
    font-weight: 700;
}

.filter-list .count {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Archive Header */
.archive-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.archive-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.archive-title span {
    color: var(--text-muted);
    font-weight: 400;
}

.archive-description {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 10px;
}

/* Archive Grid */
.archive-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Archive Card */
.archive-card {
    display: flex;
    gap: 30px;
    background: var(--surface);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.archive-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.archive-card-img {
    width: 260px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.archive-card-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.archive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-card:hover .archive-card-img img {
    transform: scale(1.05);
}

.archive-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-card-meta .post-date {
    color: var(--text-muted);
}

.archive-card-meta .post-category a {
    color: var(--primary);
    font-weight: 700;
}

.archive-card-meta .post-category a:hover {
    text-decoration: underline;
}

.archive-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.archive-card-content h3 a {
    color: var(--text-main);
    transition: var(--transition);
}

.archive-card-content h3 a:hover {
    color: var(--primary);
}

.archive-card-content p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-card-content .read-more {
    align-self: flex-start;
    margin-top: auto;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 50px;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-body);
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .dots {
    background: transparent;
    border: none;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--surface);
    border-radius: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .archive-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .archive-sidebar {
        order: 2;
    }
    
    .archive-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .archive-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .archive-card-img {
        width: 100%;
        height: 200px;
    }
    
    .archive-title {
        font-size: 1.5rem;
    }
    
    .archive-filter-group {
        padding: 20px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Read More Button */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
    color: var(--primary);
}

/* =============================================
   SINGLE POST STYLES
   ============================================= */

.single-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    padding: 60px 0 100px;
}

.single-main {
    min-width: 0;
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 90px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.article-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    transition: var(--transition);
}

.category-badge:hover {
    background: var(--primary);
    color: #fff;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -2px;
    margin-bottom: 25px;
    color: var(--text-main);
}

.article-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.meta-icon {
    font-size: 1rem;
}

/* Featured Image */
.article-featured-image {
    margin: 40px 0;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
}

.image-caption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin: 1.5em 0 0.8em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 1.3em 0 0.6em;
}

.article-content h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 1em 0 0.5em;
}

.article-content ul,
.article-content ol {
    margin: 1em 0 1em 2em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 4px solid var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    font-style: italic;
    border-radius: 10px;
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content code {
    background: var(--surface-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: var(--surface-light);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.article-content th,
.article-content td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
}

.article-content th {
    background: var(--surface-light);
    font-weight: 700;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Article Footer */
.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

/* Tags */
.article-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
}

.tags-label {
    font-weight: 700;
    color: var(--text-muted);
}

.tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-list a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--surface-light);
    color: var(--text-body);
    font-size: 0.8rem;
    border-radius: 20px;
    transition: var(--transition);
}

.tags-list a:hover {
    background: var(--primary);
    color: #fff;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
}

.share-label {
    font-weight: 700;
    color: var(--text-muted);
}

.share-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.share-btn.twitter {
    background: #1DA1F2;
    color: #fff;
}

.share-btn.facebook {
    background: #1877F2;
    color: #fff;
}

.share-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
}

.nav-previous,
.nav-next {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.post-navigation a {
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.post-navigation a:hover {
    color: var(--primary);
}

/* Related Posts */
.related-posts {
    margin: 50px 0;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-thumb {
    display: block;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-thumb img {
    transform: scale(1.05);
}

.related-card h4 {
    padding: 15px 15px 10px;
    font-size: 1rem;
    line-height: 1.4;
}

.related-card h4 a {
    color: var(--text-main);
}

.related-card h4 a:hover {
    color: var(--primary);
}

.related-date {
    display: block;
    padding: 0 15px 15px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Comments */
.comments-area {
    margin-top: 50px;
    padding: 30px;
    background: var(--surface);
    border-radius: 16px;
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.comment-list {
    list-style: none;
    margin-bottom: 40px;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 700;
    color: var(--text-main);
}

.comment-metadata {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-content {
    margin-left: 65px;
    color: var(--text-body);
}

.reply {
    margin-left: 65px;
    margin-top: 10px;
}

.comment-reply-link {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
}

.comment-respond {
    margin-top: 30px;
}

.comment-reply-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.comment-form .form-submit {
    margin-top: 20px;
}

.comment-form .submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Page Links */
.page-links {
    margin: 40px 0;
    text-align: center;
}

.page-links-title {
    margin-right: 10px;
    font-weight: 700;
}

.page-links span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    background: var(--surface);
    border-radius: 8px;
}

.page-links a span {
    transition: var(--transition);
}

.page-links a:hover span {
    background: var(--primary);
    color: #fff;
}

/* Sidebar */
.single-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

/* Responsive */
@media (max-width: 992px) {
    .single-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .single-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .single-layout {
        padding: 30px 0 60px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-content {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .article-meta {
        gap: 15px;
    }
    
    .share-links {
        flex-direction: column;
        width: 100%;
    }
    
    .share-btn {
        justify-content: center;
    }
}