/*
Theme Name: CybernetLand Child
Template: astra
Version: 2.0.0
Description: Production-ready CybernetLand child theme with full-width layout and optimizations
*/

/* ================================
   READING PROGRESS BAR
   ================================ */
.reading-progress-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4 0%, #0ea5e9 50%, #8b5cf6 100%);
    z-index: 99999 !important;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
}

/* Ensure progress bar is always on top */
body .reading-progress-bar {
    z-index: 99999 !important;
}

/* Override any theme styles */
#page .reading-progress-bar,
.site .reading-progress-bar {
    position: fixed !important;
    top: 0 !important;
    z-index: 99999 !important;
}

/* CRITICAL: Remove ALL spacing between header and content */
.site-header + #content,
.site-header + .site-content,
header + #content,
header + .site-content,
#masthead + #content,
#masthead + .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix header overlap on single posts */
.single .tech-article-wrapper,
.single .tech-article-container {
    margin-top: 0 !important;
    padding-top: 2rem !important;
}

/* Ensure content doesn't hide under fixed header */
body.single #content,
body.single .site-content {
    padding-top: 0 !important;
}

/* Fix for Astra theme header overlap */
.ast-header-sticked .site-content,
.ast-header-sticked #content {
    padding-top: 0 !important;
}

.site-content > *:first-child,
#content > *:first-child {
    margin-top: 0 !important;
}

/* ================================
   VARIABLES & RESET
   ================================ */
:root {
    --primary-color: #06b6d4;
    --primary-dark: #0891b2;
    --secondary-color: #8b5cf6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

/* ================================
   AGGRESSIVE SPACING RESET & PRODUCTION LAYOUT
   ================================ */
* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body,
body.home,
body.front-page,
.site,
#page,
.ast-container,
.ast-separate-container,
#primary,
#content,
.site-content,
.ast-content,
main {
    margin: 0 !important;
    padding: 0 !important;
}

/* PRODUCTION: Force full-width layout for homepage */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.home,
body.front-page {
    width: 100% !important;
    max-width: none !important;
    overflow-x: hidden !important;
}

body.home .site,
body.front-page .site,
body.home #page,
body.front-page #page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

body.home .site-content,
body.front-page .site-content,
body.home #content,
body.front-page #content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Override Astra theme containers */
body.home .ast-container,
body.front-page .ast-container,
body.home .ast-separate-container,
body.front-page .ast-separate-container,
body.cybernetland-homepage .ast-container,
body.full-width-layout .ast-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Additional production layout fixes */
body.cybernetland-homepage,
body.full-width-layout {
    overflow-x: hidden !important;
    width: 100% !important;
}

body.cybernetland-homepage .site,
body.full-width-layout .site,
body.cybernetland-homepage #page,
body.full-width-layout #page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Force all homepage sections to be full-width - FIXED */
.hero-section,
.trending-section,
.featured-section,
.latest-articles-section,
.newsletter-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
    box-sizing: border-box !important;
}

header,
#masthead,
.site-header,
.main-header-bar,
.ast-header-break-point,
.main-header-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove Astra theme default spacing */
.ast-separate-container #primary,
.ast-separate-container #content,
.ast-page-builder-template .site-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Additional layout fixes to prevent white space issues */
.site-main,
.ast-main-header-wrap,
.main-header-bar-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Ensure no elements cause horizontal overflow */
* {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Critical layout fix - prevent any section from causing overflow */
.homepage-section,
.section-wrapper,
.content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Fix any potential container issues */
.wp-site-blocks,
.entry-content,
.wp-block-group {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ================================
   TYPOGRAPHY
   ================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

h1 { 
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}

h2 { 
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.12);
}

h3 { 
    font-size: 1.75rem;
    text-shadow: 0 0 12px rgba(37, 99, 235, 0.1);
}

h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.site-title,
.entry-title {
    font-family: 'Playfair Display', Georgia, serif;
    text-shadow: 0 0 25px rgba(37, 99, 235, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ================================
   LAYOUT & CONTAINER
   ================================ */
.site-content {
    background-color: var(--bg-light);
    padding: 0;
    margin: 0;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-area {
    background-color: transparent;
}

/* ================================
   HERO SECTION - UNIQUE CENTERED DESIGN
   ================================ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: calc(2rem + 80px) 0 2rem;
    margin: 0 !important;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    top: -100px;
    left: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(225deg, #14b8a6, #06b6d4);
    bottom: -100px;
    right: 10%;
    animation-delay: 4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content-box {
    padding: 0 2rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #34d399;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-tag-icon {
    font-size: 1.2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-main-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-action-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.hero-cta-primary:hover::before {
    left: 100%;
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: #34d399;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.7);
    transform: translateY(-3px);
}

.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hero-feature-item:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-5px);
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border-radius: 8px;
    color: #ffffff;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.feature-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.feature-text span {
    font-size: 0.875rem;
    color: #64748b;
}

/* Hero Responsive */
@media (max-width: 992px) {
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-orb-1,
    .hero-orb-2 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: calc(2rem + 80px) 0 2rem;
        min-height: auto;
    }
    
    .admin-bar .hero-section {
        padding-top: calc(2rem + 126px);
    }
    
    .hero-main-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }
    
    .hero-action-row {
        flex-direction: column;
        gap: 0.875rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 28px;
    }
    
    .hero-content-box {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 1.875rem;
    }
    
    .hero-tag {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .hero-features-grid {
        gap: 1rem;
    }
    
    .hero-feature-item {
        padding: 15px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
}

/* ================================
   ULTRA MODERN HEADER STYLES
   ================================ */
.ultra-modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Admin bar adjustments */
.admin-bar .ultra-modern-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .ultra-modern-header {
        top: 46px;
    }
}

/* Body padding to prevent content hiding behind fixed header */
body {
    padding-top: 80px; /* Header height */
}

/* Adjust body padding when admin bar is present */
.admin-bar body {
    padding-top: 112px; /* 32px admin bar + 80px header */
}

@media screen and (max-width: 782px) {
    .admin-bar body {
        padding-top: 126px; /* 46px admin bar + 80px header */
    }
}

/* Mobile header adjustments */
@media (max-width: 768px) {
    .ultra-modern-header {
        height: 70px;
    }
    
    body {
        padding-top: 70px; /* Mobile header height */
    }
    
    .admin-bar body {
        padding-top: 116px; /* 46px admin bar + 70px header */
    }
}

/* Hero section adjustments for fixed header */
.hero-section {
    padding-top: calc(4rem + 80px) !important;
}

/* Additional page element adjustments */
.site-main,
.ast-container,
.entry-content,
.page-header {
    margin-top: 0 !important;
}

/* Ensure breadcrumbs don't hide behind header */
.ast-breadcrumbs-wrapper,
.breadcrumb-wrapper,
.yoast-breadcrumb {
    margin-top: 20px;
}

/* Archive and category page adjustments */
.archive .site-main,
.category .site-main,
.tag .site-main {
    padding-top: 20px;
}

/* Fix for pages with negative margins */
.site-content,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.single-post .site-main,
.page .site-main {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* Ensure first elements don't hide behind header */
.entry-header,
.page-header,
.archive-header,
.taxonomy-header {
    padding-top: 20px !important;
    margin-top: 0 !important;
}

/* Fix for any elements with negative top margins */
*[style*="margin-top: -"] {
    margin-top: 0 !important;
}

/* Admin bar hero adjustments */
.admin-bar .hero-section {
    padding-top: calc(4rem + 112px) !important; /* 32px admin bar + 80px header + 4rem */
}

@media screen and (max-width: 782px) {
    .admin-bar .hero-section {
        padding-top: calc(4rem + 126px) !important; /* 46px admin bar + 80px header + 4rem */
    }
}

/* Dark Mode Header Styles */
body.dark-mode .ultra-modern-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .header-glass-bg {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.03));
}

body.dark-mode .site-name-modern {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .site-tagline {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .logo-glow {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4, #10b981);
}

body.dark-mode .main-navigation .nav-menu a {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .main-navigation .nav-menu a:hover {
    color: #8b5cf6;
}

body.dark-mode .header-actions button {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .header-actions button:hover {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.header-glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02), rgba(118, 75, 162, 0.01));
    pointer-events: none;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    z-index: 2;
}

/* Modern Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-modern {
    position: relative;
    transition: transform 0.3s ease;
}

.logo-icon-modern:hover {
    transform: scale(1.05);
}

.logo-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    border-radius: 16px;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo-icon-modern:hover .logo-glow {
    opacity: 0.3;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.site-name-modern {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.site-tagline {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logo & Branding */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 75px !important;
    overflow: hidden !important;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    max-height: 45px !important;
    max-width: 200px !important;
    overflow: hidden !important;
}

.custom-logo {
    max-height: 45px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    object-fit: contain !important;
    position: static !important;
    display: inline-block !important;
    transition: transform 0.3s ease;
    flex-shrink: 0 !important;
}

.custom-logo:hover {
    transform: scale(1.05);
}

/* Additional logo protection from global image styles */
.site-branding *,
.custom-logo-link *,
.footer-logo * {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure logo images are never affected by optimization styles */
img.custom-logo,
.site-branding img,
.footer-logo img {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

img.custom-logo:hover {
    transform: scale(1.05) !important;
}

/* CybernetLand Logo Styling */
.cybernetland-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-logo-svg {
    height: 65px;
    width: auto;
    max-width: 240px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 3px 12px rgba(6, 182, 212, 0.3));
}

.cybernetland-logo:hover .site-logo-svg {
    filter: drop-shadow(0 6px 20px rgba(6, 182, 212, 0.5));
    transform: translateY(-3px) scale(1.02);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .custom-logo {
        max-height: 35px !important;
        max-width: 150px !important;
    }
    
    .custom-logo-link {
        max-height: 35px !important;
        max-width: 150px !important;
    }
    
    .site-branding {
        max-height: 55px !important;
    }
    
    .site-logo-svg {
        height: 50px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .custom-logo {
        max-height: 30px !important;
        max-width: 120px !important;
    }
    
    .custom-logo-link {
        max-height: 30px !important;
        max-width: 120px !important;
    }
    
    .site-branding {
        max-height: 45px !important;
    }
    
    .site-logo-svg {
        height: 42px;
        max-width: 160px;
    }
}

.site-logo-text {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.site-logo-text:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu,
#primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-menu li,
#primary-menu li {
    position: relative;
}

.nav-menu a,
#primary-menu a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
#primary-menu a:hover,
.nav-menu .current-menu-item > a,
#primary-menu .current-menu-item > a {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

/* Dropdown Menus */
.nav-menu .sub-menu,
#primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-menu li:hover > .sub-menu,
#primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a,
#primary-menu .sub-menu a {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
}

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

.search-toggle,
.mobile-menu-toggle,
.dark-mode-toggle {
    background: transparent;
    border: none;
    color: #475569;
    cursor: pointer;
    padding: 0.625rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.search-toggle:hover,
.dark-mode-toggle:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

/* Dark Mode Toggle Icons */
.dark-mode-toggle .sun-icon,
.dark-mode-toggle .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.dark-mode-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

body.dark-mode .dark-mode-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

body.dark-mode .dark-mode-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #475569;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .hamburger-line {
    background: #2563eb;
}

/* Search Form */
.header-search-form {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.header-search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-submit,
.search-close {
    background: #2563eb;
    border: none;
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-close {
    background: #64748b;
}

.search-close:hover {
    background: #475569;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu,
    #primary-menu {
        gap: 0.25rem;
    }
    
    .nav-menu a,
    #primary-menu a {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
        padding: 0 1.5rem;
    }
    
    .site-name {
        font-size: 1.25rem;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .main-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu,
    #primary-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-menu a,
    #primary-menu a {
        padding: 1rem;
        width: 100%;
    }
    
    .nav-menu .sub-menu,
    #primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(37, 99, 235, 0.03);
        margin-top: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* ================================
   ARTICLE CARDS
   ================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: clamp(2rem, 5vw, 4rem);
    width: 100%;
    max-width: 100%;
}

/* Modern responsive grid for homepage sections */
.homepage-section .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.article-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-radius: clamp(12px, 2vw, 20px);
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 231, 235, 0.8);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Modern card effects */
.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.homepage-section .article-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-radius: clamp(12px, 2vw, 20px);
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 231, 235, 0.8);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    backdrop-filter: blur(10px);
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 10px 20px -5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(37, 99, 235, 0.1);
}

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

.homepage-section .article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 10px 20px -5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(37, 99, 235, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.article-card-image {
    position: relative !important;
    overflow: hidden !important;
    height: 320px !important;
    background-color: var(--bg-light) !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* PRODUCTION FIX: Networking section image styling */
.homepage-section .article-card-image {
    position: relative !important;
    overflow: hidden !important;
    height: 320px !important;
    background-color: #f9fafb !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.article-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    background: #f8f9fa;
    transition: var(--transition);
    display: block !important;
}

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

.article-card-content {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* PRODUCTION FIX: Networking section content styling */
.homepage-section .article-card-content {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: transparent !important;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-card-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
}

.article-card-category:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.5);
}

/* Modern Date Display */
.article-card-date {
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 1vw, 0.5rem);
    color: var(--text-muted);
    font-weight: 500;
}

.article-card-date svg {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-card-date svg {
    opacity: 1;
}

.article-card-title {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 3.85rem !important; /* Consistent height for 2 lines */
    max-height: 3.85rem !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    line-clamp: 2 !important; /* Standard property for compatibility */
    word-wrap: break-word !important;
    hyphens: auto !important;
}

.article-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.08);
}

.article-card-title a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

/* Modern Excerpt */
.article-card-excerpt {
    color: var(--text-light);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.7;
    flex-grow: 1;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modern Footer */
.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: clamp(1rem, 2vw, 1.5rem);
    border-top: 1px solid rgba(229, 231, 235, 0.6);
    margin-top: auto;
}

.article-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.read-more-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* ================================
   SINGLE POST STYLES
   ================================ */
.single-post-header {
    background-color: var(--bg-white);
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.single-post-header .container-custom {
    max-width: 900px;
}

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

.entry-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.95rem;
}

.entry-meta > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-image-container {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f8f9fa;
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
}

/* Single post featured image - ensure full image is shown without cropping */
.single-post .tech-article-featured-image img,
.single .tech-article-featured-image img,
.tech-article-featured-image .single-post-featured {
    object-fit: contain !important;
    object-position: center !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    background: #f8f9fa;
}

.entry-content {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.0625rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

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

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

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

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

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

/* Article Layout with Sidebar */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

.article-main-content {
    min-width: 0;
}

.article-main-content .entry-content {
    margin: 0;
    max-width: none;
}

.article-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 120px;
}

/* Entry Tags */
.entry-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.entry-tags svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.tag-link {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    font-weight: 500;
}

.tag-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Share Section */
.share-section {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.share-section h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.125rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-twitter {
    background-color: #1DA1F2;
    color: white;
}

.share-twitter:hover {
    background-color: #1a8cd8;
    transform: translateY(-2px);
}

.share-facebook {
    background-color: #1877F2;
    color: white;
}

.share-facebook:hover {
    background-color: #1564d4;
    transform: translateY(-2px);
}

.share-linkedin {
    background-color: #0A66C2;
    color: white;
}

.share-linkedin:hover {
    background-color: #084d92;
    transform: translateY(-2px);
}

.share-copy {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.share-copy:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Sidebar Widgets */
.widget {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Author Card */
.author-card {
    text-align: center;
}

.author-card img {
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.author-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.author-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.author-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* Sidebar Posts */
.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.sidebar-post-thumb:hover img {
    transform: scale(1.1);
}

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

.sidebar-post-content h5 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.sidebar-post-content h5 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-post-content h5 a:hover {
    color: var(--primary-color);
}

.sidebar-post-content time {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Related Articles Section */
.related-articles-section {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 2px solid var(--border-color);
}

.related-articles-section .section-title {
    margin-bottom: 2rem;
}

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

/* Comments Wrapper */
.comments-wrapper {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
}

/* Meta Item */
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Single Post Responsive */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-post-header {
        padding: 2rem 0 1.5rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .entry-content {
        padding: 2rem 1.5rem;
    }
    
    .entry-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .comments-wrapper {
        padding: 1.5rem;
    }
}

/* ================================
   ARCHIVE PAGE STYLES
   ================================ */
.archive-header {
    background-color: var(--bg-white);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.archive-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.archive-description {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   FOOTER STYLES
   ================================ */
.site-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #ffffff;
    margin-top: 4rem;
}

.footer-main {
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Footer About/Logo Section */
.footer-about {
    padding-right: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
}

.footer-site-title {
    font-size: 1.5rem;
    margin: 0;
}

.footer-site-title a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

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

.footer-description {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Footer Widget Titles */
.footer-widget-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: #ffffff;
    padding-left: 0.5rem;
}

.footer-menu .post-count {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Newsletter Section */
.footer-newsletter {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-description {
    color: #d1d5db;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-button {
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.newsletter-button svg {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-bottom-content a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-content a:hover {
    color: #ffffff;
}

.copyright,
.footer-credits {
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-about {
        grid-column: 1 / -1;
        padding-right: 0;
    }
    
    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

/* ================================
   SIDEBAR STYLES
   ================================ */
.widget {
    background-color: var(--bg-white);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.widget a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ================================
   PAGINATION
   ================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

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

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .header-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .entry-content {
        padding: 2rem 1.5rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ================================
   HOMEPAGE SECTIONS
   ================================ */
.homepage-section {
    margin-bottom: 4rem;
}

/* Add space between hero and trending section */
.container-custom > .homepage-section:first-child,
.container-custom > section:first-child,
#trending,
section#trending,
.trending-section {
    margin-top: 4rem !important;
    padding-top: 0 !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    position: relative;
    border-bottom: none;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #14b8a6 100%);
    border-radius: 2px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, #10b981 0%, #14b8a6 100%);
    border-radius: 2px;
    opacity: 0.6;
}

.section-title svg {
    color: #10b981;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.4));
    animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.4));
    }
    50% {
        filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.6));
    }
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.view-all-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-all-link:hover {
    gap: 0.75rem;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.view-all-link:hover::before {
    left: 100%;
}

/* Section Header Responsive */
@media (max-width: 768px) {
    .container-custom > .homepage-section:first-child,
    .container-custom > section:first-child,
    #trending,
    section#trending,
    .trending-section {
        margin-top: 3rem !important;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-title svg {
        width: 28px;
        height: 28px;
    }
    
    .section-header::after {
        width: 80px;
        height: 3px;
    }
    
    .view-all-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container-custom > .homepage-section:first-child,
    .container-custom > section:first-child,
    #trending,
    section#trending,
    .trending-section {
        margin-top: 2rem !important;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title::before {
        display: none;
    }
    
    .section-title svg {
        width: 24px;
        height: 24px;
    }
    
    .view-all-link {
        width: 100%;
        justify-content: center;
    }
}

.no-posts-message {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* ================================
   TRENDING SECTION
   ================================ */
.trending-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 4rem;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.trending-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-radius: clamp(16px, 2.5vw, 24px);
    overflow: hidden;
    box-shadow: 
        0 8px 25px -8px rgba(0, 0, 0, 0.12),
        0 4px 12px -4px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 231, 235, 0.6);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.trending-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.18),
        0 16px 32px -8px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(37, 99, 235, 0.15);
}

.trending-number {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1.25rem);
    left: clamp(0.75rem, 2vw, 1.25rem);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    width: clamp(36px, 8vw, 48px);
    height: clamp(36px, 8vw, 48px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    z-index: 10;
    box-shadow: 
        0 8px 24px rgba(37, 99, 235, 0.4),
        0 4px 12px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trending-card:hover .trending-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 32px rgba(37, 99, 235, 0.5),
        0 6px 16px rgba(37, 99, 235, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.trending-image {
    position: relative;
    overflow: hidden;
    height: 260px;
    background-color: var(--bg-light);
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #f8f9fa;
    transition: var(--transition);
}

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

.trending-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trending-category {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

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

.trending-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.trending-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.06);
}

.trending-title a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
}

.trending-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8125rem;
    color: var(--text-light);
}

.trending-date,
.trending-views {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.trending-views {
    color: var(--primary-color);
    font-weight: 600;
}

.trending-meta svg {
    flex-shrink: 0;
}

/* Trending Card Excerpt */
.trending-excerpt {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Trending Statistics */
.trending-stats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.trending-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    transition: var(--transition);
    cursor: help;
    flex: 1;
    min-width: 120px;
}

.trending-stat:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.stat-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.stat-value {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-trend {
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.stat-trend-up {
    color: #10b981;
}

.stat-trend-down {
    color: #ef4444;
}

.stat-trend-neutral {
    color: #6b7280;
}

/* ================================
   SINGLE TREND PAGE STYLES
   ================================ */

/* Trend Statistics Section */
.trend-statistics-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.trend-stats-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    justify-content: center;
}

.trend-stats-title svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.trend-statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.trend-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: help;
    position: relative;
    overflow: hidden;
}

.trend-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trend-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.trend-stat-card:hover::before {
    opacity: 1;
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-card-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.stat-card-trend {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
}

.stat-card-trend.stat-trend-up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.stat-card-trend.stat-trend-down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.stat-card-trend.stat-trend-neutral {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.stat-card-content {
    text-align: center;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-tooltip {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.4;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

/* Featured Trend Badge */
.trend-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
    }
}

.trend-featured-badge svg {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .trend-statistics-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .trend-statistics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trend-stat-card {
        padding: 1.25rem;
    }
    
    .stat-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-card-value {
        font-size: 1.75rem;
    }
    
    .trend-stats-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* ================================
   DARK MODE THEME
   ================================ */
body.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .modern-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .site-name {
    color: #f1f5f9;
}

body.dark-mode .nav-menu a,
body.dark-mode #primary-menu a {
    color: #cbd5e1;
}

body.dark-mode .nav-menu a:hover,
body.dark-mode #primary-menu a:hover,
body.dark-mode .nav-menu .current-menu-item > a,
body.dark-mode #primary-menu .current-menu-item > a {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

body.dark-mode .search-toggle,
body.dark-mode .dark-mode-toggle,
body.dark-mode .mobile-menu-toggle {
    color: #cbd5e1;
}

body.dark-mode .search-toggle:hover,
body.dark-mode .dark-mode-toggle:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

body.dark-mode .hamburger-line {
    background: #cbd5e1;
}

body.dark-mode .mobile-menu-toggle:hover .hamburger-line {
    background: #60a5fa;
}

/* Dark Mode - Hero Section */
body.dark-mode .hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

/* Dark Mode - Content Areas */
body.dark-mode .site-content {
    background-color: #0f172a;
}

body.dark-mode .tech-article-wrapper,
body.dark-mode .tech-breadcrumbs {
    background: #0f172a;
}

body.dark-mode .tech-breadcrumbs {
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .tech-breadcrumbs .breadcrumb a {
    color: #60a5fa;
}

body.dark-mode .tech-article-header,
body.dark-mode .tech-article-layout,
body.dark-mode .tech-article-content {
    background: #1e293b;
}

body.dark-mode .tech-article-title,
body.dark-mode h1, body.dark-mode h2, 
body.dark-mode h3, body.dark-mode h4 {
    color: #f1f5f9;
}

body.dark-mode .tech-article-content p,
body.dark-mode .tech-article-content {
    color: #cbd5e1;
}

body.dark-mode .tech-article-content a {
    color: #60a5fa;
}

body.dark-mode .tech-article-content a:hover {
    color: #93c5fd;
}

body.dark-mode .tech-article-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .tech-author-name {
    color: #f1f5f9;
}

body.dark-mode .tech-author-bio {
    color: #94a3b8;
}

body.dark-mode .tech-article-category,
body.dark-mode .tech-category-badge {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

body.dark-mode .tech-article-tags a {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

body.dark-mode .tech-article-tags a:hover {
    background: #2563eb;
    color: white;
}

body.dark-mode .tech-share-section {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .tech-share-section h4 {
    color: #f1f5f9;
}

/* Dark Mode - Related Articles */
body.dark-mode .tech-related-section {
    background: #1e293b;
}

body.dark-mode .tech-section-title {
    color: #f1f5f9;
}

body.dark-mode .tech-related-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .tech-related-card:hover {
    background: #1e293b;
}

body.dark-mode .tech-related-content h3 a {
    color: #f1f5f9;
}

body.dark-mode .tech-related-content h3 a:hover {
    color: #60a5fa;
}

body.dark-mode .tech-related-meta {
    color: #94a3b8;
}

/* Enhanced dark mode styles for tech-related cards */
body.dark-mode .tech-related-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .tech-related-card:hover {
    background: #334155;
    border-color: #60a5fa;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tech-related-content h3 a {
    color: #f1f5f9;
}

body.dark-mode .tech-related-content h3 a:hover {
    color: #60a5fa;
}

body.dark-mode .tech-category-badge.small {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .tech-category-badge.small:hover {
    background: #60a5fa;
    color: #1e293b;
}

body.dark-mode .tech-related-meta {
    color: #94a3b8;
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .tech-section-title {
    color: #f1f5f9;
}

/* Dark Mode - Modern Trend Statistics */
body.dark-mode .modern-trend-statistics-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .modern-stats-title {
    background: linear-gradient(135deg, #f1f5f9, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .stats-subtitle {
    color: #94a3b8;
}

body.dark-mode .modern-stat-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .modern-stat-card:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

body.dark-mode .stat-icon-container {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: rgba(96, 165, 250, 0.2);
}

body.dark-mode .stat-card-value {
    background: linear-gradient(135deg, #f1f5f9, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .stat-card-label {
    color: #cbd5e1;
}

body.dark-mode .stat-card-tooltip {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

body.dark-mode .summary-item {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .summary-item:hover {
    background: rgba(51, 65, 85, 0.8);
}

body.dark-mode .summary-text {
    color: #cbd5e1;
}

/* Dark mode image backgrounds */
body.dark-mode .article-card-image img,
body.dark-mode .trending-image img,
body.dark-mode .tech-related-image img {
    background: #1e293b;
}

body.dark-mode .article-card-image,
body.dark-mode .trending-image,
body.dark-mode .tech-related-image {
    background: #1e293b;
}

/* ================================
   PRODUCTION FIXES - ALL HOMEPAGE SECTION CARDS
   ================================ */
/* CRITICAL: Force CSS to override all production conflicts */
/* Force consistent styling across all environments */
.homepage-section .articles-grid .article-card {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.homepage-section .articles-grid .article-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.homepage-section .articles-grid .article-card-image {
    position: relative !important;
    overflow: hidden !important;
    height: 320px !important;
    background-color: #f9fafb !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.homepage-section .articles-grid .article-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    background: #f8f9fa !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
}

.homepage-section .articles-grid .article-card:hover .article-card-image img {
    transform: scale(1.05) !important;
}

.homepage-section .articles-grid .article-card-content {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: transparent !important;
}

/* CRITICAL FIX: Article titles causing layout issues */
.homepage-section .articles-grid .article-card-title {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 3.85rem !important; /* Force consistent height for 2 lines */
    max-height: 3.85rem !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    line-clamp: 2 !important; /* Standard property for compatibility */
    word-wrap: break-word !important;
    hyphens: auto !important;
    text-overflow: ellipsis !important;
}

.homepage-section .articles-grid .article-card-title a {
    color: #1f2937 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.homepage-section .articles-grid .article-card-title a:hover {
    color: #2563eb !important;
}

/* CRITICAL FIX: Article excerpts causing layout issues */
.homepage-section .articles-grid .article-card-excerpt {
    color: #6b7280 !important;
    margin-bottom: 1rem !important;
    line-height: 1.6 !important;
    flex-grow: 1 !important;
    height: auto !important;
    min-height: 4.8rem !important; /* Force consistent height for 3 lines */
    max-height: 4.8rem !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    line-clamp: 3 !important;
    word-wrap: break-word !important;
    text-overflow: ellipsis !important;
}

/* CRITICAL FIX: Article meta and footer areas */
.homepage-section .articles-grid .article-card-meta {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    height: 1.5rem !important; /* Fixed height */
}

.homepage-section .articles-grid .article-card-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 1rem !important;
    border-top: 1px solid #e5e7eb !important;
    margin-top: auto !important; /* Push to bottom */
    height: 2.5rem !important; /* Fixed height */
}

/* ================================
   ULTRA-AGGRESSIVE PRODUCTION FIXES
   ================================ */
/* Target ALL possible selectors that could conflict in production */

/* Grid Layout - Maximum Specificity */
body .site-content .homepage-section .articles-grid,
body .ast-container .homepage-section .articles-grid,
body .container .homepage-section .articles-grid,
body .container-custom .homepage-section .articles-grid,
.homepage-section .articles-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    list-style: none !important;
    flex-wrap: nowrap !important;
}

/* Card Structure - Maximum Specificity */
body .site-content .homepage-section .articles-grid .article-card,
body .ast-container .homepage-section .articles-grid .article-card,
body .container .homepage-section .articles-grid .article-card,
body .container-custom .homepage-section .articles-grid .article-card,
.homepage-section .articles-grid .article-card {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: relative !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: none !important;
}

/* Card Images - Maximum Specificity */
body .site-content .homepage-section .articles-grid .article-card-image,
body .ast-container .homepage-section .articles-grid .article-card-image,
body .container .homepage-section .articles-grid .article-card-image,
body .container-custom .homepage-section .articles-grid .article-card-image,
.homepage-section .articles-grid .article-card-image {
    position: relative !important;
    overflow: hidden !important;
    height: 320px !important;
    background-color: #f9fafb !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* Card Content - Maximum Specificity */
body .site-content .homepage-section .articles-grid .article-card-content,
body .ast-container .homepage-section .articles-grid .article-card-content,
body .container .homepage-section .articles-grid .article-card-content,
body .container-custom .homepage-section .articles-grid .article-card-content,
.homepage-section .articles-grid .article-card-content {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: transparent !important;
    height: auto !important;
    min-height: 200px !important;
}

/* ================================
   RESPONSIVE PRODUCTION FIXES
   ================================ */
/* Mobile and Tablet Breakpoints */
@media (max-width: 1200px) {
    body .site-content .homepage-section .articles-grid,
    body .ast-container .homepage-section .articles-grid,
    body .container .homepage-section .articles-grid,
    body .container-custom .homepage-section .articles-grid,
    .homepage-section .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    body .site-content .homepage-section .articles-grid,
    body .ast-container .homepage-section .articles-grid,
    body .container .homepage-section .articles-grid,
    body .container-custom .homepage-section .articles-grid,
    .homepage-section .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    body .site-content .homepage-section .articles-grid .article-card-content,
    body .ast-container .homepage-section .articles-grid .article-card-content,
    body .container .homepage-section .articles-grid .article-card-content,
    body .container-custom .homepage-section .articles-grid .article-card-content,
    .homepage-section .articles-grid .article-card-content {
        padding: 1rem !important;
        min-height: 150px !important;
    }
}

/* ================================
   MODERN RESPONSIVE BREAKPOINTS
   ================================ */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .articles-grid,
    .homepage-section .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
        gap: clamp(1.25rem, 3vw, 2rem);
    }
    
    .trending-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
        gap: clamp(1rem, 2.5vw, 1.75rem);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .articles-grid,
    .homepage-section .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
        gap: clamp(1rem, 4vw, 1.5rem);
        padding: 0 clamp(0.5rem, 2vw, 1rem);
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 3vw, 1.5rem);
        padding: 0 clamp(0.5rem, 2vw, 1rem);
    }
    
    .article-card,
    .homepage-section .article-card,
    .trending-card {
        border-radius: clamp(12px, 3vw, 16px);
    }
    
    .article-card-content {
        padding: clamp(1rem, 4vw, 1.5rem);
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .articles-grid,
    .homepage-section .articles-grid,
    .trending-grid {
        grid-template-columns: 1fr;
        gap: clamp(0.75rem, 3vw, 1.25rem);
        padding: 0 clamp(0.75rem, 3vw, 1rem);
    }
    
    .article-card,
    .homepage-section .article-card,
    .trending-card {
        border-radius: 12px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .article-card-content {
        padding: clamp(0.75rem, 3vw, 1.25rem);
        gap: clamp(0.5rem, 2vw, 0.75rem);
    }
    
    .article-card-title {
        font-size: clamp(1rem, 4vw, 1.25rem);
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .trending-number {
        width: clamp(32px, 8vw, 40px);
        height: clamp(32px, 8vw, 40px);
        font-size: clamp(0.8rem, 3vw, 1rem);
        top: clamp(0.5rem, 2vw, 0.75rem);
        left: clamp(0.5rem, 2vw, 0.75rem);
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .article-card-content {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .article-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-top: 1rem;
    }
}

/* ================================
   PERFORMANCE OPTIMIZATIONS
   ================================ */

/* GPU acceleration for smooth animations */
.article-card,
.homepage-section .article-card,
.trending-card {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .article-card,
    .homepage-section .article-card,
    .trending-card,
    .trending-number,
    .article-card-image img {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    
    .article-card:hover,
    .homepage-section .article-card:hover,
    .trending-card:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .article-card,
    .homepage-section .article-card,
    .trending-card {
        border: 2px solid #000;
        box-shadow: none;
    }
    
    .article-card-category,
    .trending-number {
        border: 2px solid #fff;
    }
}

/* Focus indicators for accessibility */
.article-card:focus-within,
.trending-card:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.article-card-title a:focus,
.trending-title a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ================================
   SINGLE POST RESPONSIVE DESIGN
   ================================ */

/* Article Container */
.tech-article-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.tech-article-container {
    max-width: min(100%, 1200px);
    margin: 0 auto;
    padding: 0 clamp(2rem, 6vw, 4rem); /* Increased side margins */
}

/* Featured Image Responsive */
.tech-article-featured-image {
    width: 100%;
    max-width: 100%;
    margin: 0 0 clamp(0.75rem, 2vw, 1rem) 0;
    border-radius: clamp(12px, 2vw, 20px);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.tech-article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Show full image without cropping */
    max-width: 100%;
}

/* Article Header Responsive */
.tech-article-header {
    padding: clamp(0.75rem, 2vw, 1rem) 0 clamp(1.5rem, 4vw, 2.5rem) 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.tech-article-title {
    font-size: clamp(1.75rem, 5vw, 3rem) !important;
    line-height: 1.2 !important;
    margin: clamp(1rem, 3vw, 1.5rem) 0 !important;
    word-wrap: break-word;
    hyphens: auto;
}

.tech-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: center;
    margin-top: clamp(1rem, 3vw, 1.5rem);
}

.tech-article-author {
    display: flex;
    align-items: flex-start;
    gap: clamp(0.75rem, 2vw, 1rem);
    flex: 1;
    flex-wrap: wrap;
}

.tech-author-details {
    flex: 1;
}

.tech-author-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.tech-author-bio {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0.5rem 0 0.75rem 0;
    font-style: italic;
}

/* Content Layout Responsive */
.tech-article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.tech-article-content {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

/* ================================
   TABLE STYLING - REMOVED
   Using WordPress default table styling
   ================================ */

/* ================================
   SINGLE POST MOBILE RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
    .tech-article-container {
        padding: 0 clamp(1.5rem, 4vw, 2.5rem); /* Increased margins on tablets */
    }
    
    .tech-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .tech-article-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .tech-article-container {
        padding: 0 1.5rem; /* Increased margins on mobile */
    }
    
    .tech-article-header {
        padding: 1.5rem 0;
    }
    
    .tech-article-title {
        font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
        line-height: 1.3 !important;
    }
    
    .tech-article-author {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .tech-author-bio {
        font-size: 0.8rem;
        margin: 0.25rem 0 0.5rem 0;
    }
    
    .tech-article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .tech-article-content h2 {
        font-size: clamp(1.25rem, 4vw, 1.75rem) !important;
        margin: 2rem 0 1rem 0 !important;
    }
    
    .tech-article-content h3 {
        font-size: clamp(1.125rem, 3.5vw, 1.5rem) !important;
        margin: 1.75rem 0 0.75rem 0 !important;
    }
    
    .tech-article-content p {
        margin-bottom: 1.25rem;
    }
    
    .tech-article-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 1.5rem 0;
    }
    
    .tech-article-content pre,
    .tech-article-content code {
        font-size: 0.875rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tech-article-content blockquote {
        margin: 1.5rem 0;
        padding: 1rem;
        border-left: 4px solid var(--primary-color);
        background: rgba(37, 99, 235, 0.05);
        border-radius: 0 8px 8px 0;
    }
}

@media (max-width: 480px) {
    .tech-article-container {
        padding: 0 1.25rem; /* Increased margins on small mobile */
    }
    
    .tech-article-featured-image {
        margin: 0 -0.75rem clamp(0.5rem, 2vw, 0.75rem) -0.75rem;
        border-radius: 0;
    }
    
    .tech-article-header {
        padding: 0.5rem 0 1rem 0;
    }
    
    .tech-article-content {
        font-size: 0.95rem;
    }
}

/* ================================
   REDESIGNED ACHIEVEMENTS SECTION
   ================================ */

/* Modern Achievements Container */
.unified-badges {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: clamp(20px, 3vw, 28px);
    padding: clamp(2rem, 5vw, 3rem);
    margin: clamp(2rem, 5vw, 3rem) 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.3),
        0 10px 20px rgba(118, 75, 162, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.unified-badges::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.unified-badges::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Achievement Title */
.unified-badges h5 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: white;
    margin: 0 0 clamp(1.5rem, 4vw, 2rem) 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* Badges Grid - Horizontal Layout */
.badges-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Individual Badge - Circular Design */
.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: clamp(90px, 12vw, 110px);
    height: clamp(90px, 12vw, 110px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.badge:hover::before {
    opacity: 1;
    animation: borderRotate 2s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badge Icon */
.badge-icon {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Badge Name */
.badge-name {
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    margin: 0;
    transition: all 0.3s ease;
}

/* Locked Badge State */
.badge.locked {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
}

.badge.locked .badge-icon {
    filter: grayscale(100%) brightness(0.6) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    opacity: 0.7;
}

.badge.locked .badge-name {
    color: rgba(255, 255, 255, 0.6);
}

/* Unlocked Badge State */
.badge.unlocked {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.4),
            0 0 40px rgba(255, 215, 0, 0.2);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.3);
    }
}

.badge.unlocked .badge-icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.badge.unlocked .badge-name {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Badge Hover Effects */
.badge:hover {
    transform: translateY(-8px) scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.badge.locked:hover {
    transform: translateY(-4px) scale(0.95);
    background: rgba(255, 255, 255, 0.12);
}

.badge.unlocked:hover {
    transform: translateY(-10px) scale(1.15);
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.6),
        0 0 80px rgba(255, 215, 0, 0.4);
}

/* Achievement Progress Line */
.badges-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    z-index: 1;
    border-radius: 1px;
}

/* Badge Tooltips */
.badge[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease forwards;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes tooltipFadeIn {
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .unified-badges {
        padding: clamp(1.5rem, 4vw, 2rem);
        margin: clamp(1.5rem, 4vw, 2rem) 0;
    }
    
    .badges-grid {
        gap: clamp(0.75rem, 2vw, 1.25rem);
    }
    
    .badge {
        width: clamp(75px, 10vw, 90px);
        height: clamp(75px, 10vw, 90px);
    }
    
    .badge-icon {
        font-size: clamp(1.5rem, 3vw, 1.8rem);
    }
    
    .badge-name {
        font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    }
}

@media (max-width: 480px) {
    .unified-badges {
        padding: clamp(1rem, 3vw, 1.5rem);
        margin: clamp(1rem, 3vw, 1.5rem) 0;
    }
    
    .badges-grid {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .badge {
        width: 70px;
        height: 70px;
    }
    
    .badge-icon {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }
    
    .badge-name {
        font-size: 0.65rem;
        line-height: 1.1;
    }
}

/* Dark Mode Support */
body.dark-mode .unified-badges {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .badge.locked {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .badge.unlocked {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

/* ================================
   ENHANCED FOOTER WITH ICONS
   ================================ */

/* Footer Widget Titles with Icons */
.footer-widget-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    position: relative;
}

.footer-widget-title svg {
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.footer-widget-title:hover svg {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* Enhanced Footer Menu */
.enhanced-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enhanced-footer-menu li {
    margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
}

.enhanced-footer-menu a {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    font-weight: 500;
    padding: clamp(0.25rem, 1vw, 0.5rem);
    border-radius: clamp(8px, 1.5vw, 12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.enhanced-footer-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.enhanced-footer-menu a:hover::before {
    left: 100%;
}

.enhanced-footer-menu a svg {
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.enhanced-footer-menu a:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: #ffffff;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.enhanced-footer-menu a:hover svg {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Post Count Styling */
.enhanced-footer-menu .post-count {
    margin-left: auto;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.enhanced-footer-menu a:hover .post-count {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Enhanced Community Stats */
.community-stats-mini {
    display: flex;
    gap: clamp(1rem, 3vw, 1.5rem);
    margin: clamp(1rem, 3vw, 1.5rem) 0;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    background: rgba(var(--primary-color-rgb), 0.05);
    padding: clamp(0.75rem, 2vw, 1rem);
    border-radius: clamp(8px, 1.5vw, 12px);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    transition: all 0.3s ease;
    flex: 1;
}

.stat-mini:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-mini svg {
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stat-mini:hover svg {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.stat-mini div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-mini strong {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.stat-mini small {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Community Button */
.enhanced-community-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    text-decoration: none;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: clamp(8px, 1.5vw, 12px);
    font-weight: 600;
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(var(--primary-color-rgb), 0.3),
        0 2px 6px rgba(var(--primary-color-rgb), 0.2);
    margin-top: clamp(1rem, 3vw, 1.5rem);
}

.enhanced-community-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.enhanced-community-btn:hover::before {
    left: 100%;
}

.enhanced-community-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 8px 20px rgba(var(--primary-color-rgb), 0.4),
        0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.enhanced-community-btn svg:first-child {
    transition: all 0.3s ease;
}

.enhanced-community-btn svg:last-child {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.enhanced-community-btn:hover svg:first-child {
    transform: scale(1.1);
}

.enhanced-community-btn:hover svg:last-child {
    opacity: 1;
    transform: translateX(4px);
}

/* Footer Responsive Enhancements */
@media (max-width: 768px) {
    .footer-widget-title {
        font-size: 1.1rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .enhanced-footer-menu a {
        padding: 0.25rem;
        gap: 0.5rem;
        font-size: 0.875rem;
    }
    
    .enhanced-footer-menu a:hover {
        transform: translateX(4px);
    }
    
    .community-stats-mini {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .stat-mini {
        padding: 0.75rem;
    }
    
    .enhanced-community-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer-widget-title svg {
        width: 18px;
        height: 18px;
    }
    
    .enhanced-footer-menu a svg {
        width: 14px;
        height: 14px;
    }
    
    .stat-mini svg {
        width: 16px;
        height: 16px;
    }
    
    .enhanced-community-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Dark Mode Support */
body.dark-mode .footer-widget-title {
    color: #ffffff;
}

body.dark-mode .enhanced-footer-menu a {
    color: #ffffff;
}

body.dark-mode .enhanced-footer-menu a:hover {
    background: rgba(var(--primary-color-rgb), 0.15);
    color: #ffffff;
}

body.dark-mode .stat-mini {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-mini:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-mini strong {
    color: #ffffff;
}

body.dark-mode .stat-mini small {
    color: #ffffff;
}

/* ================================
   CACHE BUSTING & FORCE RELOAD
   ================================ */

/* Force CSS reload - Update timestamp when changes made */
/* Last updated: 2025-01-11 04:28:41 */
body::before {
    content: "v2025.01.11.04.28" !important;
    display: none !important;
}

/* Force reload homepage cards */
.homepage-section .articles-grid::before {
    content: "" !important;
    display: none !important;
}

/* Force reload single post styles */
.tech-article-wrapper::before {
    content: "single-post-v2025.01.11" !important;
    display: none !important;
}

/* Table styling removed - using WordPress defaults */

/* Force reload share section */
.tech-share-section::after {
    content: "share-enhanced-v2025.01.11" !important;
    display: none !important;
}

/* Dark Mode - Homepage Sections */
body.dark-mode .homepage-section {
    background: transparent;
}

body.dark-mode .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .section-title {
    color: #f1f5f9;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .section-title svg {
    color: #8b5cf6;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

body.dark-mode .view-all-link {
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

body.dark-mode .view-all-link:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
}

/* Dark Mode - Article Cards */
body.dark-mode .article-card,
body.dark-mode .homepage-section .article-card {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .article-card:hover,
body.dark-mode .homepage-section .article-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

body.dark-mode .article-card-title,
body.dark-mode .homepage-section .article-card-title {
    color: #f1f5f9 !important;
}

body.dark-mode .article-card-excerpt,
body.dark-mode .homepage-section .article-card-excerpt {
    color: #cbd5e1 !important;
}

body.dark-mode .article-card-meta,
body.dark-mode .homepage-section .article-card-meta {
    color: #94a3b8 !important;
}

body.dark-mode .article-card-category,
body.dark-mode .homepage-section .article-card-category {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #c4b5fd !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* Dark Mode - Trending Section */
body.dark-mode .trending-section {
    background: transparent;
}

body.dark-mode .trending-card {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .trending-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

body.dark-mode .trending-number {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4) !important;
    color: white !important;
}

body.dark-mode .trending-title {
    color: #f1f5f9 !important;
}

body.dark-mode .trending-meta {
    color: #94a3b8 !important;
}

/* Dark Mode - No Posts Message */
body.dark-mode .no-posts-message {
    color: #94a3b8 !important;
    background: rgba(139, 92, 246, 0.05) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

/* Dark Mode - Search */
body.dark-mode .header-search-form {
    background: #1e293b;
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .search-field {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-mode .search-field:focus {
    border-color: #60a5fa;
}

body.dark-mode .search-field::placeholder {
    color: #64748b;
}

/* Dark Mode - Trending Section */
body.dark-mode .trending-section {
    background: #1e293b;
}

body.dark-mode .trending-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .trending-title a {
    color: #f1f5f9;
}

body.dark-mode .trending-title a:hover {
    color: #60a5fa;
}

body.dark-mode .trending-excerpt {
    color: #cbd5e1;
}

body.dark-mode .trending-stat {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

body.dark-mode .trending-stat:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .stat-value {
    color: #f1f5f9;
}

body.dark-mode .stat-label {
    color: #94a3b8;
}

/* Dark Mode - Single Trend Page */
body.dark-mode .trend-statistics-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .trend-stats-title {
    color: #f1f5f9;
}

body.dark-mode .trend-stat-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .trend-stat-card:hover {
    border-color: #60a5fa;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .stat-card-icon {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .stat-card-value {
    color: #f1f5f9;
}

body.dark-mode .stat-card-label {
    color: #cbd5e1;
}

body.dark-mode .stat-card-tooltip {
    color: #94a3b8;
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .trend-featured-badge {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.6);
}

/* ================================
   MODERN TREND STATISTICS SECTION
   ================================ */

.modern-trend-statistics-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modern-trend-statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Statistics Section Header */
.stats-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stats-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stats-icon-wrapper {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    position: relative;
}

.stats-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.stats-icon {
    color: white;
    display: block;
}

.modern-stats-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.stats-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

.stats-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
    min-width: 100px;
}

.stats-count {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stats-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Modern Statistics Grid */
.modern-statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.modern-stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.modern-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.modern-stat-card:hover::before {
    opacity: 1;
}

.stat-card-background {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-stat-card:hover .stat-card-background {
    opacity: 1;
}

/* Stat Card Header */
.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.stat-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    border: 2px solid rgba(59, 130, 246, 0.1);
}

.stat-card-icon {
    font-size: 2rem;
    z-index: 2;
}

.icon-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.modern-stat-card:hover .icon-glow {
    opacity: 0.3;
}

/* Trend Indicator */
.trend-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trend-up {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.trend-down {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.trend-neutral {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.trend-arrow {
    font-size: 1.25rem;
    line-height: 1;
}

.trend-text {
    font-size: 0.625rem;
}

/* Stat Card Body */
.stat-card-body {
    text-align: center;
    margin-bottom: 1.5rem;
}

.stat-value-container {
    position: relative;
    margin-bottom: 1rem;
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.value-animation-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.6s ease;
}

.modern-stat-card:hover .value-animation-line {
    opacity: 1;
    transform: scaleX(1);
}

.stat-card-label {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Tooltip */
.stat-card-tooltip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    background: rgba(248, 250, 252, 0.8);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.tooltip-text {
    font-style: italic;
}

/* Progress Indicator */
.stat-card-footer {
    margin-top: auto;
}

.progress-indicator {
    height: 4px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    width: var(--progress);
    transition: width 1s ease;
}

/* Statistics Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.summary-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-trend-statistics-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .stats-section-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .modern-stats-title {
        font-size: 1.875rem;
    }
    
    .modern-statistics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modern-stat-card {
        padding: 1.5rem;
    }
    
    .stat-card-value {
        font-size: 2rem;
    }
    
    .stats-summary {
        grid-template-columns: 1fr;
    }
}

/* ================================
   INTELLIGENT RECOMMENDATIONS STYLING
   ================================ */

/* Loading states */
.recommendations-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.recommendations-loading p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* Recommendations loaded animation */
.recommendations-loaded {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Category-based recommendation badges */
.category-based .tech-category-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.category-based .tech-category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.category-based:hover .tech-category-badge::before {
    left: 100%;
}

/* Enhanced recommendation cards */
.tech-related-card.category-based {
    border: 2px solid transparent;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    position: relative;
    overflow: hidden;
}

.tech-related-card.category-based::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #06b6d4, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-related-card.category-based:hover::before {
    opacity: 1;
}

.tech-related-card.category-based:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* Fallback recommendations styling */
.recommendations-fallback {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.recommendations-fallback p {
    color: var(--text-light);
    margin: 0;
}

/* Differentiate recommended cards from related cards */
.recommended-card {
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.recommended-card::before {
    content: "⭐";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.recommended-badge {
    background: linear-gradient(135deg, var(--primary-color), #60a5fa) !important;
    color: white !important;
    border: none !important;
}

.recommended-badge:hover {
    background: linear-gradient(135deg, #1d4ed8, var(--primary-color)) !important;
    color: white !important;
}

.no-recommendations {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

/* Recommended excerpt styling */
.recommended-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0.75rem 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dark mode for recommended cards */
body.dark-mode .recommended-card {
    border-left-color: #60a5fa;
}

body.dark-mode .no-recommendations {
    color: #94a3b8;
}

body.dark-mode .recommended-excerpt {
    color: #cbd5e1;
}

/* ================================
   TECH RELATED CARDS ENHANCEMENT
   ================================ */

/* Base styles for tech-related cards */
.tech-related-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tech-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.tech-related-image {
    display: block;
    overflow: hidden;
    height: 180px;
    background: #f8f9fa;
}

.tech-related-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    background: #f8f9fa;
    transition: transform 0.3s ease;
    display: block !important;
}

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

.tech-related-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Enhanced title styling */
.tech-related-content h3 {
    margin: 0.75rem 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    flex-grow: 1;
}

.tech-related-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0% 100%;
}

.tech-related-content h3 a:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #60a5fa 100%);
    background-size: 100% 2px;
    padding-bottom: 2px;
}

/* Category badge styling */
.tech-category-badge.small {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.tech-category-badge.small:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Meta information styling */
.tech-related-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

.tech-related-meta span {
    white-space: nowrap;
}

/* Grid layout for related sections */
.tech-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Section titles */
.tech-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.tech-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), #60a5fa);
    border-radius: 2px;
}

/* Dark Mode Transition */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.modern-header,
.tech-article-header,
.tech-article-content,
.tech-related-card,
.article-card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Trending Responsive */
@media (max-width: 768px) {
    .trending-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .trending-section {
        padding: 2rem 1rem;
    }
    
    .trending-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ================================
   UTILITIES
   ================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ================================
   NEWSLETTER POPUP
   ================================ */
.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.newsletter-popup-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.newsletter-popup-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.newsletter-popup-overlay.active .newsletter-popup-modal {
    transform: scale(1) translateY(0);
}

.newsletter-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.newsletter-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.newsletter-close svg {
    width: 20px;
    height: 20px;
}

.newsletter-popup-content {
    padding: 40px 30px;
    text-align: center;
}

.newsletter-icon {
    margin-bottom: 20px;
    color: #2563eb;
}

.newsletter-icon svg {
    animation: bounce 2s infinite;
}

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

.newsletter-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.newsletter-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

.newsletter-form {
    margin-bottom: 20px;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.newsletter-submit {
    padding: 14px 28px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.newsletter-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.newsletter-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-submit-loading .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.newsletter-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.newsletter-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.newsletter-privacy {
    color: #94a3b8;
    margin-bottom: 15px;
}

.newsletter-dont-show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #64748b;
    font-size: 0.9rem;
}

.newsletter-dont-show input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Dark Mode for Newsletter */
body.dark-mode .newsletter-popup-modal {
    background: #1e293b;
}

body.dark-mode .newsletter-title {
    color: #f1f5f9;
}

body.dark-mode .newsletter-description,
body.dark-mode .newsletter-dont-show {
    color: #cbd5e1;
}

body.dark-mode .newsletter-input {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-mode .newsletter-input:focus {
    border-color: #60a5fa;
}

body.dark-mode .newsletter-close {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .newsletter-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* ================================
   ENHANCED SOCIAL SHARE
   ================================ */

/* Share Section Container */
.tech-share-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: clamp(16px, 2vw, 24px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin: clamp(2rem, 5vw, 3rem) 0;
    box-shadow: 
        0 8px 25px -8px rgba(0, 0, 0, 0.12),
        0 4px 12px -4px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.tech-share-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.tech-share-section h4 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 clamp(1rem, 3vw, 1.5rem) 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tech-share-section h4::before {
    content: '📤';
    font-size: 1.2em;
}

.enhanced-share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-top: clamp(1rem, 3vw, 1.5rem);
}

.share-btn-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: clamp(12px, 2vw, 16px);
    text-decoration: none;
    color: white !important;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.share-btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.share-btn-enhanced:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.2),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.share-btn-enhanced:hover::before {
    left: 100%;
}

.share-btn-enhanced:active {
    transform: translateY(-2px) scale(0.98);
}

.share-btn-enhanced svg {
    width: 18px;
    height: 18px;
}

.share-btn-enhanced.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.share-btn-enhanced.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

.share-btn-enhanced.linkedin {
    background: linear-gradient(135deg, #0a66c2 0%, #084e96 100%);
}

.share-btn-enhanced.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
}

.share-btn-enhanced.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.share-btn-enhanced.reddit {
    background: linear-gradient(135deg, #ff4500 0%, #cc3700 100%);
}

.share-btn-enhanced.email {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.share-btn-enhanced.copy {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.share-btn-enhanced.copy.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Share Counter */
.share-counter {
    display: inline-block;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 4px;
}

/* Responsive Newsletter */
@media (max-width: 768px) {
    .newsletter-popup-content {
        padding: 30px 20px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-submit {
        width: 100%;
    }
    
    .enhanced-share-buttons {
        flex-direction: column;
    }
    
    .share-btn-enhanced {
        width: 100%;
        justify-content: center;
    }
}
