/*
Theme Name: Zekivo Blog
Theme URI: https://zekivo.com
Author: Zekivo Team
Author URI: https://zekivo.com
Description: Modern gaming blog theme for Zekivo - Your trusted digital game store. Perfect for gaming news, reviews, and deals announcements.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zekivo-blog
Tags: gaming, blog, news, e-commerce, modern, responsive, dark-mode

Zekivo Blog Theme - Gaming News & Updates
*/

/* ===================================
   CSS Variables & Root Styles
=================================== */
:root {
    /* Primary Colors - Matching Zekivo Brand */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #4338ca;
    
    /* Secondary Colors */
    --secondary-color: #f97316;
    --secondary-hover: #ea580c;
    --accent-color: #22c55e;
    --accent-hover: #16a34a;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
    
    /* Spacing */
    --container-width: 1280px;
    --container-padding: 1.5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #1c2128;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: #30363d;
    --border-light: #21262d;
    
    /* Enhanced shadows for dark mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Dark mode specific card styling */
[data-theme="dark"] .post-card {
    background: linear-gradient(145deg, #1c2128 0%, #161b22 100%);
    border-color: #30363d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .post-card:hover {
    background: linear-gradient(145deg, #22272e 0%, #1c2128 100%);
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .post-card-content {
    background: transparent;
}

[data-theme="dark"] .post-card-title a {
    color: #e6edf3;
}

[data-theme="dark"] .post-card-title a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .post-card-excerpt {
    color: #8b949e;
}

/* Dark mode featured card */
[data-theme="dark"] .featured-card {
    border-color: #30363d;
}

/* Dark mode newsletter */
[data-theme="dark"] .newsletter-card {
    background: linear-gradient(145deg, #1c2128 0%, #161b22 100%);
    border-color: #30363d;
}

/* Dark mode section backgrounds */
[data-theme="dark"] .featured-section,
[data-theme="dark"] .latest-section {
    background: #0d1117;
}

/* Dark mode single post */
[data-theme="dark"] .single-post-content {
    background: linear-gradient(145deg, #1c2128 0%, #161b22 100%);
    border-color: #30363d;
}

/* Dark mode footer */
[data-theme="dark"] .site-footer {
    background: #0d1117;
    border-top: 1px solid #30363d;
}

[data-theme="dark"] .footer-main {
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

/* Dark mode footer column separators */
[data-theme="dark"] .footer-column {
    position: relative;
    padding-left: 2rem;
}

[data-theme="dark"] .footer-column::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #30363d 20%, #30363d 80%, transparent);
}

[data-theme="dark"] .footer-brand {
    padding-left: 0;
}

[data-theme="dark"] .footer-brand::before {
    display: none;
}

/* Dark mode tables */
[data-theme="dark"] table {
    border-color: #30363d;
}

[data-theme="dark"] th {
    background: #21262d;
    color: #e6edf3;
}

[data-theme="dark"] td {
    border-color: #30363d;
    background: #161b22;
}

[data-theme="dark"] tr:nth-child(even) td {
    background: #1c2128;
}

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

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

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

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ===================================
   Typography
=================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

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

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ===================================
   Layout & Container
=================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.site-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

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

.header-top {
    background: var(--bg-dark);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left a {
    color: var(--text-muted);
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-top-left a:hover {
    color: var(--primary-light);
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-to-store {
    background: var(--primary-color);
    color: var(--text-white) !important;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.8125rem;
    transition: background var(--transition-fast);
}

.back-to-store:hover {
    background: var(--primary-hover);
    color: var(--text-white) !important;
}

.header-main {
    padding: 1rem 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

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

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.search-form:focus-within {
    border-color: var(--primary-color);
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--text-primary);
    outline: none;
}

.search-form input::placeholder {
    color: var(--text-muted);
}

.search-form button {
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.search-form button:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* ===================================
   Navigation
=================================== */
.main-navigation {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.main-navigation .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
}

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

.nav-menu a .icon {
    font-size: 1.125rem;
}

/* Dropdown Menu */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 50;
}

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

.nav-menu .sub-menu a {
    padding: 0.75rem 1.25rem;
    border-bottom: none;
}

.nav-menu .sub-menu a:hover {
    background: var(--bg-secondary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Mobile Navigation Sidebar
======================================== */
.mobile-navigation {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 9999;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.mobile-navigation.active {
    left: 0;
}

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-title::before {
    content: '\f11b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    color: var(--primary-color);
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Search */
.mobile-search {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mobile-search .search-form {
    display: flex;
    gap: 0.5rem;
}

.mobile-search .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.mobile-search .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.mobile-search .search-submit {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-white);
    cursor: pointer;
    transition: background var(--transition-fast);
}

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

/* Mobile Nav Menu */
.mobile-nav-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
    list-style: none;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu .current-menu-item > a {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.mobile-nav-menu a i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}

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

/* Mobile Submenu */
.mobile-nav-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-secondary);
}

.mobile-nav-menu .sub-menu a {
    padding-left: 3rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.mobile-nav-menu .sub-menu a:hover {
    padding-left: 3.25rem;
}

/* Mobile Nav Footer */
.mobile-nav-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mobile-nav-footer .btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.mobile-nav-footer .btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Theme Toggle in Mobile */
.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mobile-theme-toggle > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

.mobile-theme-toggle > span i {
    color: var(--text-muted);
}

.mobile-theme-toggle .theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-theme-toggle .theme-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.mobile-theme-toggle .theme-toggle i {
    font-size: 1.125rem;
    color: var(--text-primary);
}

/* ===================================
   Hero Section - Modern Gaming Style
=================================== */
.hero-section {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Animated Grid Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

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

/* Glowing Orbs */
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: floatOrb 8s ease-in-out infinite;
}

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

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

/* Glowing secondary orb */
.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: floatOrb2 10s ease-in-out infinite;
    z-index: -1;
}

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

.hero-title {
    color: var(--text-white);
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.hero-tag::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;
}

.hero-tag:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

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

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1.0625rem;
    }
}

/* ===================================
   Featured Posts Slider
=================================== */
.featured-section {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
}

.section-title .icon {
    color: var(--primary-color);
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
}

.view-all-link:hover {
    color: var(--primary-color);
}

.featured-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.featured-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-dark);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.featured-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.featured-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    margin-bottom: 0.75rem;
}

.featured-card-title {
    color: var(--text-white);
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.featured-card-title a {
    color: inherit;
}

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

.featured-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.featured-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ===================================
   Main Content Area
=================================== */
.content-area {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 2rem 0;
}

/* Single Post Full Width (No Sidebar) */
.single .content-area {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

/* Home Page Full Width (No Sidebar) */
.home-content {
    grid-template-columns: 1fr !important;
    max-width: 100%;
}

.home-content .main-content {
    width: 100%;
}

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

@media (max-width: 1200px) {
    .home-content .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-content .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Archive/Category/Search Full Width (No Sidebar) */
.archive-content {
    grid-template-columns: 1fr !important;
    max-width: 100%;
}

.archive-content .main-content {
    width: 100%;
}

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

@media (max-width: 1200px) {
    .archive-content .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-content .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Post Cards
=================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
}

.post-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.post-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-title {
    font-size: 1.0625rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    flex: 1;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.post-card-date-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.post-card-date-info i {
    font-size: 0.875rem;
    color: var(--primary-color);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Post List Style */
.posts-list .post-card {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.posts-list .post-card-thumbnail {
    aspect-ratio: auto;
    height: 100%;
}

/* ===================================
   Sidebar
=================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.widget-title .icon {
    color: var(--primary-color);
}

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

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

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

.popular-post-number {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

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

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

.popular-post-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Categories Widget */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

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

.category-item:hover .category-name,
.category-item:hover .category-count {
    color: var(--text-white);
}

.category-name {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.category-count {
    background: var(--bg-primary);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
}

.newsletter-widget .widget-title {
    color: var(--text-white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-description {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

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

.newsletter-form input {
    padding: 0.875rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
}

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

.newsletter-form button {
    padding: 0.875rem 1.5rem;
    background: var(--secondary-color);
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--secondary-hover);
}

/* Deals Widget */
.deals-widget .deal-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast);
}

.deals-widget .deal-item:last-child {
    margin-bottom: 0;
}

.deals-widget .deal-item:hover {
    background: var(--primary-color);
}

.deals-widget .deal-item:hover * {
    color: var(--text-white) !important;
}

.deal-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-info {
    flex: 1;
}

.deal-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.deal-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deal-price-old {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.deal-price-new {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--accent-color);
}

.deal-discount {
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 700;
}

/* ===================================
   Single Post
=================================== */

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1.25rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 0.875rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.breadcrumb-item::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.625rem;
    color: var(--text-muted);
    margin: 0 0.75rem;
    opacity: 0.5;
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.breadcrumb-item a i {
    font-size: 0.8125rem;
    opacity: 0.7;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Breadcrumb Responsive */
@media (max-width: 768px) {
    .breadcrumb-list {
        font-size: 0.8125rem;
        padding: 0.625rem 0.875rem;
    }
    
    .breadcrumb-item::after {
        margin: 0 0.5rem;
    }
    
    .breadcrumb-item.active {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .breadcrumb-item.active {
        max-width: 100px;
    }
    
    .breadcrumb-item a i {
        display: none;
    }
}

.single-post-header {
    background: var(--bg-primary);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.single-post-header .container {
    max-width: 900px;
    margin: 0 auto;
}

.single-post-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.single-post-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.single-post-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.single-post-author img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

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

.single-post-author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.single-post-author-title {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.single-post-thumbnail {
    margin: 2rem auto 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-height: 500px;
    max-width: 900px;
}

.single-post-thumbnail .container {
    padding: 0;
}

.single-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.single-post-content {
    background: var(--bg-card);
    padding: 2.5rem 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    max-width: 100%;
    margin: 0 auto;
}

.single-post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.single-post-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.single-post-content ul,
.single-post-content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.single-post-content ul li {
    list-style: disc;
}

.single-post-content ol li {
    list-style: decimal;
}

.single-post-content blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.single-post-content pre {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.single-post-content code {
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.875rem;
    color: var(--primary-light);
}

.single-post-content img {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

/* Post Tags */
.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.single-post-tags a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

/* Post Share */
.single-post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.share-label {
    font-weight: 600;
    color: var(--text-primary);
}

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

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
    color: var(--text-white);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.copy-link { background: var(--text-secondary); }

/* Related Posts */
.related-posts {
    margin-top: 3rem;
}

.related-posts-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

/* ===================================
   Comments Section
=================================== */
.comments-section {
    margin-top: 3rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-form {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    background: var(--bg-secondary);
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: border-color var(--transition-fast);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-submit-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background var(--transition-fast);
}

.comment-submit-btn:hover {
    background: var(--primary-hover);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

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

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color var(--transition-fast);
}

.comment-action:hover {
    color: var(--primary-color);
}

/* Comment Replies */
.comment-replies {
    margin-top: 1.5rem;
    padding-left: 2rem;
    border-left: 2px solid var(--border-light);
}

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

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

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

.pagination .prev,
.pagination .next {
    padding: 0 1.25rem;
}

/* ===================================
   Footer
=================================== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    margin-top: 4rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

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

.footer-description {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-column-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

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

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-copyright a {
    color: var(--primary-light);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

.footer-bottom-links a i {
    font-size: 0.8125rem;
    opacity: 0.7;
}

.footer-bottom-links a:hover i {
    opacity: 1;
}

.footer-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .footer-divider {
    background: #30363d;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--primary-light);
}

/* Footer Bottom Responsive */
@media (max-width: 768px) {
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .footer-bottom-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .footer-divider {
        height: 12px;
    }
}

/* ===================================
   Back to Top Button
=================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

/* ===================================
   Archive Pages
=================================== */
.archive-header {
    background: var(--bg-primary);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.archive-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.archive-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.archive-count {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

/* ===================================
   404 Page
=================================== */
.error-404 {
    text-align: center;
    padding: 6rem 0;
}

.error-404-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-404-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ===================================
   Buttons
=================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

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

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

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

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

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* ===================================
   Loading States
=================================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

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

/* ===================================
   Responsive Design
=================================== */
@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-widget {
        grid-column: span 2;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .header-search {
        display: none;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .featured-slider {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-list .post-card {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .newsletter-widget {
        grid-column: span 1;
    }
    
    .single-post-title {
        font-size: 1.75rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .header-top {
        display: none;
    }
    
    .hero-tags {
        gap: 0.5rem;
    }
    
    .hero-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .single-post-share {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .error-404-code {
        font-size: 5rem;
    }
    
    .error-404-actions {
        flex-direction: column;
    }
}

/* ===================================
   Print Styles
=================================== */
@media print {
    .site-header,
    .main-navigation,
    .sidebar,
    .site-footer,
    .back-to-top,
    .single-post-share,
    .comments-section,
    .related-posts {
        display: none !important;
    }
    
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .single-post-content {
        border: none;
        padding: 0;
    }
    
    a {
        color: inherit;
        text-decoration: underline;
    }
}

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

.screen-reader-text:focus {
    background-color: var(--bg-primary);
    clip: auto !important;
    clip-path: none;
    color: var(--text-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   Font Awesome Icon Styling
=================================== */
.widget-title i,
.section-title i,
.footer-column-title i {
    margin-right: 0.5rem;
    font-size: 1em;
}

.header-top-left a i,
.header-top-right a i {
    margin-right: 0.375rem;
}

.footer-links li a i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.7;
}

.footer-social a i {
    font-size: 1.125rem;
}

.post-card-meta i,
.popular-post-meta i,
.featured-card-meta i {
    margin-right: 0.25rem;
    font-size: 0.8125rem;
}

.btn i {
    margin-right: 0.375rem;
}

/* ===================================
   Newsletter Section (Above Footer)
=================================== */
/* ========================================
   Newsletter Section - Light/Dark Mode Support
======================================== */
.newsletter-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.newsletter-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.newsletter-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.newsletter-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(var(--primary-rgb, 99, 102, 241), 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(var(--secondary-rgb, 249, 115, 22), 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.newsletter-badge i {
    font-size: 0.75rem;
}

.newsletter-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.newsletter-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

.newsletter-form-wrapper {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 480px;
}

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

.newsletter-input-group {
    display: flex;
    align-items: stretch;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.newsletter-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 99, 102, 241), 0.1);
}

.newsletter-input-group > i {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
    min-width: 0;
}

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

.newsletter-form input:focus {
    outline: none;
}

.newsletter-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    margin: 0.25rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.newsletter-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.newsletter-submit i {
    transition: transform var(--transition-fast);
    font-size: 0.875rem;
}

.newsletter-submit:hover i {
    transform: translateX(3px);
}

.newsletter-privacy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.newsletter-privacy i {
    color: var(--success-color);
    font-size: 0.75rem;
}

.newsletter-privacy a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: auto;
}

.newsletter-privacy a:hover {
    text-decoration: underline;
}

/* Newsletter Message States */
.newsletter-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

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

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

/* Newsletter Responsive */
@media (max-width: 992px) {
    .newsletter-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
    }
    
    .newsletter-description {
        max-width: 100%;
    }
    
    .newsletter-form-wrapper {
        max-width: 100%;
        width: 100%;
    }
    
    .newsletter-privacy {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .newsletter-privacy a {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .newsletter-section {
        padding: 2.5rem 0;
    }
    
    .newsletter-card {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    
    .newsletter-title {
        font-size: 1.375rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        border-radius: var(--radius-md);
    }
    
    .newsletter-input-group > i {
        display: none;
    }
    
    .newsletter-form input {
        padding: 1rem;
        text-align: center;
    }
    
    .newsletter-submit {
        margin: 0.5rem;
        padding: 1rem;
    }
}

