/*
 * WP Fix Errors - Main Stylesheet
 * Version 2.0
 */

/* ===================================
   Variables & Reset
   =================================== */
:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3385ff;
    --secondary: #6366f1;
    --dark: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
    --max-width: 1280px;
}
/* ===================================
   Container Width Fix
   Add this AFTER the :root variables in main.css
   =================================== */

/* Container Variations */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.container.narrow {
    max-width: 800px;
}

/* Ensure images and content don't overflow */
.entry-content,
.article-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.entry-content img,
.article-content img,
.post-thumb img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Fix for WordPress embeds */
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
    max-width: 100% !important;
    height: auto !important;
}

/* Prevent content from breaking layout */
.entry-content pre {
    overflow-x: auto;
    max-width: 100%;
}

.entry-content table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* WordPress alignment classes */
.alignnone,
.aligncenter,
.alignleft,
.alignright {
    max-width: 100%;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Clear floats */
.entry-content::after,
.article-content::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 1em auto;
    }
}

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

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

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ===================================
   Layout
   =================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.main-container {
    padding: 60px 0;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* ===================================
   Header
   =================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 32px;
}

.site-branding {
    flex-shrink: 0;
}

.text-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.text-logo span {
    color: var(--primary);
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    position: relative;
}

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

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav .current-menu-item a::after {
    transform: scaleX(1);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="white" stroke-opacity="0.05" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search .search-input-wrapper {
    position: relative;
    display: flex;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-search input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 16px;
    outline: none;
}

.hero-search .search-submit {
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search .search-submit:hover {
    background: var(--primary-dark);
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    padding: 60px 0;
    background: var(--bg-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Featured Posts
   =================================== */
.featured-posts-section {
    margin-bottom: 80px;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.featured-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.featured-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

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

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-card-content {
    padding: 24px;
}

.featured-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.category-badge {
    padding: 4px 12px;
    background: var(--bg-gray);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-light);
}

.featured-card-title {
    margin-bottom: 12px;
}

.featured-card-title a {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 700;
}

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

.featured-card-excerpt {
    color: var(--text-light);
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.read-more svg {
    transition: transform 0.3s ease;
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* ===================================
   Categories Grid
   =================================== */
.categories-section {
    margin-bottom: 80px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border-radius: 50%;
    color: var(--primary);
    margin-bottom: 16px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
}

.category-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.category-count {
    font-size: 14px;
    color: var(--text-light);
}

/* ===================================
   Posts Grid
   =================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.card .thumb {
    height: 200px;
    background: var(--bg-gray);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card .thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3));
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    margin-bottom: 12px;
    font-size: 1.125rem;
}

.card-title a {
    color: var(--dark);
    font-weight: 700;
}

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

.card-excerpt {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: auto;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

/* ===================================
   Newsletter
   =================================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    padding: 60px 40px;
    margin: 80px 0;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-text h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.email-subscribe-form {
    display: flex;
    gap: 12px;
}

.email-subscribe-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
}

/* ===================================
   Pagination
   =================================== */
.pagination-wrapper {
    margin: 60px 0;
}

.pagination-wrapper ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.pagination-wrapper li {
    margin: 0;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}

.pagination-wrapper a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-wrapper .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
/*
 * Blog Page & Single Post Additional Styles
 * Add to main.css or load separately
 */

/* ===================================
   Page Header
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-header-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
}

.page-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   Blog Filters
   =================================== */
.blog-filters {
    display: flex;
    gap: 16px;
    margin: 40px 0;
    padding: 24px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.filter-search {
    flex: 1 1 300px;
}

.blog-search-form {
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: var(--transition);
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    pointer-events: none;
}

.search-input {
    flex: 1;
    padding: 12px 16px 12px 48px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
}

.search-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.filter-category,
.filter-sort {
    flex: 0 1 auto;
}

.category-select,
.sort-select {
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white url('data:image/svg+xml,<svg width="12" height="8" xmlns="http://www.w3.org/2000/svg"><path d="M1 1l5 5 5-5" stroke="%2364748b" stroke-width="2" fill="none" stroke-linecap="round"/></svg>') no-repeat right 12px center;
    font-size: 15px;
    cursor: pointer;
    appearance: none;
    transition: var(--transition);
}

.category-select:hover,
.sort-select:hover {
    border-color: var(--primary);
}

.category-select:focus,
.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* ===================================
   Results Info
   =================================== */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.results-count {
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
}

.clear-filters {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--bg-gray);
    color: var(--text);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.clear-filters:hover {
    background: var(--error);
    color: white;
}

/* ===================================
   Blog Content Layout
   =================================== */
.blog-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.blog-content {
    min-width: 0;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
}

/* ===================================
   No Results
   =================================== */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    margin-bottom: 24px;
    color: var(--text-light);
}

.no-results h2 {
    margin-bottom: 12px;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ===================================
   Sidebar Widgets
   =================================== */
.sidebar-widget {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

/* Popular Posts Widget */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-thumb {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content {
    flex: 1;
    min-width: 0;
}

.popular-post-title {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.popular-post-title a {
    color: var(--dark);
    font-weight: 600;
}

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

.popular-post-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
}

.popular-post-meta .post-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.category-item {
    margin-bottom: 8px;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-gray);
    border-radius: 6px;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.category-item a:hover {
    background: var(--primary);
    color: white;
}

.category-count {
    background: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

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

.tag-item {
    padding: 6px 14px;
    background: var(--bg-gray);
    color: var(--text);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

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

/* ===================================
   Single Post Styles
   =================================== */
.single-article {
    background: white;
}

.article-header {
    padding: 40px 0;
    background: var(--bg-gray);
}

.container.narrow {
    max-width: 800px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

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

/* Article Meta */
.article-meta-top {
    margin-bottom: 20px;
}

.article-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-meta img {
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--dark);
}

.author-role {
    font-size: 13px;
    color: var(--text-light);
}

.meta-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.meta-items-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.social-share-top {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.social-share-bottom {
    margin: 48px 0;
    padding: 32px;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.social-share-bottom h3 {
    margin-bottom: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.linkedin { background: #0077b5; }
.social-btn.whatsapp { background: #25d366; }
.social-btn.email { background: #6366f1; }

/* Featured Image */
.article-featured-image {
    margin: 40px 0;
}

.featured-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    padding: 60px 0;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

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

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

.entry-content img {
    border-radius: var(--radius);
    margin: 2em 0;
}

.entry-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: var(--bg-gray);
    border-left: 4px solid var(--primary);
    font-style: italic;
}

/* Article Tags */
.article-tags {
    margin: 40px 0;
    padding: 24px;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.article-tags h4 {
    margin-bottom: 16px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list a {
    padding: 6px 14px;
    background: white;
    color: var(--text);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quick-info-card {
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.quick-info-card h4 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.quick-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.quick-info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
}

.info-value {
    font-weight: 500;
    color: var(--dark);
    font-size: 14px;
}

.difficulty-beginner { color: var(--success); }
.difficulty-intermediate { color: var(--warning); }
.difficulty-advanced { color: var(--error); }

/* Author Bio */
.author-bio-section {
    padding: 60px 0;
    background: var(--bg-gray);
}

.author-bio-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.author-avatar img {
    border-radius: 50%;
}

.author-bio-name {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.author-bio-description {
    color: var(--text-light);
    margin-bottom: 16px;
}

.author-bio-meta span {
    color: var(--text-light);
    font-size: 14px;
}

/* Related Posts */
.related-posts-section {
    padding: 60px 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--bg-gray);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s ease;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .blog-content-wrapper,
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar,
    .article-sidebar {
        position: static;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-filters {
        flex-direction: column;
    }
    
    .filter-search,
    .filter-category,
    .filter-sort {
        flex: 1 1 100%;
    }
    
    .author-bio-card {
        flex-direction: column;
        text-align: center;
    }
    
    .meta-divider {
        display: none;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .search-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
/* ===================================
   Archive Page Styles
   Add this to assets/css/main.css
   =================================== */

/* Archive Header Section */
.archive-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.archive-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="white" stroke-opacity="0.05" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.archive-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.breadcrumbs-wrapper {
    margin-bottom: 20px;
}

.breadcrumbs-wrapper .breadcrumb-navigation {
    justify-content: center;
}

.breadcrumbs-wrapper a,
.breadcrumbs-wrapper span {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs-wrapper .breadcrumb-item.current {
    color: white;
}

.archive-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.archive-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    line-height: 1.1;
}

.archive-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    line-height: 1.6;
}

.archive-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.archive-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
}

/* Archive Content Layout */
.archive-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.archive-content {
    min-width: 0;
}

.archive-sidebar {
    position: sticky;
    top: 100px;
}

/* Filter Bar */
.archive-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

.results-info {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.archive-sort select {
    padding: 8px 32px 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white url('data:image/svg+xml,<svg width="12" height="8" xmlns="http://www.w3.org/2000/svg"><path d="M1 1l5 5 5-5" stroke="%2364748b" stroke-width="2" fill="none" stroke-linecap="round"/></svg>') no-repeat right 12px center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
}

.archive-sort select:focus {
    outline: none;
    border-color: #0066ff;
}

/* Author Info Widget */
.author-info-card {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-avatar {
    margin-bottom: 16px;
}

.author-avatar img {
    border-radius: 50%;
    border: 4px solid #e2e8f0;
}

.author-name {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.author-bio {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
}

.author-stats {
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #0066ff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Related Categories */
.related-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-categories-list li {
    margin-bottom: 8px;
}

.related-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    color: #334155;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-categories-list a:hover {
    background: #0066ff;
    color: white;
}

.cat-count {
    background: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    margin-bottom: 24px;
    color: #cbd5e1;
}

.no-results h2 {
    margin-bottom: 12px;
}

.no-results p {
    color: #64748b;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .archive-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .archive-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .archive-header-section {
        padding: 40px 0 60px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-filter-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .archive-sort select {
        width: 100%;
    }
}
    .breadcrumb-navigation {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .breadcrumb-list {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .breadcrumb-item {
        display: inline-flex;
        align-items: center;
    }
    
    .breadcrumb-item a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    
    .breadcrumb-item a:hover {
        color: var(--primary, #0066ff);
        text-decoration: underline;
    }
    
    .breadcrumb-item.current {
        font-weight: 600;
    }
    
    .breadcrumb-separator {
        display: inline-flex;
        align-items: center;
        color: currentColor;
        opacity: 0.5;
    }
    
    .breadcrumb-separator svg {
        width: 16px;
        height: 16px;
    }
    .wp-block-code {
    background: #1e1e1e;
    color: #dcdcdc;
    padding: 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: auto;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
    .wp-block-code code {
    font-family: "Fira Code", "Consolas", "Monaco", "Courier New", monospace;
    background: none;
    color: #dcdcdc;
    padding: 0;
    display: block;
    white-space: pre;
}
.search-result-item {
    padding: 24px 0;
    border-bottom: 1px solid #e2e8f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-wrapper {
    display: flex;
    gap: 20px;
}

.search-result-thumb {
    flex: 0 0 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-thumb:hover img {
    transform: scale(1.05);
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
}

.result-type {
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.result-category {
    color: #0066ff;
    font-weight: 500;
}

.result-separator {
    color: #cbd5e1;
}

.search-result-title {
    margin-bottom: 12px;
    font-size: 1.5rem;
    line-height: 1.3;
}

.search-result-title a {
    color: #0f172a;
    font-weight: 700;
    transition: color 0.2s ease;
}

.search-result-title a:hover {
    color: #0066ff;
}

.search-result-excerpt {
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.6;
}

.search-result-excerpt mark {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.search-result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.result-reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

.result-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0066ff;
    font-weight: 600;
    transition: gap 0.2s ease;
}

.result-read-more:hover {
    gap: 8px;
}

@media (max-width: 640px) {
    .search-result-wrapper {
        flex-direction: column;
    }
    
    .search-result-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 180px;
    }
    
    .search-result-title {
        font-size: 1.25rem;
    }
}
.card-thumb-inner img {
    width: 100%;
    height: auto;
    display: block;
}