/*
Theme Name: AMP Titans Blog
Theme URI: https://ampautomations.com
Description: Custom blog theme matching AMP Titans main site design with dark background, neon green accents, and modern tech aesthetic.
Author: AMP Titans
Author URI: https://ampautomations.com
Template: generatepress
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: amptitans
Tags: blog, dark, modern, tech, automation, crm
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg:              #080808;
  --fg:              #EEEEEE;
  --muted:           #999999;
  --primary:         #00FF6C;
  --primary-opaque:  rgba(0,255,108,0.2);
  --radius:          0.75rem;
  --font-sans:       'Inter', sans-serif;
}

/* ==========================================
   GLOBAL STYLES
========================================== */

* {
  box-sizing: border-box;
}

/* Force dark theme - override all WordPress defaults */
body,
#page,
.site,
main,
.site-content,
.content-area,
#primary,
#main,
.site-main,
.inside-article,
.site-container,
.container,
.wrapper,
#content {
  background: var(--bg) !important;
}

/* Remove white backgrounds from all common elements */
article,
aside,
section,
div:not(.nav-toggle):not(.bar),
header:not(.site-header),
footer:not(.site-footer) {
  background: transparent !important;
}

body {
  font-family: var(--font-sans) !important;
  background-color: var(--bg) !important;
  color: var(--fg) !important;
  line-height: 1.6;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Grid Background Effect */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    linear-gradient(90deg, rgba(15, 223, 0, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(15, 223, 0, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  z-index: -1;
}

/* ==========================================
   FORCE DARK BACKGROUNDS - CRITICAL OVERRIDES
========================================== */

/* Override GeneratePress/Astra white backgrounds */
.site-content .content-area,
.site-content .site-main,
.grid-container,
.inside-article,
article.post > *,
article.type-post > *,
.entry-content > *,
.post-content > * {
  background: transparent !important;
}

/* Ensure post containers have dark gradient backgrounds */
article.post,
article.type-post,
article.hentry,
.post-inner,
.article-inner,
.inside-article article {
  background: linear-gradient(145deg, rgba(8,20,15,0.95), rgba(0,15,10,0.98)) !important;
  border: 1px solid rgba(0,255,108,0.3) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,255,108,0.1) !important;
}

/* Force sidebar and widgets to be dark */
.sidebar,
.widget-area,
aside,
#secondary {
  background: transparent !important;
}

.widget,
.widget-wrap,
aside .widget,
.sidebar .widget,
#secondary .widget {
  background: linear-gradient(145deg, rgba(8,20,15,0.95), rgba(0,15,10,0.98)) !important;
  border: 1px solid rgba(0,255,108,0.3) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 12px rgba(0,255,108,0.15) !important;
}

/* Search widget specific */
.widget_search,
.widget_search form,
#searchform {
  background: transparent !important;
}

/* ==========================================
   END CRITICAL OVERRIDES
========================================== */

/* Container */
.site-content,
.container,
.inside-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

#content,
.site-content {
  position: relative;
  z-index: 1;
}

#page,
.site {
  position: relative;
  z-index: 1;
}

/* Links */
a {
  color: var(--primary);
  transition: color 0.3s;
}

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

/* ==========================================
   HEADER STYLING
========================================== */

.site-header,
header {
  position: sticky;
  top: 0;
  z-index: 9999 !important;
  background: rgba(0,0,0,0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,255,108,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 40px rgba(0,255,108,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
  z-index: 10000;
}

.main-title,
.site-title,
.site-logo {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}

.main-title a,
.site-title a,
.site-logo {
  color: var(--primary) !important;
  text-shadow: 0 0 8px var(--primary);
  text-decoration: none !important;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.site-logo .logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary);
}

.site-logo .logo-tagline {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--fg);
}

.site-description {
  color: var(--fg) !important;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Mobile toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}

.nav-toggle .bar {
  display: block;
  height: 0.2rem;
  background: var(--fg);
  border-radius: 4px;
  transition: all 0.3s;
}

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

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* CTA Button */
.btn-nav {
  margin-left: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  border-radius: var(--radius);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 12px var(--primary);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-nav:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--primary);
  color: #000;
}

/* Navigation */
.main-navigation,
.menu-toggle {
  background: transparent !important;
}

.main-navigation {
  position: relative;
  z-index: 10000;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
}

.main-navigation li {
  margin: 0;
}

.main-navigation li + li {
  margin-left: 1.5rem;
}

.main-navigation a,
.menu-toggle {
  color: var(--fg) !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.main-navigation a:hover,
.main-navigation a.active,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
  color: var(--primary) !important;
  background: transparent !important;
}

.main-navigation .sub-menu {
  background: rgba(0,0,0,0.95) !important;
  border: 1px solid rgba(0,255,108,0.3);
  position: absolute;
  z-index: 10001;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-inner {
    justify-content: space-between;
  }
  
  .nav-toggle {
    display: flex !important;
    order: 3;
    margin-left: auto;
  }
  
  .site-logo {
    order: 1;
  }
  
  .main-navigation {
    position: static;
    order: 2;
  }
  
  .main-navigation ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.98) !important;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 1rem 0;
    border-top: 1px solid rgba(0,255,108,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 9998;
  }
  
  .main-navigation ul.open {
    display: flex !important;
  }
  
  .main-navigation li + li {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .main-navigation a {
    padding: 0.5rem 1rem;
    display: block;
  }
  
  .btn-nav {
    display: none !important;
  }
}

/* ==========================================
   BLOG POSTS & ARCHIVES
========================================== */

.blog .site-main,
.archive .site-main,
.search .site-main {
  padding: 4rem 1rem;
  position: relative;
  z-index: 1;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(145deg, rgba(0,255,108,0.05), rgba(0,204,85,0.08));
  border: 1px solid rgba(0,255,108,0.2);
  border-radius: 16px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,255,108,0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.page-title {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0,255,108,0.5);
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Blog Layout Grid */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Featured Post (First/Most Recent) - SQUARE 500x500 */
/* Target GeneratePress structure */
.generate-columns-container > article:first-child,
.site-main > article:first-child,
main > article:first-child,
#main > article:first-child,
.blog-layout .blog-post-featured,
article.blog-post-featured,
.blog-post-featured.post {
  display: grid !important;
  grid-template-columns: 500px 1fr !important;
  grid-template-rows: 500px !important;
  gap: 0 !important;
  background: linear-gradient(145deg, rgba(8,20,15,0.95), rgba(0,15,10,0.98)) !important;
  border: 1px solid rgba(0,255,108,0.4) !important;
  border-radius: 1rem !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,255,108,0.15) !important;
  position: relative !important;
  overflow: visible !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  height: 500px !important;
  max-width: 100% !important;
}

.blog-post-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0,255,108,0.12), transparent 70%);
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.blog-post-featured:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 0 2px var(--primary), 0 0 60px rgba(0,255,108,0.2) !important;
  border-color: var(--primary) !important;
}

.blog-post-featured:hover::before {
  opacity: 1;
}

/* Target both custom and GeneratePress image containers */
.blog-post-featured .post-thumbnail,
.generate-columns-container > article:first-child .post-image,
.site-main > article:first-child .post-image,
main > article:first-child .post-image {
  grid-column: 1 !important;
  grid-row: 1 !important;
  height: 500px !important;
  width: 500px !important;
  min-width: 500px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
}

.blog-post-featured .post-thumbnail img,
.generate-columns-container > article:first-child .post-image img,
.site-main > article:first-child .post-image img,
main > article:first-child .post-image img {
  width: 500px !important;
  height: 500px !important;
  object-fit: cover !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  filter: brightness(0.85) contrast(1.1) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.blog-post-featured:hover .post-thumbnail img {
  transform: scale(1.08) !important;
  filter: brightness(1) contrast(1.2) !important;
}

/* Target both custom and GeneratePress content containers */
.blog-post-featured .post-content-wrapper,
.generate-columns-container > article:first-child .inside-article,
.site-main > article:first-child .inside-article,
main > article:first-child .inside-article {
  grid-column: 2 !important;
  grid-row: 1 !important;
  padding: 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  position: relative !important;
  z-index: 2 !important;
  height: 500px !important;
  overflow: hidden !important;
}

/* Align title and content properly in featured post */
.generate-columns-container > article:first-child .entry-header,
.site-main > article:first-child .entry-header,
main > article:first-child .entry-header,
.blog-post-featured .entry-header {
  padding: 0 !important;
  margin: 0 0 1rem 0 !important;
  width: 100% !important;
}

.generate-columns-container > article:first-child .entry-title,
.site-main > article:first-child .entry-title,
main > article:first-child .entry-title,
.blog-post-featured .entry-title {
  padding: 0 !important;
  margin: 0 0 0.75rem 0 !important;
  font-size: 1.5rem !important;
  line-height: 1.3 !important;
}

.generate-columns-container > article:first-child .entry-meta,
.site-main > article:first-child .entry-meta,
main > article:first-child .entry-meta,
.blog-post-featured .entry-meta {
  padding: 0 !important;
  margin: 0 0 1rem 0 !important;
  font-size: 0.8rem !important;
}

.blog-post-featured .entry-title {
  font-size: 1.5rem;
  padding: 0;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-post-featured .entry-meta {
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.blog-post-featured .entry-summary,
.generate-columns-container > article:first-child .entry-summary,
.site-main > article:first-child .entry-summary,
main > article:first-child .entry-summary {
  padding: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1.25rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  color: rgba(238,238,238,0.9) !important;
}

.blog-post-featured .cat-links {
  margin-bottom: 0.75rem;
}

.blog-post-featured .read-more {
  align-self: flex-start;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

/* Regular Post Cards - Compact with Small Image */
.blog-post-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  background: linear-gradient(145deg, rgba(8,20,15,0.95), rgba(0,15,10,0.98)) !important;
  border: 1px solid rgba(0,255,108,0.3) !important;
  border-radius: 1rem !important;
  padding: 1.25rem !important;
  margin-bottom: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,255,108,0.1) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  align-items: center;
  height: 120px;
}

.blog-post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0,255,108,0.08), transparent 70%);
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.blog-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,255,108,0.4), 0 0 30px rgba(0,255,108,0.15);
  border-color: var(--primary);
}

.blog-post-card:hover::before {
  opacity: 1;
}

.blog-post-card .post-thumbnail {
  width: 120px;
  height: 90px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9) contrast(1.1);
}

.blog-post-card:hover .post-thumbnail img {
  transform: scale(1.1);
  filter: brightness(1) contrast(1.15);
}

.blog-post-card .post-content-wrapper {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.blog-post-card .cat-links,
.blog-post-card .entry-summary,
.blog-post-card .read-more {
  display: none;
}

.blog-post-card .entry-header {
  padding: 0;
  margin: 0;
}

.blog-post-card .entry-title {
  font-size: 1.1rem;
  padding: 0;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-card .entry-meta {
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
  gap: 0.75rem;
}

/* Post Card Styling */
article.post,
article.type-post,
.post,
.hentry,
article,
.entry,
.content article {
  background: linear-gradient(145deg, rgba(8,20,15,0.95), rgba(0,15,10,0.98)) !important;
  border: 1px solid rgba(0,255,108,0.3) !important;
  border-radius: 1rem !important;
  padding: 0 !important;
  margin-bottom: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,255,108,0.1) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.blog-post-card .post-content-wrapper {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

article.post::before,
article.type-post::before,
.blog-post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0,255,108,0.08), transparent 70%),
              linear-gradient(135deg, rgba(0,255,108,0.03), transparent 60%);
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

article.post:hover,
article.type-post:hover,
.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,255,108,0.4), 0 0 40px rgba(0,255,108,0.15);
  border-color: var(--primary);
}

article.post:hover::before,
article.type-post:hover::before,
.blog-post-card:hover::before {
  opacity: 1;
}

/* Post Title */
.entry-title,
.post-title,
h1.entry-title,
h2.entry-title {
  color: #fff !important;
  font-weight: 700;
  margin: 0 0 1rem 0;
  padding: 2rem 2rem 0 2rem;
  position: relative;
  z-index: 2;
  font-size: 2rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Override padding for first article (featured post) */
.generate-columns-container > article:first-child .entry-title,
.site-main > article:first-child .entry-title,
main > article:first-child .entry-title,
.blog-post-featured .entry-title {
  padding: 0 !important;
  margin: 0 0 0.75rem 0 !important;
  font-size: 1.5rem !important;
  line-height: 1.3 !important;
}

.entry-title a,
.post-title a {
  color: #fff !important;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--primary), #00cc55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.entry-title a:hover,
.post-title a:hover {
  -webkit-text-fill-color: var(--primary);
  filter: brightness(1.2);
}

/* Single Post Title */
.single .entry-title {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  padding: 3rem 2rem 0 2rem;
  position: relative;
  z-index: 2;
}

/* Post Meta */
.entry-meta,
.post-meta,
.posted-on,
.byline {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.875rem;
  margin-bottom: 0;
  padding: 0.5rem 2rem 1rem 2rem;
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Override padding for first article (featured post) */
.generate-columns-container > article:first-child .entry-meta,
.site-main > article:first-child .entry-meta,
main > article:first-child .entry-meta,
.blog-post-featured .entry-meta {
  padding: 0 !important;
  margin: 0 0 1rem 0 !important;
  font-size: 0.8rem !important;
}

/* Hide author in featured post */
.generate-columns-container > article:first-child .entry-meta .author,
.generate-columns-container > article:first-child .entry-meta .byline,
.site-main > article:first-child .entry-meta .author,
.site-main > article:first-child .entry-meta .byline,
main > article:first-child .entry-meta .author,
main > article:first-child .entry-meta .byline,
.blog-post-featured .entry-meta .author,
.blog-post-featured .entry-meta .byline {
  display: none !important;
}

.entry-meta a,
.post-meta a {
  color: var(--primary) !important;
  text-decoration: none;
  transition: all 0.3s;
}

.entry-meta a:hover,
.post-meta a:hover {
  color: #fff !important;
  text-shadow: 0 0 8px var(--primary);
}

/* Post Content */
.entry-content,
.post-content,
.entry-summary {
  color: rgba(238,238,238,0.9) !important;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  padding: 1.5rem 2rem 2rem 2rem;
  font-size: 1.05rem;
}

.entry-content p,
.post-content p,
.entry-summary p {
  margin-bottom: 1.5rem;
  color: rgba(238,238,238,0.9) !important;
}

.entry-content a,
.post-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,255,108,0.3);
  transition: all 0.3s;
}

.entry-content a:hover,
.post-content a:hover {
  color: #fff;
  border-bottom-color: var(--primary);
  text-shadow: 0 0 8px rgba(0,255,108,0.3);
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: #fff !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }

/* Featured Image */
.post-image,
.featured-image,
.post-thumbnail {
  width: 100%;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9) contrast(1.1);
}

article.post:hover .post-thumbnail img,
article.type-post:hover .post-thumbnail img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.15);
}

.post-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  pointer-events: none;
}

/* ==========================================
   BUTTONS & CTAs
========================================== */

.btn,
.button,
.wp-block-button__link,
.read-more,
.more-link,
input[type="submit"],
button[type="submit"] {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary), #00CC55) !important;
  color: var(--bg) !important;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,255,108,0.3);
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}

.btn::before,
.button::before,
.wp-block-button__link::before,
.read-more::before,
.more-link::before,
input[type="submit"]::before,
button[type="submit"]::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.btn:hover,
.button:hover,
.wp-block-button__link:hover,
.read-more:hover,
.more-link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  color: var(--bg) !important;
  box-shadow: 0 8px 30px rgba(0,255,108,0.5);
  background: linear-gradient(135deg, #00FF6C, #00E660) !important;
}

.btn:hover::before,
.button:hover::before,
.wp-block-button__link:hover::before,
.read-more:hover::before,
.more-link:hover::before,
input[type="submit"]:hover::before,
button[type="submit"]:hover::before {
  left: 100%;
}

/* ==========================================
   SIDEBAR & WIDGETS
========================================== */

.sidebar,
.widget-area {
  margin-top: 2rem;
  background: transparent !important;
}

.widget,
aside .widget,
.sidebar .widget {
  background: linear-gradient(145deg, rgba(8,20,15,0.95), rgba(0,15,10,0.98)) !important;
  border: 1px solid rgba(0,255,108,0.3) !important;
  border-radius: var(--radius) !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 12px rgba(0,255,108,0.15) !important;
}

.widget-title,
.widgettitle {
  color: #fff !important;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  font-size: 1.25rem;
}

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

.widget li {
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  position: relative;
}

.widget li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5em;
  height: 0.5em;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--primary);
}

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

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

/* ==========================================
   CATEGORIES & TAGS
========================================== */

.cat-links,
.tags-links,
.tag-links {
  display: block;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.cat-links a,
.tags-links a,
.tag-links a,
.tag,
.category-badge,
.taxonomy-links a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(0,255,108,0.1), rgba(0,204,85,0.15));
  border: 1px solid rgba(0,255,108,0.4);
  border-radius: 20px;
  color: var(--primary) !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cat-links a::before,
.tags-links a::before,
.tag-links a::before,
.tag::before,
.category-badge::before,
.taxonomy-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,255,108,0.3), transparent);
  transition: left 0.5s;
}

.cat-links a:hover,
.tags-links a:hover,
.tag-links a:hover,
.tag:hover,
.category-badge:hover {
  background: linear-gradient(135deg, rgba(0,255,108,0.25), rgba(0,204,85,0.3));
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,255,108,0.3);
}

.cat-links a:hover::before,
.tags-links a:hover::before,
.tag-links a:hover::before,
.tag:hover::before,
.category-badge:hover::before,
.taxonomy-links a:hover::before {
  left: 100%;
}

/* ==========================================
   PAGINATION
========================================== */

.pagination,
.nav-links,
.paging-navigation {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span,
.page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  color: var(--fg) !important;
  text-decoration: none;
  transition: all 0.3s;
  min-width: 40px;
  text-align: center;
}

.pagination a:hover,
.nav-links a:hover,
.page-numbers:hover {
  background: var(--primary);
  color: #000 !important;
  box-shadow: 0 0 12px var(--primary);
}

.pagination .current,
.nav-links .current,
.page-numbers.current {
  background: var(--primary);
  color: #000 !important;
  box-shadow: 0 0 12px var(--primary);
  font-weight: 700;
}

/* Post Navigation */
.post-navigation {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 2px solid rgba(0,255,108,0.3);
  border-bottom: 2px solid rgba(0,255,108,0.3);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-navigation a {
  flex: 1;
  padding: 1rem;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(0,255,108,0.3);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s;
}

.post-navigation a:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0,255,108,0.3);
}

/* ==========================================
   FOOTER
========================================== */

.site-footer,
footer.site-footer {
  background: rgba(0,0,0,0.9) !important;
  border-top: 1px solid rgba(0,255,108,0.3);
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-widget-area h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-menu a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.3s;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.3s;
}

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

.site-info,
.copyright-bar {
  text-align: center;
  color: var(--muted) !important;
  font-size: 0.875rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,255,108,0.2);
}

.site-info a,
.copyright-bar a {
  color: var(--primary);
}

/* ==========================================
   COMMENTS
========================================== */

.comments-area {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0,255,108,0.3);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 3rem;
}

.comments-title,
.comment-reply-title {
  color: #fff;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

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

.comment {
  border-bottom: 1px solid rgba(0,255,108,0.2);
  padding: 1.5rem 0;
}

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

.comment-content p {
  color: var(--fg) !important;
}

.comment-reply-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--primary);
  border-radius: 9999px;
  transition: background 0.3s;
}

.comment-reply-link:hover {
  background: rgba(0,255,108,0.2);
}

/* Comment Form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(0,255,108,0.3);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-sans);
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(0,255,108,0.3);
}

/* ==========================================
   CODE BLOCKS
========================================== */

pre,
code {
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(0,255,108,0.2);
  border-radius: 0.5rem;
  font-family: 'Courier New', monospace;
}

pre {
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

code {
  padding: 0.2rem 0.5rem;
  color: var(--primary);
}

pre code {
  padding: 0;
  border: none;
  background: transparent;
}

/* ==========================================
   BLOCKQUOTES
========================================== */

blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted);
  background: rgba(0,255,108,0.05);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote p {
  color: var(--muted) !important;
}

blockquote cite {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

/* ==========================================
   TABLES
========================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

th,
td {
  padding: 0.75rem;
  border: 1px solid rgba(0,255,108,0.3);
  text-align: left;
}

th {
  background: rgba(0,255,108,0.15);
  color: var(--primary) !important;
  font-weight: 600;
}

tr:nth-child(even) {
  background: rgba(0,0,0,0.3);
}

/* ==========================================
   SEARCH FORM
========================================== */

.search-form,
.widget_search form {
  position: relative;
  background: transparent !important;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.search-form input[type="search"],
.widget_search input[type="search"],
input.search-field {
  flex: 1;
  padding: 0.875rem 1.25rem !important;
  background: rgba(0,0,0,0.9) !important;
  border: 1px solid rgba(0,255,108,0.3) !important;
  border-radius: 8px !important;
  color: var(--fg) !important;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-form input[type="search"]:focus,
.widget_search input[type="search"]:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 16px rgba(0,255,108,0.3);
  background: rgba(0,0,0,0.95) !important;
}

.search-form input[type="search"]::placeholder,
.widget_search input[type="search"]::placeholder {
  color: rgba(255,255,255,0.4);
}

.search-form button,
.search-submit,
button.search-submit {
  background: linear-gradient(135deg, var(--primary), #00CC55) !important;
  border: none !important;
  padding: 0.875rem 1.75rem !important;
  border-radius: 8px !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
  cursor: pointer;
  margin: 0 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0,255,108,0.25);
  font-size: 0.95rem;
  white-space: nowrap;
}

.search-form button:hover,
.search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,255,108,0.4);
  background: linear-gradient(135deg, #00FF6C, #00E660) !important;
}

/* ==========================================
   FORMS
========================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(0,255,108,0.3);
  border-radius: var(--radius);
  color: var(--fg);
  padding: 0.75rem;
  font-family: var(--font-sans);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(0,255,108,0.3);
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 768px) {
  /* Featured Post - Stack Vertically */
  .generate-columns-container > article:first-child,
  .site-main > article:first-child,
  main > article:first-child,
  .blog-layout .blog-post-featured,
  article.blog-post-featured,
  .blog-post-featured.post {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    height: auto !important;
    max-height: none !important;
  }
  
  /* Featured Post Image - Full Width on Top */
  .blog-post-featured .post-thumbnail,
  .generate-columns-container > article:first-child .post-image,
  .site-main > article:first-child .post-image,
  main > article:first-child .post-image {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 250px !important;
    border-radius: 1rem 1rem 0 0 !important;
  }
  
  .blog-post-featured .post-thumbnail img,
  .generate-columns-container > article:first-child .post-image img,
  .site-main > article:first-child .post-image img,
  main > article:first-child .post-image img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
  }
  
  /* Featured Post Content - Below Image */
  .blog-post-featured .post-content-wrapper,
  .generate-columns-container > article:first-child .inside-article,
  .site-main > article:first-child .inside-article,
  main > article:first-child .inside-article {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 1.5rem !important;
    height: auto !important;
    max-height: none !important;
  }
  
  .blog-post-featured .entry-title,
  .generate-columns-container > article:first-child .entry-title,
  .site-main > article:first-child .entry-title,
  main > article:first-child .entry-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
  }
  
  .blog-post-featured .entry-summary,
  .generate-columns-container > article:first-child .entry-summary,
  .site-main > article:first-child .entry-summary,
  main > article:first-child .entry-summary {
    font-size: 0.9rem !important;
    -webkit-line-clamp: 3 !important;
  }
  
  .blog-post-card {
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    padding: 1rem !important;
    height: 100px;
  }
  
  .blog-post-card .post-thumbnail {
    width: 100px;
    height: 75px;
  }
  
  .blog-post-card .entry-title {
/* ==========================================
   UTILITIES
========================================== */

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

.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
