/*
Theme Name: Biggist
Theme URI: https://example.com/biggist
Author: Biggist Theme
Author URI: https://example.com
Description: A modern blog magazine theme with a sleek, professional design, perfect for lifestyle, fashion, technology, and news blogs.
Version: 1.0.0
Requires at least: 5.6
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blogiva
Tags: blog, magazine, two-columns, right-sidebar, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --bg-primary: #f5f7fa;
    --bg-white: #ffffff;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: rgba(37, 99, 235, 0.08);
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --dark-navy: #0f172a;
    --dark-navy-light: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1200px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background: var(--gradient);
    color: var(--text-white);
    font-size: 0.8125rem;
    padding: 10px 0;
    letter-spacing: 0.02em;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar-date {
    opacity: 0.9;
    font-weight: 500;
}

/* ==========================================================================
   Site Header
   ========================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    background-color: rgba(255, 255, 255, 0.98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--dark-navy);
    letter-spacing: -0.5px;
}

.site-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    color: inherit;
}

.site-title a:hover {
    color: inherit;
}

/* Main Navigation */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-navigation .nav-menu {
    display: flex;
    gap: 5px;
}

.main-navigation .nav-menu li {
    position: relative;
}

.main-navigation .nav-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius);
    transition: var(--transition);
}

.main-navigation .nav-menu a:hover,
.main-navigation .nav-menu .current-menu-item > a,
.main-navigation .nav-menu .current_page_item > a {
    color: var(--accent);
    background-color: rgba(232, 52, 74, 0.05);
}

/* Dropdown */
.main-navigation .nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.main-navigation .nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.875rem;
    border-radius: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
}

.search-toggle:hover {
    background-color: var(--bg-primary);
    color: var(--accent);
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--gradient);
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-subscribe:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--dark-navy);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.search-overlay form {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.search-overlay input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    padding: 15px 0;
    outline: none;
}

.search-overlay input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-overlay button[type="submit"] {
    color: var(--text-white);
    font-size: 1.25rem;
    padding: 15px;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Hero / Featured Section
   ========================================================================== */
.hero-section {
    padding: 40px 0;
}

.hero-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--gradient);
    border-radius: 2px;
}

.view-all-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.view-all-link:hover {
    color: var(--accent-hover);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ==========================================================================
   Post Cards
   ========================================================================== */
.post-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.post-card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
}

.post-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.category-badge {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-white);
    background: var(--gradient);
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.category-badge.cat-technology { background-color: #3b82f6; }
.category-badge.cat-lifestyle { background-color: #ec4899; }
.category-badge.cat-travel { background-color: #10b981; }
.category-badge.cat-food { background-color: #f59e0b; }
.category-badge.cat-health { background-color: #8b5cf6; }
.category-badge.cat-business { background-color: #ef4444; }
.category-badge.cat-fashion { background-color: #f97316; }
.category-badge.cat-sports { background-color: #06b6d4; }

.post-card-content {
    padding: 20px;
}

.post-card-title {
    font-size: 1.125rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.post-card-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-card-meta .meta-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.post-card-meta .meta-separator {
    color: var(--border-color);
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Horizontal Post Card */
.post-card-horizontal {
    display: flex;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.post-card-horizontal:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: transparent;
}

.post-card-horizontal .post-card-thumbnail {
    width: 280px;
    min-width: 280px;
    aspect-ratio: auto;
}

.post-card-horizontal .post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-horizontal .post-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 25px;
    flex: 1;
}

.post-card-horizontal .post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ==========================================================================
   Content Layout
   ========================================================================== */
.content-area {
    padding: 20px 0 60px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.main-content {
    min-width: 0;
}

.content-section {
    margin-bottom: 50px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar .widget {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.sidebar .widget:hover {
    box-shadow: var(--shadow-hover);
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

/* Follow Us Widget */
.follow-us-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.follow-us-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.follow-us-item:hover {
    opacity: 0.9;
    color: var(--text-white);
    transform: translateX(3px);
}

.follow-us-item .social-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.follow-us-item.facebook { background-color: #1877f2; }
.follow-us-item.twitter { background-color: #1da1f2; }
.follow-us-item.youtube { background-color: #ff0000; }
.follow-us-item.pinterest { background-color: #e60023; }
.follow-us-item.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* Popular Posts Widget */
.popular-posts-list .popular-post-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-posts-list .popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-posts-list .popular-post-item:first-child {
    padding-top: 0;
}

.popular-post-thumb {
    width: 80px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-info .popular-post-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.popular-post-info .popular-post-title a:hover {
    color: var(--accent);
}

.popular-post-info .popular-post-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #eef2ff 0%, #f0e7fe 100%) !important;
    text-align: center;
    border: 1px solid #e0e7ff !important;
}

.newsletter-widget .widget-title::after {
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
}

.newsletter-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.newsletter-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
    background: var(--bg-white);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent);
}

.newsletter-form .btn-newsletter {
    width: 100%;
    padding: 12px 18px;
    background: var(--gradient);
    color: var(--text-white);
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.newsletter-form .btn-newsletter:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
    background-color: var(--dark-navy);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-widget-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--text-white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
}

.footer-about-text {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--text-white);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '›';
    color: var(--accent);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-recent-post-thumb {
    width: 70px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-recent-post-info .footer-rp-title {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 4px;
}

.footer-recent-post-info .footer-rp-title a:hover {
    color: var(--accent);
}

.footer-recent-post-info .footer-rp-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tags a {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-tags a:hover {
    background: var(--accent);
    color: var(--text-white);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.8125rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post-header {
    padding: 40px 0 0;
}

.single-post-category {
    margin-bottom: 15px;
}

.single-post-title {
    font-size: 2.25rem;
    margin-bottom: 20px;
    max-width: 800px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.single-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.single-post-meta .meta-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.single-post-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
}

.single-post-content {
    font-size: 1.0625rem;
    line-height: 1.9;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content h2 {
    margin: 2rem 0 1rem;
}

.single-post-content h3 {
    margin: 1.5rem 0 0.75rem;
}

.single-post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 20px 25px;
    margin: 2rem 0;
    background: var(--bg-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 1.125rem;
}

.single-post-content ul,
.single-post-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.single-post-content ul { list-style: disc; }
.single-post-content ol { list-style: decimal; }

.single-post-content li {
    margin-bottom: 0.5rem;
}

.single-post-content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.single-post-content pre {
    background: var(--dark-navy);
    color: #e0e0e0;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.single-post-content code {
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.875em;
}

.single-post-content pre code {
    background: none;
    padding: 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-tags .tags-label {
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 5px;
}

.post-tags a {
    display: inline-block;
    padding: 5px 14px;
    background: var(--bg-primary);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--accent);
    color: var(--text-white);
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
}

.social-share .share-label {
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 5px;
}

.social-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-white);
    font-size: 0.875rem;
    transition: var(--transition);
}

.social-share a:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.social-share .share-facebook { background-color: #1877f2; }
.social-share .share-twitter { background-color: #1da1f2; }
.social-share .share-linkedin { background-color: #0a66c2; }
.social-share .share-pinterest { background-color: #e60023; }
.social-share .share-email { background-color: #555; }

/* Author Box */
.author-box {
    display: flex;
    gap: 25px;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

.author-box-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-name {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.author-box-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.post-nav-link {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-nav-link:hover {
    box-shadow: var(--shadow-hover);
}

.post-nav-link .nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.post-nav-link .nav-title {
    font-size: 1rem;
    font-weight: 600;
}

.post-nav-link.next {
    text-align: right;
}

/* Comments */
.comments-area {
    margin-top: 50px;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-body {
    display: flex;
    gap: 20px;
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-meta .fn {
    font-weight: 700;
    font-size: 0.9375rem;
}

.comment-meta .comment-date {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-left: 10px;
}

.comment-text p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.comment .children {
    margin-left: 40px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.reply a {
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 600;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.comment-form .comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    transition: var(--transition);
    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .form-submit {
    grid-column: 1 / -1;
}

.comment-form .submit {
    padding: 12px 35px;
    background: var(--gradient);
    color: var(--text-white);
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.comment-form .submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   Page Template
   ========================================================================== */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2rem;
}

.page-content {
    font-size: 1.0625rem;
    line-height: 1.9;
}

/* ==========================================================================
   Archive / Search
   ========================================================================== */
.archive-header,
.search-header {
    padding: 40px 0 20px;
}

.archive-title,
.search-title {
    font-size: 1.75rem;
    margin-bottom: 5px;
}

.archive-description,
.search-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.post-list {
    display: grid;
    gap: 20px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 50px 0 20px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent);
    color: var(--text-white);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 18px;
    border-radius: 50px;
    font-size: 0.8125rem;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404-content {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-content .error-code {
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.error-404-content h2 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.error-404-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.error-404-content .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto 20px;
}

.error-404-content .search-form input[type="search"] {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 50px 0 0 50px;
    outline: none;
    font-size: 0.9375rem;
}

.error-404-content .search-form button {
    padding: 12px 25px;
    background: var(--accent);
    color: var(--text-white);
    border: 2px solid var(--accent);
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    cursor: pointer;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 30px;
    background: var(--gradient);
    color: var(--text-white);
    font-weight: 600;
    border-radius: 50px;
    margin-top: 15px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-home:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */
.alignleft {
    float: left;
    margin: 0 1.5em 1.5em 0;
}

.alignright {
    float: right;
    margin: 0 0 1.5em 1.5em;
}

.aligncenter {
    display: block;
    margin: 1.5em auto;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 8px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 1.5em 0;
}

.sticky .post-card {
    border: 2px solid var(--accent);
}

.bypostauthor .comment-body {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-card-horizontal .post-card-thumbnail {
        width: 220px;
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 100%;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    /* Top Bar */
    .top-bar-date {
        display: none;
    }

    .top-bar-social {
        width: 100%;
        justify-content: center;
    }

    /* Header */
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 70px 0 30px;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 9998;
        overflow-y: auto;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        padding: 0 15px;
        gap: 0;
    }

    .main-navigation .nav-menu a {
        padding: 12px 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .btn-subscribe {
        display: none;
    }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
    }

    /* Horizontal Cards */
    .post-card-horizontal {
        flex-direction: column;
    }

    .post-card-horizontal .post-card-thumbnail {
        width: 100%;
        min-width: 100%;
        aspect-ratio: 16 / 10;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Single Post */
    .single-post-title {
        font-size: 1.75rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }

    .comment .children {
        margin-left: 15px;
        padding-left: 15px;
    }

    /* Pagination */
    .pagination .page-numbers {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .site-title {
        font-size: 1.35rem;
    }

    .social-share {
        flex-wrap: wrap;
    }

    .error-404-content .error-code {
        font-size: 5rem;
    }
}
