/*
Theme Name: TechPolse Theme
Theme URI: https://techpolse.com
Author: TechPolse
Author URI: https://techpolse.com
Description: A modern, professional tech blog theme for WordPress. Clean design with focus on readability and performance.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
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: techpolse
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready

TechPolse Theme - A professional tech blog theme
*/

/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Light Mode Colors */
    --background: #ffffff;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --primary: #3b82f6;
    --primary-foreground: #ffffff;
    --primary-glow: #60a5fa;
    --primary-dark: #2563eb;
    --secondary: #f1f5f9;
    --secondary-foreground: #334155;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #8b5cf6;
    --accent-foreground: #ffffff;
    --accent-glow: #a78bfa;
    --success: #10b981;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --ring: #3b82f6;
    --radius: 1rem;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(241,245,249,0.5) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    --gradient-mesh: radial-gradient(at 40% 20%, hsla(228,100%,74%,0.1) 0px, transparent 50%),
                      radial-gradient(at 80% 0%, hsla(189,100%,56%,0.1) 0px, transparent 50%),
                      radial-gradient(at 0% 50%, hsla(355,100%,93%,0.1) 0px, transparent 50%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
    --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.25);
    --shadow-card-hover: 0 20px 40px -15px rgba(59, 130, 246, 0.2);
}

/* Dark Mode */
.dark {
    --background: #0f172a;
    --foreground: #f1f5f9;
    --card: #1e293b;
    --card-foreground: #f1f5f9;
    --primary: #60a5fa;
    --primary-foreground: #0f172a;
    --primary-glow: #93c5fd;
    --primary-dark: #3b82f6;
    --secondary: #1e293b;
    --secondary-foreground: #cbd5e1;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --accent: #a78bfa;
    --accent-foreground: #0f172a;
    --accent-glow: #c4b5fd;
    --success: #34d399;
    --warning: #fbbf24;
    --border: #334155;
    --input: #334155;
    --ring: #60a5fa;
    
    --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    --gradient-hero: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    --gradient-card: linear-gradient(180deg, rgba(30,41,59,0) 0%, rgba(30,41,59,0.8) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    --gradient-mesh: radial-gradient(at 40% 20%, hsla(228,100%,74%,0.08) 0px, transparent 50%),
                      radial-gradient(at 80% 0%, hsla(189,100%,56%,0.08) 0px, transparent 50%),
                      radial-gradient(at 0% 50%, hsla(355,100%,93%,0.05) 0px, transparent 50%);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(96, 165, 250, 0.2);
    --shadow-card-hover: 0 20px 40px -15px rgba(96, 165, 250, 0.15);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--foreground);
    background-color: var(--background);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2.5rem;
    }
}

/* ============================================
   HEADER - Glass Morphism Style
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.3s ease;
}

.dark .site-header {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

.header-inner {
    display: flex;
    height: 4.5rem;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.site-logo::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    left: -8px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.site-logo:hover::before {
    opacity: 0.15;
    transform: scale(1);
}

.site-logo span {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--foreground);
    transition: all 0.3s ease;
}

.site-logo .accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
}

.nav-link {
    position: relative;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.75rem;
    color: var(--muted-foreground);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--foreground);
}

.nav-link:hover::before {
    opacity: 0.08;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    width: 1.5rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.btn-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-icon:hover {
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}

.btn-icon:hover::before {
    opacity: 0.1;
}

.btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-icon:hover svg {
    transform: scale(1.1);
}

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

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--background);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-nav {
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mobile-nav .nav-link {
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
}

/* Search Modal */
.search-modal {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: fadeSlideDown 0.3s ease;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FEATURED SECTION - Hero Style
   ============================================ */
.featured-section {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    margin-bottom: 4rem;
    min-height: 500px;
    box-shadow: var(--shadow-xl);
}

.featured-image {
    position: absolute;
    inset: 0;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(15, 23, 42, 0.7) 50%, 
        rgba(15, 23, 42, 0.4) 100%);
}

.featured-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0.5;
}

.featured-content {
    position: relative;
    z-index: 10;
    padding: 2.5rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media (min-width: 768px) {
    .featured-content {
        padding: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .featured-content {
        padding: 4.5rem;
    }
}

.featured-inner {
    max-width: 48rem;
}

.featured-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.featured-title a {
    transition: all 0.3s ease;
    background: linear-gradient(transparent 94%, rgba(255,255,255,0.5) 94%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
}

.featured-section:hover .featured-title a {
    background-size: 100% 100%;
}

@media (min-width: 768px) {
    .featured-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .featured-title {
        font-size: 3rem;
    }
}

.featured-excerpt {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .featured-excerpt {
        font-size: 1.125rem;
    }
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}

.meta-item svg {
    width: 1.125rem;
    height: 1.125rem;
    opacity: 0.8;
}

.featured-section:hover .meta-item {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   BADGES - Pill Style with Glow
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.badge svg {
    width: 0.875rem;
    height: 0.875rem;
}

.badge-category {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.4);
}

.badge-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.5);
}

.badge-featured {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-featured:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   BUTTONS - Modern with Animations
   ============================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.875rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn svg {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -5px rgba(59, 130, 246, 0.5);
}

.btn-featured {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn-featured:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   BROWSE CATEGORIES SECTION
   ============================================ */
.categories-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 2rem;
}

.section-title-bar {
    width: 4px;
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.category-card {
    display: block;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeSlideUp 0.5s ease forwards;
    opacity: 0;
}

.category-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-icon {
    transform: scale(1.1);
}

.category-card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.category-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

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

.category-card-count {
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

/* ============================================
   CATEGORY TABS - Animated Pills
   ============================================ */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 3rem;
    padding: 0.5rem;
    background: var(--secondary);
    border-radius: 1rem;
    width: fit-content;
}

.category-tab {
    position: relative;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--muted-foreground);
    border: none;
    cursor: pointer;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.category-tab:hover {
    color: var(--primary);
}

.category-tab:hover::before {
    opacity: 0.08;
}

.category-tab.active {
    background: var(--background);
    color: var(--foreground);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

/* ============================================
   CONTENT GRID
   ============================================ */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 380px;
    }
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   ARTICLE CARD - Premium Look
   ============================================ */
.article-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.article-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-8px);
}

.article-card:hover::before {
    opacity: 1;
}

.article-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.article-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover .article-card-image::after {
    opacity: 1;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

.article-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.article-card-content {
    position: relative;
    padding: 1.5rem;
    z-index: 2;
}

.article-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--card-foreground);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

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

.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.article-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.article-card-meta .meta-item svg {
    width: 0.9rem;
    height: 0.9rem;
    opacity: 0.7;
}

.article-card:hover .article-card-meta .meta-item {
    color: var(--secondary-foreground);
}

/* ============================================
   SIDEBAR - Glass Cards
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    position: relative;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    background: var(--card);
    padding: 1.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-widget:hover::before {
    opacity: 1;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.widget-header svg {
    width: 1.375rem;
    height: 1.375rem;
    color: var(--primary);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--card-foreground);
    letter-spacing: -0.01em;
}

/* Popular Articles Widget */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-article {
    display: flex;
    gap: 1rem;
    padding: 0.875rem;
    border-radius: 0.875rem;
    transition: all 0.3s ease;
    margin: -0.25rem;
}

.popular-article:hover {
    background: var(--secondary);
    transform: translateX(4px);
}

.popular-article-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.3);
}

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

.popular-article-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--card-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    line-height: 1.4;
}

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

.popular-article-views {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

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

.tag-link {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 9999px;
    background: var(--secondary);
    color: var(--secondary-foreground);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.tag-link:hover {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.3);
}

/* Newsletter Widget - Special Styling */
.newsletter-widget {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.newsletter-widget::before {
    opacity: 1 !important;
    background: var(--gradient-primary);
}

.newsletter-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--card-foreground);
    margin-bottom: 0.5rem;
}

.newsletter-description {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 0.875rem;
    border: 1.5px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: var(--muted-foreground);
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* ============================================
   SINGLE ARTICLE STYLES
   ============================================ */
.article-header {
    position: relative;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--background) 50%, var(--secondary) 100%);
    padding: 2rem 0;
}

.article-header-bg {
    display: none;
}

.article-header-content {
    position: relative;
    padding: 2rem 0;
}

.article-header-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .article-header-inner {
        grid-template-columns: 1fr 1fr;
    }
}

.article-header-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.article-header-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.article-header .badge {
    margin-bottom: 1rem;
    display: inline-flex;
}

.article-header-text {
    order: 2;
}

@media (min-width: 1024px) {
    .article-header-text {
        order: 1;
    }
}

.article-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .article-header-title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .article-header-title {
        font-size: 2.5rem;
    }
}

.article-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.article-header-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border-radius: 9999px;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
}

.article-header-meta .meta-item svg {
    color: var(--primary);
    width: 1rem;
    height: 1rem;
}

.article-header-image {
    order: 1;
}

@media (min-width: 1024px) {
    .article-header-image {
        order: 2;
    }
}

/* Article Content */
.article-content-wrapper {
    padding: 1rem 0 4rem 0;
}

.article-main {
    max-width: none;
}

/* Share Buttons - Enhanced Design */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--secondary);
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--foreground);
    margin-right: 0.5rem;
}

.share-buttons .btn-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-buttons .btn-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.4);
}

.share-buttons .btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Twitter/X Button */
.share-buttons .btn-icon.btn-twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

/* Facebook Button */
.share-buttons .btn-icon.btn-facebook:hover {
    background: #4267B2;
    border-color: #4267B2;
    color: white;
}

/* LinkedIn Button */
.share-buttons .btn-icon.btn-linkedin:hover {
    background: #0077B5;
    border-color: #0077B5;
    color: white;
}

/* WhatsApp Button */
.share-buttons .btn-icon.btn-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

/* Copy Link Button */
.share-buttons .btn-icon.btn-copy:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Article Body */
.article-body {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--muted-foreground);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--foreground);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--foreground);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

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

.article-body code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: var(--secondary);
    padding: 0.2em 0.5em;
    border-radius: 0.375rem;
    font-size: 0.875em;
    color: var(--accent);
}

.article-body pre {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.article-body pre code {
    background: none;
    padding: 0;
    color: var(--foreground);
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
}

.article-body img {
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.related-articles-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.75rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .related-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-article-card {
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--card);
    transition: all 0.3s ease;
}

.related-article-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: var(--secondary);
    transform: translateY(-4px);
}

.related-article-card-title {
    font-weight: 600;
    color: var(--card-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    line-height: 1.4;
}

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

.related-article-card-meta {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-top: 0.625rem;
}

/* ============================================
   ARCHIVE/CATEGORY PAGE
   ============================================ */
.archive-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.archive-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .archive-title {
        font-size: 2.5rem;
    }
}

.archive-description {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 600px;
}

/* ============================================
   FOOTER - Modern Style
   ============================================ */
.site-footer {
    position: relative;
    border-top: 1px solid var(--border);
    background: var(--secondary);
    margin-top: 5rem;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: var(--gradient-glow);
    opacity: 0.5;
    pointer-events: none;
}

.footer-content {
    position: relative;
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .site-logo {
    margin-bottom: 1.25rem;
}

.footer-brand-description {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.footer-column-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-link:hover::before {
    width: 1rem;
}

.footer-bottom {
    position: relative;
    padding: 1.75rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 3rem;
}

.error-404-code {
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.error-404-description {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 400px;
}

/* ============================================
   PAGINATION - Modern Pills
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    margin-top: 4rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.875rem;
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.page-numbers:hover {
    background: var(--card);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.page-numbers.current {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.3);
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 1.75rem;
    border-radius: 1rem;
    background: var(--secondary);
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 700;
    color: var(--foreground);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-left: 0.75rem;
}

.comment-content {
    margin-top: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.comment-reply-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* Comment Form */
.comment-form {
    margin-top: 2.5rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border-radius: 0.875rem;
    border: 1.5px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    margin-bottom: 1.25rem;
    outline: none;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
    display: flex;
    gap: 0.75rem;
}

.search-field {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border-radius: 0.875rem;
    border: 1.5px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    outline: none;
    transition: all 0.3s ease;
}

.search-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-submit {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.875rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.4);
}

/* ============================================
   STICKY SIDEBAR
   ============================================ */
@media (min-width: 1024px) {
    .sidebar-sticky {
        position: sticky;
        top: 6rem;
    }
}

/* ============================================
   ANIMATIONS - Advanced
   ============================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Staggered animations for cards */
.articles-grid .article-card:nth-child(1) { animation-delay: 0.1s; }
.articles-grid .article-card:nth-child(2) { animation-delay: 0.2s; }
.articles-grid .article-card:nth-child(3) { animation-delay: 0.3s; }
.articles-grid .article-card:nth-child(4) { animation-delay: 0.4s; }
.articles-grid .article-card:nth-child(5) { animation-delay: 0.5s; }
.articles-grid .article-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.py-8 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted-foreground);
}

/* ============================================
   SCROLLBAR - Custom Styled
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 9999px;
    border: 2px solid var(--secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary-dark), var(--accent));
}

/* ============================================
   WORDPRESS CORE STYLES
   ============================================ */
.alignleft {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

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

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

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

.screen-reader-text:focus {
    background-color: var(--background);
    border-radius: 0.5rem;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--foreground);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 1rem 1.5rem;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--secondary) 25%, var(--muted) 50%, var(--secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

/* ============================================
   SOCIAL ICONS (for future use)
   ============================================ */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--secondary);
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.3);
}

.social-link svg {
    width: 1.125rem;
    height: 1.125rem;
}
