/*
Theme Name: EndBugFlow
Theme URI: https://endbugflowing.blog
Author: EndBugFlow Team
Author URI: https://endbugflowing.blog
Description: EndBugFlow is a clean, fast, professional blogging theme built for technology publications — reviews, how-to guides, cybersecurity news, AI coverage and software deep-dives. Fully responsive, widget-ready, translation-ready, and built with performance and readability first.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: endbugflow
Tags: blog, news, one-column, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, technology, responsive-layout

EndBugFlow WordPress Theme, Copyright 2026 EndBugFlow
EndBugFlow is distributed under the terms of the GNU GPL.
*/

/* =========================================================
   0. CSS VARIABLES / THEME TOKENS
   ========================================================= */
:root{
  --ebf-bg:#0b0e14;
  --ebf-bg-alt:#11151d;
  --ebf-surface:#161b25;
  --ebf-surface-2:#1c2230;
  --ebf-border:#262d3d;
  --ebf-text:#e7ebf3;
  --ebf-text-muted:#9aa4b8;
  --ebf-text-dim:#6b7386;
  --ebf-accent:#3ddc97;
  --ebf-accent-2:#5b8cff;
  --ebf-warn:#ff6b6b;
  --ebf-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ebf-font-head: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ebf-radius: 10px;
  --ebf-maxw: 1200px;
  --ebf-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--ebf-bg);
  color:var(--ebf-text);
  font-family:var(--ebf-font-body);
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block;border-radius:var(--ebf-radius);}
a{color:var(--ebf-accent-2);text-decoration:none;transition:color .15s ease;}
a:hover{color:var(--ebf-accent);}
h1,h2,h3,h4,h5,h6{font-family:var(--ebf-font-head);line-height:1.25;font-weight:700;color:#fff;margin:0 0 .5em;}
h1{font-size:2.4rem;}
h2{font-size:1.85rem;}
h3{font-size:1.4rem;}
p{margin:0 0 1.2em;}
ul,ol{padding-left:1.4em;}
blockquote{
  margin:1.5em 0;
  padding:.8em 1.4em;
  border-left:4px solid var(--ebf-accent);
  background:var(--ebf-surface);
  border-radius:0 var(--ebf-radius) var(--ebf-radius) 0;
  color:var(--ebf-text-muted);
  font-style:italic;
}
code,pre{
  background:var(--ebf-surface-2);
  border:1px solid var(--ebf-border);
  border-radius:6px;
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
}
code{padding:.15em .45em;font-size:.9em;color:var(--ebf-accent);}
pre{padding:1em;overflow-x:auto;}
pre code{border:none;background:none;padding:0;color:var(--ebf-text);}
hr{border:none;border-top:1px solid var(--ebf-border);margin:2em 0;}
table{width:100%;border-collapse:collapse;margin:1.5em 0;}
th,td{border:1px solid var(--ebf-border);padding:.6em .8em;text-align:left;}
th{background:var(--ebf-surface);}
.screen-reader-text{
  position:absolute!important;width:1px;height:1px;overflow:hidden;
  clip:rect(1px,1px,1px,1px);white-space:nowrap;
}
.container{max-width:var(--ebf-maxw);margin:0 auto;padding:0 24px;}

/* =========================================================
   2. HEADER
   ========================================================= */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(11,14,20,0.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--ebf-border);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 24px;max-width:var(--ebf-maxw);margin:0 auto;
}
.site-branding{display:flex;align-items:center;gap:10px;}
.site-branding .site-title{
  font-size:1.5rem;font-weight:800;color:#fff;letter-spacing:-.5px;margin:0;
}
.site-branding .site-title span{color:var(--ebf-accent);}
.site-branding .site-description{
  display:none;
}
.site-branding img.custom-logo{max-height:42px;width:auto;border-radius:6px;}

.main-navigation{display:flex;align-items:center;}
.main-navigation ul{list-style:none;display:flex;gap:6px;margin:0;padding:0;}
.main-navigation li{position:relative;}
.main-navigation a{
  display:block;padding:10px 14px;border-radius:8px;color:var(--ebf-text-muted);
  font-weight:600;font-size:.95rem;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a{
  color:#fff;background:var(--ebf-surface);
}
.main-navigation ul ul{
  display:none;position:absolute;top:100%;left:0;background:var(--ebf-surface);
  border:1px solid var(--ebf-border);border-radius:10px;padding:6px;min-width:200px;
  box-shadow:var(--ebf-shadow);
}
.main-navigation li:hover > ul{display:block;}

.menu-toggle{
  display:none;background:var(--ebf-surface);border:1px solid var(--ebf-border);
  color:#fff;border-radius:8px;padding:8px 12px;font-size:1.1rem;cursor:pointer;
}
.header-search-toggle{
  background:none;border:1px solid var(--ebf-border);color:var(--ebf-text-muted);
  border-radius:8px;padding:8px 10px;cursor:pointer;margin-left:10px;
}
.header-cta{
  display:flex;align-items:center;
}

/* =========================================================
   3. HERO (front page)
   ========================================================= */
.ebf-hero{
  padding:70px 24px 60px;
  background:radial-gradient(circle at 20% 20%, rgba(61,220,151,0.12), transparent 45%),
             radial-gradient(circle at 80% 0%, rgba(91,140,255,0.14), transparent 40%);
  border-bottom:1px solid var(--ebf-border);
}
.ebf-hero-inner{max-width:var(--ebf-maxw);margin:0 auto;display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:center;}
.ebf-hero-eyebrow{
  display:inline-block;color:var(--ebf-accent);font-weight:700;font-size:.8rem;
  letter-spacing:1.5px;text-transform:uppercase;margin-bottom:14px;
}
.ebf-hero h1{font-size:2.8rem;margin-bottom:.4em;}
.ebf-hero p.lead{color:var(--ebf-text-muted);font-size:1.15rem;max-width:56ch;}
.ebf-hero-actions{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap;}
.btn{
  display:inline-block;padding:12px 22px;border-radius:8px;font-weight:700;font-size:.95rem;
  border:1px solid transparent;cursor:pointer;
}
.btn-primary{background:var(--ebf-accent);color:#04140d;}
.btn-primary:hover{background:#33c98a;color:#04140d;}
.btn-outline{border-color:var(--ebf-border);color:#fff;}
.btn-outline:hover{border-color:var(--ebf-accent);color:var(--ebf-accent);}
.ebf-hero-panel{
  background:var(--ebf-surface);border:1px solid var(--ebf-border);border-radius:var(--ebf-radius);
  padding:24px;
}
.ebf-hero-panel h3{font-size:1rem;color:var(--ebf-text-muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:14px;}
.ebf-hero-panel ul{list-style:none;padding:0;margin:0;}
.ebf-hero-panel li{padding:10px 0;border-top:1px solid var(--ebf-border);}
.ebf-hero-panel li:first-child{border-top:none;}
.ebf-hero-panel a{color:var(--ebf-text);font-weight:600;}
.ebf-hero-panel a:hover{color:var(--ebf-accent);}

/* Category chip strip */
.ebf-cat-strip{
  display:flex;gap:10px;flex-wrap:wrap;padding:24px;max-width:var(--ebf-maxw);margin:0 auto;
}
.ebf-cat-chip{
  background:var(--ebf-surface);border:1px solid var(--ebf-border);padding:8px 16px;
  border-radius:999px;font-size:.85rem;font-weight:600;color:var(--ebf-text-muted);
}
.ebf-cat-chip:hover{color:#fff;border-color:var(--ebf-accent);}

/* =========================================================
   4. LAYOUT: content + sidebar
   ========================================================= */
.site-main-wrap{max-width:var(--ebf-maxw);margin:0 auto;padding:40px 24px 60px;}
.content-layout{display:grid;grid-template-columns:1fr 320px;gap:48px;align-items:start;}
.content-layout.full-width{grid-template-columns:1fr;}
.section-heading{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;
  border-bottom:1px solid var(--ebf-border);padding-bottom:12px;
}
.section-heading h2{margin:0;font-size:1.4rem;}
.section-heading a{font-size:.85rem;font-weight:700;color:var(--ebf-accent);}

/* =========================================================
   5. POST CARDS / ARCHIVE GRID
   ========================================================= */
.post-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;}
.post-card{
  background:var(--ebf-surface);border:1px solid var(--ebf-border);border-radius:var(--ebf-radius);
  overflow:hidden;display:flex;flex-direction:column;transition:transform .15s ease, border-color .15s ease;
}
.post-card:hover{transform:translateY(-3px);border-color:var(--ebf-accent);}
.post-card .thumb{
  aspect-ratio:16/9;background:linear-gradient(135deg,var(--ebf-surface-2),var(--ebf-bg-alt));
  display:flex;align-items:center;justify-content:center;color:var(--ebf-text-dim);font-size:.8rem;
  border-radius:0;overflow:hidden;
}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;border-radius:0;}
.post-card .card-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:10px;flex:1;}
.post-cat{
  align-self:flex-start;background:rgba(61,220,151,0.12);color:var(--ebf-accent);
  font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.6px;
  padding:4px 10px;border-radius:999px;
}
.post-card h3{font-size:1.15rem;margin-bottom:0;}
.post-card h3 a{color:#fff;}
.post-card h3 a:hover{color:var(--ebf-accent);}
.post-excerpt{color:var(--ebf-text-muted);font-size:.92rem;margin:0;}
.post-meta{
  display:flex;gap:12px;align-items:center;color:var(--ebf-text-dim);font-size:.78rem;margin-top:auto;padding-top:8px;
}
.post-meta .sep{opacity:.5;}

.featured-post{
  display:grid;grid-template-columns:1.1fr .9fr;gap:0;background:var(--ebf-surface);
  border:1px solid var(--ebf-border);border-radius:var(--ebf-radius);overflow:hidden;margin-bottom:40px;
}
.featured-post .thumb{aspect-ratio:auto;height:100%;}
.featured-post .card-body{padding:32px;justify-content:center;}
.featured-post h2{font-size:1.9rem;}

/* Single post grid used on category/archive/search pages */
.list-grid{display:flex;flex-direction:column;gap:20px;}
.list-grid .post-card{flex-direction:row;}
.list-grid .post-card .thumb{width:220px;flex:none;aspect-ratio:auto;}
.list-grid .post-card .card-body{padding:20px 24px;}

/* =========================================================
   6. SINGLE POST
   ========================================================= */
.single-post-header{margin-bottom:28px;}
.breadcrumbs{color:var(--ebf-text-dim);font-size:.85rem;margin-bottom:16px;}
.breadcrumbs a{color:var(--ebf-text-dim);}
.single-post-header .post-cat{margin-bottom:14px;}
.single-post-header h1{font-size:2.3rem;}
.single-post-meta{
  display:flex;gap:16px;align-items:center;color:var(--ebf-text-muted);font-size:.9rem;
  margin-top:16px;padding-bottom:20px;border-bottom:1px solid var(--ebf-border);
}
.author-avatar{width:36px;height:36px;border-radius:50%;background:var(--ebf-surface-2);}
.single-featured-image{margin:24px 0;border-radius:var(--ebf-radius);overflow:hidden;}
.entry-content{font-size:1.08rem;color:#dfe4ee;}
.entry-content h2{margin-top:1.6em;}
.entry-content h3{margin-top:1.4em;}
.entry-content a{border-bottom:1px solid rgba(91,140,255,.4);}
.entry-tags{display:flex;flex-wrap:wrap;gap:8px;margin:32px 0;}
.entry-tags a{
  background:var(--ebf-surface);border:1px solid var(--ebf-border);padding:6px 12px;
  border-radius:999px;font-size:.8rem;color:var(--ebf-text-muted);
}
.author-box{
  display:flex;gap:16px;padding:24px;background:var(--ebf-surface);border:1px solid var(--ebf-border);
  border-radius:var(--ebf-radius);margin:32px 0;
}
.author-box img{width:64px;height:64px;border-radius:50%;flex:none;}
.author-box h4{margin-bottom:4px;}
.post-nav{display:flex;justify-content:space-between;gap:20px;margin:40px 0;}
.post-nav a{
  flex:1;background:var(--ebf-surface);border:1px solid var(--ebf-border);border-radius:var(--ebf-radius);
  padding:16px 20px;color:var(--ebf-text-muted);
}
.post-nav a:hover{border-color:var(--ebf-accent);}
.post-nav .label{display:block;font-size:.75rem;text-transform:uppercase;color:var(--ebf-text-dim);margin-bottom:6px;}
.post-nav .next{text-align:right;}

/* =========================================================
   7. SIDEBAR / WIDGETS
   ========================================================= */
.widget{
  background:var(--ebf-surface);border:1px solid var(--ebf-border);border-radius:var(--ebf-radius);
  padding:22px;margin-bottom:24px;
}
.widget-title{
  font-size:.85rem;text-transform:uppercase;letter-spacing:1px;color:var(--ebf-text-dim);
  margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--ebf-border);
}
.widget ul{list-style:none;margin:0;padding:0;}
.widget li{padding:8px 0;border-top:1px solid var(--ebf-border);}
.widget li:first-child{border-top:none;}
.widget_search input[type=search],
.widget input[type=text],
.widget input[type=email]{
  width:100%;padding:10px 12px;border-radius:8px;border:1px solid var(--ebf-border);
  background:var(--ebf-bg-alt);color:#fff;font-size:.9rem;
}
.widget button, .widget input[type=submit]{
  margin-top:10px;background:var(--ebf-accent);color:#04140d;border:none;
  padding:10px 16px;border-radius:8px;font-weight:700;cursor:pointer;width:100%;
}
.newsletter-widget p{font-size:.85rem;color:var(--ebf-text-muted);}
.tagcloud a{
  display:inline-block;margin:0 6px 8px 0;padding:5px 12px;background:var(--ebf-bg-alt);
  border:1px solid var(--ebf-border);border-radius:999px;font-size:.78rem!important;color:var(--ebf-text-muted);
}

/* =========================================================
   8. PAGE TEMPLATES: About / Contact / Legal
   ========================================================= */
.page-hero{padding:60px 24px 30px;text-align:center;border-bottom:1px solid var(--ebf-border);}
.page-hero h1{font-size:2.4rem;margin-bottom:10px;}
.page-hero p{color:var(--ebf-text-muted);max-width:60ch;margin:0 auto;}
.page-content-wrap{max-width:820px;margin:0 auto;padding:48px 24px;}
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:36px 0;}
.stat-box{background:var(--ebf-surface);border:1px solid var(--ebf-border);border-radius:var(--ebf-radius);padding:20px;text-align:center;}
.stat-box .num{font-size:1.8rem;font-weight:800;color:var(--ebf-accent);}
.stat-box .label{font-size:.8rem;color:var(--ebf-text-dim);text-transform:uppercase;letter-spacing:.5px;}
.value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:30px 0;}
.value-card{background:var(--ebf-surface);border:1px solid var(--ebf-border);border-radius:var(--ebf-radius);padding:22px;}
.value-card h4{color:var(--ebf-accent);}

.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:20px;}
.contact-info-card{background:var(--ebf-surface);border:1px solid var(--ebf-border);border-radius:var(--ebf-radius);padding:26px;margin-bottom:16px;}
.contact-info-card h4{margin-bottom:6px;color:var(--ebf-accent);font-size:.9rem;text-transform:uppercase;letter-spacing:.5px;}
.ebf-contact-form label{display:block;font-weight:700;font-size:.85rem;margin-bottom:6px;color:var(--ebf-text-muted);}
.ebf-contact-form input, .ebf-contact-form textarea{
  width:100%;padding:12px 14px;margin-bottom:16px;border-radius:8px;border:1px solid var(--ebf-border);
  background:var(--ebf-bg-alt);color:#fff;font-family:inherit;font-size:.95rem;
}
.ebf-contact-form textarea{min-height:140px;resize:vertical;}
.form-notice{padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:.9rem;}
.form-notice.success{background:rgba(61,220,151,0.12);color:var(--ebf-accent);border:1px solid var(--ebf-accent);}
.form-notice.error{background:rgba(255,107,107,0.12);color:var(--ebf-warn);border:1px solid var(--ebf-warn);}

/* =========================================================
   9. FOOTER
   ========================================================= */
.site-footer{background:var(--ebf-bg-alt);border-top:1px solid var(--ebf-border);margin-top:60px;}
.footer-grid{
  max-width:var(--ebf-maxw);margin:0 auto;padding:56px 24px 30px;
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;
}
.footer-col h4{color:#fff;font-size:.9rem;text-transform:uppercase;letter-spacing:.6px;margin-bottom:16px;}
.footer-col p{color:var(--ebf-text-muted);font-size:.92rem;}
.footer-col ul{list-style:none;margin:0;padding:0;}
.footer-col li{margin-bottom:10px;}
.footer-col a{color:var(--ebf-text-muted);font-size:.92rem;}
.footer-col a:hover{color:var(--ebf-accent);}
.footer-social{display:flex;gap:10px;margin-top:14px;}
.footer-social a{
  width:36px;height:36px;border-radius:50%;border:1px solid var(--ebf-border);
  display:flex;align-items:center;justify-content:center;color:var(--ebf-text-muted);
}
.footer-social a:hover{border-color:var(--ebf-accent);color:var(--ebf-accent);}
.footer-bottom{
  border-top:1px solid var(--ebf-border);padding:20px 24px;text-align:center;
  color:var(--ebf-text-dim);font-size:.82rem;
}
.footer-bottom a{color:var(--ebf-text-dim);}

/* =========================================================
   10. MISC: pagination, comments, buttons
   ========================================================= */
.ebf-pagination{display:flex;gap:8px;justify-content:center;margin:40px 0;flex-wrap:wrap;}
.ebf-pagination a, .ebf-pagination span{
  padding:8px 14px;border-radius:8px;border:1px solid var(--ebf-border);color:var(--ebf-text-muted);font-size:.85rem;
}
.ebf-pagination .current{background:var(--ebf-accent);color:#04140d;border-color:var(--ebf-accent);font-weight:700;}
.ebf-pagination a:hover{border-color:var(--ebf-accent);color:#fff;}

.comments-area{margin-top:48px;padding-top:32px;border-top:1px solid var(--ebf-border);}
.comment-list{list-style:none;margin:0;padding:0;}
.comment-list .comment{background:var(--ebf-surface);border:1px solid var(--ebf-border);border-radius:var(--ebf-radius);padding:18px 20px;margin-bottom:16px;}
.comment-list ol.children{list-style:none;padding-left:28px;margin-top:16px;}
.comment-author{font-weight:700;color:#fff;font-size:.92rem;}
.comment-meta{color:var(--ebf-text-dim);font-size:.78rem;margin-bottom:8px;}
.comment-respond input, .comment-respond textarea{
  width:100%;padding:10px 12px;border-radius:8px;border:1px solid var(--ebf-border);
  background:var(--ebf-bg-alt);color:#fff;margin-bottom:14px;
}
.comment-respond textarea{min-height:120px;}

.error-404{text-align:center;padding:100px 24px;}
.error-404 h1{font-size:5rem;color:var(--ebf-accent);margin-bottom:0;}

/* =========================================================
   11. RESPONSIVE
   ========================================================= */
@media (max-width: 900px){
  .ebf-hero-inner{grid-template-columns:1fr;}
  .content-layout{grid-template-columns:1fr;}
  .post-grid{grid-template-columns:1fr;}
  .featured-post{grid-template-columns:1fr;}
  .stats-row{grid-template-columns:repeat(2,1fr);}
  .value-grid{grid-template-columns:1fr;}
  .contact-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width: 700px){
  .main-navigation{
    display:none;position:absolute;top:100%;left:0;right:0;background:var(--ebf-bg-alt);
    border-bottom:1px solid var(--ebf-border);padding:12px;
  }
  .main-navigation.toggled{display:block;}
  .main-navigation ul{flex-direction:column;}
  .main-navigation ul ul{position:static;border:none;background:none;padding-left:14px;display:block;}
  .menu-toggle{display:inline-block;}
  .list-grid .post-card{flex-direction:column;}
  .list-grid .post-card .thumb{width:100%;aspect-ratio:16/9;}
  .footer-grid{grid-template-columns:1fr;}
  h1{font-size:1.9rem;}
  .ebf-hero h1{font-size:2rem;}
}
