/*
Theme Name: HL2GO Modern
Theme URI: https://hl2go.com
Author: HL2GO Team
Author URI: https://hl2go.com
Description: Moderni gaming community WordPress tema su išskirtiniu dizainu. Lengvai valdoma ir responsive.
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: hl2go-modern
Tags: gaming, modern, dark, responsive, custom-menu, featured-images

This theme is designed for gaming communities.
*/

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

:root {
    --primary-color: #00ff88;
    --secondary-color: #0099ff;
    --accent-color: #ff0066;
    --bg-dark: #0a0e27;
    --bg-darker: #050811;
    --bg-card: #111827;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c4;
    --border-color: #1f2937;
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #0099ff 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* WordPress specific */
.wp-block-group {
    margin-bottom: 2rem;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100%;
    max-width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* WordPress Admin Bar Support */
body.admin-bar .navbar {
    top: 32px;
}

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

/* Mobile: Navbar should be sticky (stays at top when scrolling), not fixed */
@media (max-width: 768px) {
    .navbar {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
    }
    
    body.admin-bar .navbar {
        top: 32px;
    }
    
    @media screen and (max-width: 782px) {
        body.admin-bar .navbar {
            top: 46px;
        }
    }
    
    /* Remove padding-top from hero since navbar is no longer fixed */
    .hero {
        padding-top: 2rem;
    }
    
    body.admin-bar .hero {
        padding-top: 2rem;
    }
    
    @media screen and (max-width: 782px) {
        body.admin-bar .hero {
            padding-top: 2rem;
        }
    }
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 153, 255, 0.1) 0%, transparent 50%);
    overflow: hidden;
    padding-top: 80px;
}

/* WordPress Admin Bar Support for Hero */
body.admin-bar .hero {
    padding-top: 112px; /* 80px navbar + 32px admin bar */
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 136, 0.03) 2px,
            rgba(0, 255, 136, 0.03) 4px
        );
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.glitch {
    position: relative;
    color: var(--primary-color);
    text-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 30px var(--primary-color);
    animation: glow 2s ease-in-out infinite alternate;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff0066;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 #0099ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(54px, 9999px, 77px, 0); }
    40% { clip: rect(28px, 9999px, 87px, 0); }
    60% { clip: rect(42px, 9999px, 69px, 0); }
    80% { clip: rect(15px, 9999px, 99px, 0); }
    100% { clip: rect(38px, 9999px, 85px, 0); }
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px var(--primary-color),
            0 0 20px var(--primary-color),
            0 0 30px var(--primary-color);
    }
    to {
        text-shadow: 
            0 0 20px var(--primary-color),
            0 0 30px var(--primary-color),
            0 0 40px var(--primary-color),
            0 0 50px var(--primary-color);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Content Area
   ============================================ */
.site-content {
    padding-top: 0;
    min-height: calc(100vh - 200px);
}

/* WordPress Admin Bar Support for Site Content */
body.admin-bar .site-content {
    padding-top: 0;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-content {
        padding-top: 0;
    }
}

.page-header {
    background: var(--gradient-dark);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
}

/* Compact header for archives, single posts and pages */
.page-header.archive-header {
    padding: 60px 0 30px;
}

/* Single post and page - even more compact */
.single .page-header.archive-header,
.page .page-header.archive-header {
    padding: 40px 0 20px;
}

/* WordPress Admin Bar Support for Page Header */
body.admin-bar .page-header {
    margin-top: 102px; /* 70px + 32px admin bar */
}

body.admin-bar .page-header.archive-header {
    margin-top: 102px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .page-header {
        margin-top: 116px; /* 70px + 46px admin bar */
    }

    body.admin-bar .page-header.archive-header {
        margin-top: 116px;
    }
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Compact title for archives */
.archive-header .page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Single post and page - even more compact title */
.single .archive-header .page-title,
.page .archive-header .page-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Compact subtitle for archives */
.archive-header .page-subtitle {
    font-size: 1rem;
    margin-top: 0.5rem;
}

.content-area {
    background: var(--bg-dark);
    padding: 80px 0;
}

/* Reduce padding for archive pages (category, tag, etc.) */
.archive .content-area,
.category .content-area,
.tag .content-area,
.search .content-area {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Single post and page - minimal padding */
.single .content-area,
.page .content-area {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Mobile: Single post and page should be full width */
@media (max-width: 768px) {
    .single .content-area,
    .page .content-area {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ============================================
   Content Layout (with Sidebar)
   ============================================ */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
    overflow: visible; /* Allow ads to display fully */
}

.site-main {
    min-width: 0; /* Prevents grid overflow */
    overflow: visible; /* Allow ads to display fully */
}

/* Mobile: All pages should be full width */
@media (max-width: 768px) {
    /* Apply to all page types: single, page, archive, category, tag, search */
    .single .content-wrapper,
    .page .content-wrapper,
    .archive .content-wrapper,
    .category .content-wrapper,
    .tag .content-wrapper,
    .search .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .single .sidebar,
    .page .sidebar,
    .archive .sidebar,
    .category .sidebar,
    .tag .sidebar,
    .search .sidebar {
        display: none; /* Hide sidebar on mobile for all pages */
    }
    
    /* Remove container restrictions for all pages on mobile */
    .single .content-area,
    .page .content-area,
    .archive .content-area,
    .category .content-area,
    .tag .content-area,
    .search .content-area {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Match homepage container padding - keep same padding as homepage */
    .single .content-area .container,
    .page .content-area .container,
    .archive .content-area .container,
    .category .content-area .container,
    .tag .content-area .container,
    .search .content-area .container {
        max-width: 100% !important;
        padding: 0 20px !important; /* Match homepage container padding */
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .single .site-main,
    .page .site-main,
    .archive .site-main,
    .category .site-main,
    .tag .site-main,
    .search .site-main {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .single-post {
        max-width: 100% !important;
        width: 100% !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    .single-post .post-content {
        max-width: 100%;
        width: 100%;
    }
    
    .single-post .post-content p,
    .single-post .post-content h2,
    .single-post .post-content h3,
    .single-post .post-content h4,
    .single-post .post-content h5,
    .single-post .post-content h6,
    .single-post .post-content ul,
    .single-post .post-content ol,
    .single-post .post-content blockquote {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    position: static;
    overflow: visible; /* Allow ads to display fully */
    min-width: 0; /* Prevent grid overflow issues */
}

.widget-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow: visible; /* Allow ads to display fully */
    min-width: 0; /* Prevent flex overflow issues */
}

.widget {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
}

.widget-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

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

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

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

/* ============================================
   Advertisement Containers (Google AdSense Responsive)
   ============================================ */
.ad-container {
    margin: 2rem 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.ad-container:hover {
    /* No hover effects for ad containers */
}

/* Ad after featured image - Fully responsive (AdSense auto-sizing) */
.ad-after-featured {
    margin: 1.5rem auto 2rem auto;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* Ad in sidebar - Fully responsive (AdSense auto-sizing) */
.ad-sidebar {
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* Ad after post content - Fully responsive (AdSense auto-sizing) */
.ad-after-content {
    margin: 2rem auto;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* Google AdSense responsive ad units - Fully auto-sizing */
.ad-container ins.adsbygoogle,
.ad-container .adsbygoogle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
}

/* AdSense iframes - fully responsive, auto-sizing (AdSense controls height) */
.ad-container iframe {
    max-width: 100% !important;
    width: 100% !important;
    display: block;
    margin: 0 auto;
}

/* AdSense images - responsive */
.ad-container img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* AdSense script containers */
.ad-container div[id*="google_ads"],
.ad-container div[class*="adsbygoogle"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
}

/* Responsive: Mobile adjustments */
@media (max-width: 768px) {
    .ad-container {
        margin: 1.5rem 0;
    }
    
    /* Ensure AdSense ads are responsive on mobile (AdSense handles sizing) */
    .ad-container ins.adsbygoogle,
    .ad-container .adsbygoogle,
    .ad-container iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 320px !important; /* AdSense minimum requirement */
    }
}

.widget ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.widget p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.widget p:last-child {
    margin-bottom: 0;
}

.widget a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Archive Search Form */
.archive-search-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.archive-search-form .search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.archive-search-form .search-field {
    flex: 1;
    padding: 0.8rem 1.2rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.archive-search-form .search-field::placeholder {
    color: var(--text-secondary);
}

.archive-search-form .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.archive-search-form .search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    min-width: 50px;
}

.archive-search-form .search-submit svg {
    width: 20px;
    height: 20px;
    stroke: var(--bg-dark);
}

.archive-search-form .search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

.archive-search-form .search-submit:active {
    transform: translateY(0);
}

/* Search widget */
.widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}

.widget_search .search-field {
    flex: 1;
    padding: 10px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.widget_search .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.widget_search .search-submit {
    padding: 10px 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 5px;
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget_search .search-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Calendar widget */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.widget_calendar th {
    background: var(--bg-darker);
    color: var(--primary-color);
    font-weight: 600;
}

.widget_calendar td a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tag cloud widget */
.tagcloud a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin: 0.25rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* ============================================
   Collapsing Categories Widget
   ============================================ */
.widget ul.hl2go-collapsing-categories,
.widget ul.collapsing-categories,
.widget ul[id*="widget-collapscat"] {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul.hl2go-collapsing-categories li,
.widget ul.collapsing-categories li,
.widget ul[id*="widget-collapscat"] li {
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.widget ul.collapsing-categories li:last-child,
.widget ul[id*="widget-collapscat"] li:last-child {
    border-bottom: none;
}

/* Container for category header */
.widget ul.hl2go-collapsing-categories li > .hl2go-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

/* Container for collapsing categories span - Force inline layout */
.widget ul.hl2go-collapsing-categories li > .hl2go-category-header > .hl2go-category-toggle,
.widget ul.hl2go-collapsing-categories li > .hl2go-category-header > .hl2go-category-indicator,
.widget ul.collapsing-categories li > span.collapsing-categories,
.widget ul[id*="widget-collapscat"] li > span.collapsing-categories {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    line-height: normal !important;
    cursor: pointer !important;
}

/* Indicator for categories without children */
.widget ul.hl2go-collapsing-categories li > .hl2go-category-header > .hl2go-category-indicator {
    cursor: default !important;
}

.widget ul.hl2go-collapsing-categories li > .hl2go-category-header > .hl2go-category-indicator .sym {
    color: var(--text-secondary) !important;
    background: transparent !important;
    border: none !important;
    font-size: 1.5rem !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    padding: 0 !important;
    margin-right: 0.5rem !important;
}

.widget ul.hl2go-collapsing-categories li .hl2go-category-link,
.widget ul.hl2go-collapsing-categories li a,
.widget ul.collapsing-categories li a,
.widget ul[id*="widget-collapscat"] li a {
    display: inline-block !important;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0.25rem 0;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    vertical-align: middle !important;
    line-height: normal !important;
    cursor: pointer !important;
}

.widget ul.collapsing-categories li a:hover,
.widget ul[id*="widget-collapscat"] li a:hover {
    color: var(--primary-color);
    background: rgba(0, 255, 136, 0.05);
    padding-left: 0.75rem;
}

.widget ul.collapsing-categories li.collapsing-categories.self > a,
.widget ul[id*="widget-collapscat"] li.collapsing-categories.self > a {
    font-weight: 600;
    color: var(--primary-color);
}

.widget ul.collapsing-categories li.collapsing-categories.expand > a,
.widget ul[id*="widget-collapscat"] li.collapsing-categories.expand > a {
    position: relative;
}

.widget ul.collapsing-categories li.collapsing-categories.collapse > a,
.widget ul[id*="widget-collapscat"] li.collapsing-categories.collapse > a {
    position: relative;
}

/* Expand/Collapse Symbol - Styled (Inline with category name) - Override plugin styles */
.widget ul.hl2go-collapsing-categories .sym,
.widget ul.collapsing-categories .sym,
.widget ul[id*="widget-collapscat"] .sym {
    display: inline-flex !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    line-height: 1 !important;
    text-align: center !important;
    color: var(--primary-color) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    cursor: pointer !important;
    background: rgba(0, 255, 136, 0.1) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    border-radius: 4px !important;
    vertical-align: middle !important;
    float: none !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.widget ul.collapsing-categories li.expand .sym,
.widget ul[id*="widget-collapscat"] li.expand .sym {
    color: var(--text-secondary) !important;
    background: rgba(176, 184, 196, 0.1) !important;
    border-color: rgba(176, 184, 196, 0.2) !important;
}

.widget ul.collapsing-categories li.collapse .sym,
.widget ul[id*="widget-collapscat"] li.collapse .sym {
    color: var(--primary-color) !important;
    background: rgba(0, 255, 136, 0.1) !important;
    border-color: rgba(0, 255, 136, 0.3) !important;
}

.widget ul.collapsing-categories li a:hover .sym,
.widget ul[id*="widget-collapscat"] li a:hover .sym {
    color: var(--primary-color) !important;
    background: rgba(0, 255, 136, 0.2) !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3) !important;
}

/* Nested categories */
.widget ul.hl2go-collapsing-categories .hl2go-category-children,
.widget ul.collapsing-categories ul,
.widget ul[id*="widget-collapscat"] ul {
    margin: 0.5rem 0 0.5rem 1rem;
    padding: 0;
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
}

.widget ul.hl2go-collapsing-categories .hl2go-category-children ul {
    margin: 0;
    padding: 0;
    border-left: none;
    padding-left: 0;
}

.widget ul.collapsing-categories ul li,
.widget ul[id*="widget-collapscat"] ul li {
    border-bottom: none;
    margin: 0.25rem 0;
}

.widget ul.collapsing-categories ul li a,
.widget ul[id*="widget-collapscat"] ul li a {
    padding: 0.5rem 0.5rem;
    font-size: 0.9rem;
}

.widget ul.collapsing-categories ul ul,
.widget ul[id*="widget-collapscat"] ul ul {
    margin-left: 1.5rem;
    border-left-color: rgba(0, 255, 136, 0.3);
}

/* Posts in categories */
.widget ul.collapsing-categories li.collapsing-categories.item a,
.widget ul[id*="widget-collapscat"] li.collapsing-categories.item a {
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.widget ul.collapsing-categories li.collapsing-categories.item a:hover,
.widget ul[id*="widget-collapscat"] li.collapsing-categories.item a:hover {
    color: var(--secondary-color);
    background: rgba(0, 153, 255, 0.05);
}

/* Post count badges - Hide for expandable categories (they have .sym instead) */
.widget ul.collapsing-categories li.expandable a::after,
.widget ul[id*="widget-collapscat"] li.expandable a::after {
    display: none !important;
}

/* Post count badges - Show only for item categories (posts), positioned on the right */
.widget ul.collapsing-categories li.collapsing-categories.item a::after,
.widget ul[id*="widget-collapscat"] li.collapsing-categories.item a::after {
    content: attr(data-count);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-darker);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: auto;
    transition: all 0.3s ease;
    order: 999;
}

.widget ul.collapsing-categories li.collapsing-categories.item a:hover::after,
.widget ul[id*="widget-collapscat"] li.collapsing-categories.item a:hover::after {
    background: var(--gradient-primary);
    color: var(--bg-dark);
}

/* Hide empty post counts */
.widget ul.collapsing-categories li a[data-count="0"]::after,
.widget ul[id*="widget-collapscat"] li a[data-count="0"]::after {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .widget ul.collapsing-categories ul,
    .widget ul[id*="widget-collapscat"] ul {
        margin-left: 0.5rem;
        padding-left: 0.75rem;
    }
}

/* ============================================
   Posts & Pages
   ============================================ */

/* Posts Sorting and Filtering Controls */
.posts-sorting-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.posts-sorting-controls .sort-controls,
.posts-sorting-controls .period-controls,
.posts-sorting-controls .order-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.posts-sorting-controls label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.posts-sorting-controls select {
    padding: 0.6rem 1.2rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.posts-sorting-controls select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.posts-sorting-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.posts-sorting-controls select option {
    background: var(--bg-darker);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin: 2rem 0;
}

.no-posts h2 {
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-posts p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.no-posts .button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gradient-primary);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.no-posts .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

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

.post-card {
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.post-date-badge,
.post-author-badge,
.post-views-badge,
.post-downloads-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-date-badge::before,
.post-author-badge::before,
.post-views-badge::before,
.post-downloads-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: left 0.3s ease, opacity 0.3s ease;
    z-index: 0;
}

.post-date-badge:hover::before,
.post-downloads-badge:hover::before,
.post-author-badge:hover::before,
.post-views-badge:hover::before {
    left: 0;
    opacity: 0.15;
}

.post-date-badge:hover,
.post-author-badge:hover,
.post-views-badge:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.post-date-badge:active,
.post-author-badge:active,
.post-views-badge:active {
    transform: translateY(0);
}

/* Post Views Single */
.post-views-single {
    margin-bottom: 1.5rem;
}

.post-views-single .post-views-badge {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: var(--bg-dark);
    font-weight: 600;
}

/* ============================================
   Category Badges (Modern Style)
   ============================================ */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-left: 1rem;
}

.category-path {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-badge.category-parent {
    background: rgba(176, 184, 196, 0.1);
    border-color: rgba(176, 184, 196, 0.2);
    color: var(--text-secondary);
}

.category-badge.category-current {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--primary-color);
}

.category-separator {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0.2rem;
    opacity: 0.6;
}

.category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: left 0.3s ease, opacity 0.3s ease;
    z-index: 0;
}

.category-badge:hover::before {
    left: 0;
    opacity: 0.15;
}

.category-badge:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.category-badge:active {
    transform: translateY(0);
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.post-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Single Post */
.single-post {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: visible; /* Allow ads to display fully */
}

/* Mobile: Remove horizontal padding from single post */
@media (max-width: 768px) {
    .single-post {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Single Post Featured Image */
.single-post .post-thumbnail-single {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0 2rem 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.single-post .post-thumbnail-single img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.single-post .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .post-content {
    color: var(--text-primary);
    line-height: 1.8;
    overflow: visible; /* Allow ads to display fully */
}

.single-post .post-content p {
    margin-bottom: 1.5rem;
}

.single-post .post-content h2,
.single-post .post-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5rem 0;
}

/* Post Content Lists */
.single-post .post-content ul,
.single-post .post-content ol,
.page .post-content ul,
.page .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-primary);
}

.single-post .post-content ul li,
.single-post .post-content ol li,
.page .post-content ul li,
.page .post-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.single-post .post-content ul li strong,
.single-post .post-content ol li strong,
.page .post-content ul li strong,
.page .post-content ol li strong {
    color: var(--primary-color);
}

/* Post Content Blockquotes - ULTRA FORCE */
.single-post .post-content blockquote,
.page .post-content blockquote,
article blockquote,
.post-content blockquote,
blockquote {
    margin: 2rem 0 !important;
    padding: 1.5rem 2rem !important;
    background: #1a1a2e !important; /* DARK background - FORCED */
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    border-left: 4px solid #00ff88 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-style: normal !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.single-post .post-content blockquote::before,
.page .post-content blockquote::before,
article blockquote::before,
.post-content blockquote::before,
blockquote::before {
    content: '' !important;
    display: none !important; /* Remove decorative quote for better readability */
}

/* Blockquote paragraphs - ULTRA FORCE WHITE */
.single-post .post-content blockquote p,
.page .post-content blockquote p,
article blockquote p,
.post-content blockquote p,
blockquote p {
    margin: 0 0 1rem 0 !important;
    color: #ffffff !important;
    background: transparent !important;
}

.single-post .post-content blockquote p:last-child,
.page .post-content blockquote p:last-child,
article blockquote p:last-child,
.post-content blockquote p:last-child,
blockquote p:last-child {
    margin-bottom: 0 !important;
}

/* Blockquote lists - ULTRA FORCE WHITE */
.single-post .post-content blockquote ul,
.single-post .post-content blockquote ol,
.page .post-content blockquote ul,
.page .post-content blockquote ol,
article blockquote ul,
article blockquote ol,
.post-content blockquote ul,
.post-content blockquote ol,
blockquote ul,
blockquote ol {
    margin: 1rem 0 !important;
    padding-left: 2rem !important;
    color: #ffffff !important; /* Force white for better contrast */
}

.single-post .post-content blockquote li,
.page .post-content blockquote li,
article blockquote li,
.post-content blockquote li,
blockquote li {
    margin-bottom: 0.75rem !important;
    color: #ffffff !important; /* Force white */
    line-height: 1.6 !important;
}

/* Blockquote strong - ULTRA FORCE GREEN */
.single-post .post-content blockquote strong,
.page .post-content blockquote strong,
article blockquote strong,
.post-content blockquote strong,
blockquote strong,
.single-post .post-content blockquote li strong,
.page .post-content blockquote li strong,
article blockquote li strong,
.post-content blockquote li strong,
blockquote li strong,
.single-post .post-content blockquote p strong,
.page .post-content blockquote p strong,
article blockquote p strong,
.post-content blockquote p strong,
blockquote p strong {
    color: #00ff88 !important; /* Bright green for visibility - FORCED */
    font-weight: 700 !important;
    background: transparent !important;
}

/* WordPress Gutenberg Blockquote Overrides */
.wp-block-quote,
.wp-block-quote.is-style-default,
.wp-block-quote.is-style-large,
.entry-content .wp-block-quote,
.has-background {
    background: #1a1a2e !important;
    color: #ffffff !important;
    border-left: 4px solid #00ff88 !important;
    padding: 1.5rem 2rem !important;
    border-radius: 8px !important;
}

.wp-block-quote p,
.wp-block-quote cite {
    color: #ffffff !important;
}

.wp-block-quote strong {
    color: #00ff88 !important;
}

/* Any element with background color override */
.has-pale-cyan-blue-background-color,
.has-vivid-cyan-blue-background-color,
.has-pale-pink-background-color,
.has-vivid-red-background-color,
.has-luminous-vivid-orange-background-color,
.has-luminous-vivid-amber-background-color,
.has-light-green-cyan-background-color,
.has-vivid-green-cyan-background-color,
.has-pale-cyan-blue-background-color,
.has-vivid-cyan-blue-background-color,
.has-vivid-purple-background-color,
[style*="background-color"] blockquote,
[style*="background"] blockquote,
blockquote[style] {
    background-color: #1a1a2e !important;
    background: #1a1a2e !important;
    color: #ffffff !important;
}

/* Override inline styles in blockquote content */
blockquote [style*="color"],
blockquote p[style*="color"],
blockquote li[style*="color"],
blockquote span[style*="color"],
blockquote strong[style*="color"] {
    color: #ffffff !important;
}

blockquote strong[style*="color"],
blockquote p strong[style*="color"],
blockquote li strong[style*="color"] {
    color: #00ff88 !important;
}

/* Post Content Code Blocks */
.single-post .post-content pre,
.page .post-content pre {
    background: #1a1a2e;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.single-post .post-content code,
.page .post-content code {
    background: rgba(0, 255, 136, 0.1);
    color: #ffffff;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.single-post .post-content pre code,
.page .post-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Post Content Strong/Bold */
.single-post .post-content strong,
.page .post-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Post Content Links */
.single-post .post-content a,
.page .post-content a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(0, 153, 255, 0.3);
}

.single-post .post-content a:hover,
.page .post-content a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Post Content Horizontal Rules */
.single-post .post-content hr,
.page .post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 3rem 0;
}

/* Responsive embeds - ONLY for video/media embeds (YouTube, Vimeo, etc.) */
/* Iframes with explicit width/height attributes keep their dimensions */
/* Only apply responsive styles to video/media iframes without explicit dimensions */

/* FIRST: Preserve explicit iframe dimensions (banners, widgets, custom embeds) */
/* If iframe has width or height attribute, DO NOT override - let HTML attributes work */
.single-post .post-content iframe[width][height],
.page .post-content iframe[width][height],
.single-post .post-content iframe[width],
.page .post-content iframe[width],
.single-post .post-content iframe[height],
.page .post-content iframe[height] {
    /* Don't override width/height - let HTML attributes work */
    max-width: 100% !important;
    min-height: auto !important;
    aspect-ratio: unset !important;
    display: inline-block;
    margin: 1rem 0;
}

/* Video/media embeds - make responsive ONLY if no explicit dimensions */
.single-post .post-content iframe[src*="youtube"]:not([width]):not([height]),
.single-post .post-content iframe[src*="youtu.be"]:not([width]):not([height]),
.single-post .post-content iframe[src*="vimeo"]:not([width]):not([height]),
.single-post .post-content iframe[src*="dailymotion"]:not([width]):not([height]),
.single-post .post-content iframe[src*="twitch"]:not([width]):not([height]),
.page .post-content iframe[src*="youtube"]:not([width]):not([height]),
.page .post-content iframe[src*="youtu.be"]:not([width]):not([height]),
.page .post-content iframe[src*="vimeo"]:not([width]):not([height]),
.page .post-content iframe[src*="dailymotion"]:not([width]):not([height]),
.page .post-content iframe[src*="twitch"]:not([width]):not([height]) {
    max-width: 100%;
    width: 100%;
    min-height: 400px;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 1.5rem 0;
    border-radius: 5px;
}

/* Generic iframes WITHOUT explicit dimensions - make responsive (likely video/media) */
.single-post .post-content iframe:not([width]):not([height]):not([style*="position: absolute"]),
.page .post-content iframe:not([width]):not([height]):not([style*="position: absolute"]) {
    max-width: 100%;
    width: 100%;
    min-height: 400px;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 1.5rem 0;
    border-radius: 5px;
}

/* WordPress embed blocks */
.single-post .post-content .wp-block-embed {
    max-width: 100%;
    margin: 1.5rem 0;
}

/* Responsive video wrapper (16:9 aspect ratio) */
.single-post .post-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5rem 0;
}

.single-post .post-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
}

/* Direct iframe elements - wrap them */
/* Exception: iframes with explicit width/height should keep their size */
.single-post .post-content > iframe:not([width]):not([height]),
.single-post .post-content p > iframe:not([width]):not([height]),
.single-post .post-content div > iframe:not([width]):not([height]),
.page .post-content > iframe:not([width]):not([height]),
.page .post-content p > iframe:not([width]):not([height]),
.page .post-content div > iframe:not([width]):not([height]) {
    max-width: 100%;
    width: 100%;
    min-height: 400px;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 1.5rem 0;
    border-radius: 5px;
}

/* YouTube specific - ensure proper height */
.single-post .post-content .youtube-embed,
.single-post .post-content [class*="youtube"] {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5rem 0;
}

.single-post .post-content .youtube-embed iframe,
.single-post .post-content [class*="youtube"] iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
}

/* Generic embed wrapper */
.single-post .post-content .embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5rem 0;
}

.single-post .post-content .embed-wrapper iframe,
.single-post .post-content .embed-wrapper embed,
.single-post .post-content .embed-wrapper object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
}

/* Fallback for video iframes without wrapper - only if no explicit dimensions */
.single-post .post-content iframe[src*="youtube"]:not([width]):not([height]),
.single-post .post-content iframe[src*="youtu.be"]:not([width]):not([height]),
.single-post .post-content iframe[src*="vimeo"]:not([width]):not([height]),
.page .post-content iframe[src*="youtube"]:not([width]):not([height]),
.page .post-content iframe[src*="youtu.be"]:not([width]):not([height]),
.page .post-content iframe[src*="vimeo"]:not([width]):not([height]) {
    min-height: 400px;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-post .post-content iframe,
    .single-post .post-content > iframe,
    .single-post .post-content p > iframe {
        min-height: 250px;
    }
}

/* ============================================
   Tables in Post Content - FORCE VISIBILITY
   ============================================ */
.single-post .post-content table,
.page .post-content table,
article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.single-post .post-content table thead,
.page .post-content table thead,
article table thead {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 153, 255, 0.1) 100%) !important;
    border-bottom: 2px solid var(--primary-color);
}

.single-post .post-content table th,
.page .post-content table th,
article table th {
    padding: 1rem 1.5rem !important;
    text-align: left !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: #ffffff !important; /* Pure white for headers - FORCED */
    background: transparent !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.single-post .post-content table th:last-child,
.page .post-content table th:last-child,
article table th:last-child {
    border-right: none !important;
}

.single-post .post-content table td,
.page .post-content table td,
article table td {
    padding: 1rem 1.5rem !important;
    color: #ffffff !important; /* PURE WHITE - FORCED for maximum visibility */
    background: rgba(17, 24, 39, 0.5) !important; /* Dark background */
    border-bottom: 1px solid var(--border-color) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    vertical-align: top !important;
}

.single-post .post-content table td:last-child,
.page .post-content table td:last-child,
article table td:last-child {
    border-right: none !important;
}

.single-post .post-content table tbody tr,
.page .post-content table tbody tr,
article table tbody tr {
    transition: all 0.3s ease;
    background: rgba(17, 24, 39, 0.3) !important;
}

.single-post .post-content table tbody tr:hover,
.page .post-content table tbody tr:hover,
article table tbody tr:hover {
    background: rgba(0, 255, 136, 0.1) !important;
}

.single-post .post-content table tbody tr:last-child td,
.page .post-content table tbody tr:last-child td,
article table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Strong text in tables - FORCE GREEN */
.single-post .post-content table strong,
.page .post-content table strong,
article table strong,
.single-post .post-content table td strong,
.page .post-content table td strong,
article table td strong {
    color: #00ff88 !important; /* Bright green - FORCED */
    font-weight: 700 !important;
}

/* Links in tables */
.single-post .post-content table a,
.page .post-content table a,
article table a {
    color: var(--secondary-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-post .post-content table a:hover,
.page .post-content table a:hover,
article table a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Code in tables */
.single-post .post-content table code,
.page .post-content table code,
article table code {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: #ffffff !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .single-post .post-content table,
    .page .post-content table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .single-post .post-content table th,
    .page .post-content table th,
    .single-post .post-content table td,
    .page .post-content table td {
        padding: 0.75rem 1rem;
    }
}

/* Striped table variant (if table has a specific class) */
.single-post .post-content table.striped tbody tr:nth-child(odd),
.page .post-content table.striped tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

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

.tags-label {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: left 0.3s ease, opacity 0.3s ease;
    z-index: 0;
}

.tag-badge:hover::before {
    left: 0;
    opacity: 0.15;
}

.tag-badge:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.tag-badge:active {
    transform: translateY(0);
}

/* Post Content Links */
.single-post .post-content a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 153, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.single-post .post-content a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.2);
}

.single-post .post-content a:visited {
    color: var(--secondary-color);
}

.single-post .post-content a:visited:hover {
    color: var(--primary-color);
}

/* Post Navigation (Previous/Next) */
.post-navigation {
    margin: 3rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    min-width: 200px;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-navigation .nav-previous a::before,
.post-navigation .nav-next a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: left 0.3s ease, opacity 0.3s ease;
    z-index: 0;
}

.post-navigation .nav-previous a:hover::before,
.post-navigation .nav-next a:hover::before {
    left: 0;
    opacity: 0.15;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3);
}

.post-navigation .nav-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.post-navigation .nav-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

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

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-next a {
    align-items: flex-end;
}

/* Comments Section */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
    counter-reset: none !important;
}

.comment-list li {
    list-style: none !important;
    counter-increment: none !important;
    position: relative;
}

.comment {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    list-style: none !important;
}

/* Hide ALL comment numbers - comprehensive approach */
.comment::before,
.comment::after,
.comment-list li::before,
.comment-list li::after,
.comment-list .comment::before,
.comment-list .comment::after,
.comment-body::before,
.comment-body::after,
.comment-author::before,
.comment-author::after,
.comment-number,
.comment .comment-number,
.comment-list .comment-number,
.comment-body .comment-number,
#comment-1::before,
#comment-2::before,
#comment-3::before,
#comment-4::before,
#comment-5::before,
#comment-6::before,
#comment-7::before,
#comment-8::before,
#comment-9::before,
#comment-10::before,
[id^="comment-"]::before,
[id^="comment-"]::after,
.comment-list [id^="comment-"]::before,
.comment-list [id^="comment-"]::after,
.comment-list li[id^="comment-"]::before,
.comment-list li[id^="comment-"]::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    text-indent: -9999px !important;
}

/* Hide any text content that might be numbers before comments */
.comment-list li:first-child::before,
.comment-list li:first-child::after {
    display: none !important;
    content: none !important;
}

/* Remove any CSS counter numbering */
.comment-list,
.comment-list li,
.comment,
.comment-body,
.comment-list .comment,
.comment-list .comment-body {
    counter-reset: none !important;
    counter-increment: none !important;
    list-style: none !important;
    list-style-type: none !important;
}

/* Additional hiding for any remaining numbers */
.comment-list li:first-child::before,
.comment-list li:first-child::after,
.comment-list li:nth-child(1)::before,
.comment-list li:nth-child(2)::before,
.comment-list li:nth-child(3)::before,
.comment-list li:nth-child(4)::before,
.comment-list li:nth-child(5)::before {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

.comment:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.comment:hover .comment-author .avatar {
    border-color: var(--primary-color);
}

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

.comment-author .fn a,
.comment-author a.url {
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-author .fn a::before,
.comment-author a.url::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: left 0.3s ease, opacity 0.3s ease;
    z-index: 0;
}

.comment-author .fn a:hover,
.comment-author a.url:hover {
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.comment-author .fn a:hover::before,
.comment-author a.url:hover::before {
    left: 0;
    opacity: 0.15;
}

.comment-author .fn a:active,
.comment-author a.url:active {
    transform: translateY(0);
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.comment-metadata a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.comment-content {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-content a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 153, 255, 0.3);
    transition: all 0.3s ease;
}

.comment-content a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.comment .reply {
    margin-top: 1rem;
}

.comment .reply a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment .reply a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.comment-respond {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.comment-reply-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.comment-reply-title a,
.comment-reply-title a:visited,
.comment-reply-title a:link {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(0, 255, 136, 0.4) !important;
    font-weight: 600 !important;
    padding-bottom: 3px !important;
    display: inline-block;
    position: relative;
    background: linear-gradient(to right, rgba(0, 255, 136, 0.1), transparent);
    padding: 0.3rem 0.8rem !important;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.comment-reply-title a:hover,
.comment-reply-title a:focus {
    color: var(--secondary-color) !important;
    border-bottom-color: var(--secondary-color) !important;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.4) !important;
    background: linear-gradient(to right, rgba(0, 153, 255, 0.15), transparent) !important;
    transform: translateY(-2px);
}

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

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

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

.comment-form .form-submit {
    margin-top: 1rem;
}

.comment-form .submit {
    padding: 12px 30px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 5px;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

/* Logged in user links and comment notes */
.logged-in-as,
.must-log-in,
.comment-notes {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.logged-in-as a,
.must-log-in a,
.comment-notes a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 153, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.logged-in-as a:hover,
.must-log-in a:hover,
.comment-notes a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.2);
}

/* Comment reply links */
.comment-reply-link,
.comment-reply-login {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-primary);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.comment-reply-link:hover,
.comment-reply-login:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

/* Cancel comment reply link */
#cancel-comment-reply-link {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#cancel-comment-reply-link:hover {
    background: var(--accent-color);
    border-color: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 102, 0.3);
}

/* Required fields indicator */
.required {
    color: var(--accent-color);
    font-weight: 600;
}

/* Comment form fields wrapper */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
}

/* Comment form notes */
.comment-form .comment-notes {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.comment-form .comment-notes a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 153, 255, 0.3);
    transition: all 0.3s ease;
}

.comment-form .comment-notes a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Nested Comments */
.comment .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1.5rem;
    border-left: 2px solid var(--border-color);
}

.comment .children .comment {
    background: var(--bg-darker);
    border-color: var(--border-color);
}

/* Responsive Comments */
@media (max-width: 768px) {
    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        width: 100%;
    }

    .post-navigation .nav-next a {
        align-items: flex-start;
    }

    .comment .children {
        padding-left: 1rem;
    }
}

/* ============================================
   Features Section
   ============================================ */
.features {
    background: var(--bg-dark);
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        padding: 2rem;
        border-top: 1px solid var(--border-color);
        transition: left 0.3s ease;
        gap: 1rem;
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }
    
    /* Ensure navbar is relative for absolute positioning of menu */
    .navbar {
        position: relative;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-top: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .features-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Screen Reader Text (Accessibility)
   ============================================ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

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

.pagination .nav-links,
.navigation .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers,
.navigation .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination .page-numbers::before,
.navigation .page-numbers::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: left 0.3s ease, opacity 0.3s ease;
    z-index: 0;
}

.pagination .page-numbers:hover::before,
.pagination .page-numbers.current::before,
.navigation .page-numbers:hover::before,
.navigation .page-numbers.current::before {
    left: 0;
    opacity: 0.15;
}

.pagination .page-numbers:hover,
.navigation .page-numbers:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.pagination .page-numbers.current,
.navigation .page-numbers.current {
    background: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    font-weight: 700;
    position: relative;
}

.pagination .page-numbers.current::after,
.navigation .page-numbers.current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    z-index: 1;
}

.pagination .page-numbers.dots,
.pagination .page-numbers.dots:hover,
.navigation .page-numbers.dots,
.navigation .page-numbers.dots:hover {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: default;
    min-width: auto;
    padding: 0 8px;
}

.pagination .page-numbers.dots::before,
.navigation .page-numbers.dots::before {
    display: none;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next,
.navigation .page-numbers.prev,
.navigation .page-numbers.next {
    font-weight: 600;
    padding: 0 20px;
    min-width: auto;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover,
.navigation .page-numbers.prev:hover,
.navigation .page-numbers.next:hover {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.pagination .page-numbers.prev:disabled,
.pagination .page-numbers.next:disabled,
.pagination .page-numbers.prev.disabled,
.pagination .page-numbers.next.disabled,
.navigation .page-numbers.prev:disabled,
.navigation .page-numbers.next:disabled,
.navigation .page-numbers.prev.disabled,
.navigation .page-numbers.next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination,
    .navigation {
        margin: 2rem 0;
        gap: 0.25rem;
    }

    .pagination .page-numbers,
    .navigation .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.9rem;
    }

    .pagination .page-numbers.prev,
    .pagination .page-numbers.next,
    .navigation .page-numbers.prev,
    .navigation .page-numbers.next {
        padding: 0 16px;
        font-size: 0.85rem;
    }

    .pagination .page-numbers.dots,
    .navigation .page-numbers.dots {
        padding: 0 4px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .pagination .page-numbers,
    .navigation .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.85rem;
    }

    .pagination .page-numbers.prev,
    .pagination .page-numbers.next,
    .navigation .page-numbers.prev,
    .navigation .page-numbers.next {
        padding: 0 12px;
        font-size: 0.8rem;
    }
}


