/*
Theme Name: HackFlows
Theme URI: https://hackflows.com
Author: HackFlows
Author URI: https://hackflows.com
Description: A modern dark tech theme for HackFlows — featuring Tech News, Gaming, AI, Shop, eBooks, Ideas, and SEO Services sections. Fully customizable via the WordPress Customizer and page builder friendly.
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: hackflows
Tags: dark, tech, news, blog, custom-colors, custom-menu, featured-images, responsive-layout, two-columns, three-columns, grid-layout, translation-ready
*/

/* ===================================================
   HackFlows WordPress Theme - Main Stylesheet
   Edit colors, fonts, and sizes using the 
   WordPress Customizer (Appearance > Customize)
   =================================================== */

/* --- CSS VARIABLES (Easy to change!) --- */
:root {
  --hf-bg:        #0a0d12;   /* Main background */
  --hf-bg2:       #0f1318;   /* Slightly lighter background */
  --hf-bg3:       #151b24;   /* Card/section background */
  --hf-card:      #131920;   /* Card color */
  --hf-border:    rgba(255,255,255,0.07); /* Border color */
  --hf-accent:    #00e5a0;   /* Primary accent (green) */
  --hf-accent2:   #00aaff;   /* Secondary accent (blue) */
  --hf-accent3:   #ff6b35;   /* Third accent (orange) */
  --hf-text:      #f0f4f8;   /* Main text */
  --hf-muted:     #7a8a9a;   /* Muted/secondary text */
  --hf-font-head: 'Syne', sans-serif;
  --hf-font-body: 'DM Sans', sans-serif;
  --hf-radius:    14px;
  --hf-radius-lg: 22px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--hf-bg);
  color: var(--hf-text);
  font-family: var(--hf-font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hf-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--hf-accent2); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--hf-bg); }
::-webkit-scrollbar-thumb { background: var(--hf-accent); border-radius: 3px; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hf-font-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--hf-text);
  letter-spacing: -0.5px;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1rem; color: var(--hf-muted); }

/* --- LAYOUT CONTAINER --- */
.hf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.hf-section { padding: 5rem 5%; }

/* --- BUTTONS --- */
.hf-btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--hf-font-body);
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}
.hf-btn-primary, .wp-block-button__link {
  background: var(--hf-accent);
  color: #000 !important;
}
.hf-btn-primary:hover, .wp-block-button__link:hover {
  background: #00c988;
  transform: translateY(-2px);
  color: #000 !important;
}
.hf-btn-outline {
  background: transparent;
  border: 1px solid var(--hf-border);
  color: var(--hf-text) !important;
}
.hf-btn-outline:hover {
  border-color: var(--hf-accent);
  color: var(--hf-accent) !important;
}

/* --- NAVIGATION --- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(10,13,18,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hf-border);
  height: 68px;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 5%;
}
.site-logo a,
.site-title a {
  font-family: var(--hf-font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hf-text) !important;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-title a span { color: var(--hf-accent); }

/* Primary Menu */
#primary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0; padding: 0;
}
#primary-menu > li > a {
  color: var(--hf-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a { color: var(--hf-accent); }
#primary-menu .menu-cta > a {
  background: var(--hf-accent);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.85rem;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--hf-text);
  border-radius: 2px;
  transition: all .3s;
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 68px 5% 0;
  position: relative;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(0,229,160,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,170,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: 0.035;
  background-image:
    linear-gradient(var(--hf-accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--hf-accent) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { max-width: 720px; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.25);
  color: var(--hf-accent);
  font-size: 0.78rem; font-weight: 700;
  padding: 6px 18px; border-radius: 50px;
  margin-bottom: 1.5rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero-badge::before { content:'⬤'; font-size:0.45rem; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.3} }
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  color: var(--hf-text);
}
.hero-title em { font-style: normal; color: var(--hf-accent); }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--hf-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hf-border);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--hf-font-head);
  font-size: 1.8rem; font-weight: 800;
  color: var(--hf-accent);
}
.hero-stat-label { font-size: 0.78rem; color: var(--hf-muted); margin-top: 2px; }

/* --- NEWS TICKER --- */
.hf-ticker-wrap {
  background: var(--hf-bg3);
  border-top: 1px solid var(--hf-border);
  border-bottom: 1px solid var(--hf-border);
  padding: 12px 0;
  overflow: hidden;
}
.hf-ticker-inner {
  display: flex; gap: 3rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.hf-ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker { from{transform:translateX(0)}to{transform:translateX(-50%)} }
.hf-ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--hf-muted); flex-shrink: 0;
}
.hf-ticker-dot { color: var(--hf-accent); font-size: 0.45rem; }

/* --- SECTION LABELS & HEADERS --- */
.hf-section-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--hf-accent); margin-bottom: 0.6rem;
}
.hf-section-title {
  font-family: var(--hf-font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 0.5rem;
  color: var(--hf-text);
}
.hf-section-sub { color: var(--hf-muted); max-width: 520px; font-weight: 300; }
.hf-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem;
}

/* --- CATEGORY FILTER TABS --- */
.hf-cat-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hf-cat-tab {
  padding: 7px 18px;
  border: 1px solid var(--hf-border);
  border-radius: 50px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--hf-muted);
  cursor: pointer; transition: all .2s;
  background: transparent;
  font-family: var(--hf-font-body);
}
.hf-cat-tab.active, .hf-cat-tab:hover {
  border-color: var(--hf-accent);
  color: var(--hf-accent);
  background: rgba(0,229,160,0.08);
}

/* --- NEWS CARDS --- */
.hf-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.hf-news-card {
  background: var(--hf-card);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-lg);
  overflow: hidden;
  transition: all .25s;
  display: block; color: inherit;
  text-decoration: none;
}
.hf-news-card:hover {
  border-color: rgba(0,229,160,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  color: inherit;
}
.hf-news-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--hf-bg3);
  overflow: hidden; position: relative;
}
.hf-news-thumb img { width:100%; height:100%; object-fit:cover; }
.hf-news-thumb-placeholder {
  width:100%; height:100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.hf-post-cat-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 50px;
}
.badge-tech  { background:rgba(0,170,255,0.2); color:var(--hf-accent2); border:1px solid rgba(0,170,255,0.3); }
.badge-game  { background:rgba(255,107,53,0.2); color:var(--hf-accent3); border:1px solid rgba(255,107,53,0.3); }
.badge-ai    { background:rgba(0,229,160,0.2);  color:var(--hf-accent);  border:1px solid rgba(0,229,160,0.3); }
.badge-seo   { background:rgba(180,100,255,0.2);color:#c084fc;            border:1px solid rgba(180,100,255,0.3); }

.hf-news-body { padding: 1.25rem; }
.hf-post-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--hf-muted);
  margin-bottom: 0.6rem;
}
.hf-post-title {
  font-family: var(--hf-font-head);
  font-size: 1.05rem; font-weight: 700;
  line-height: 1.3; margin-bottom: 0.6rem;
  color: var(--hf-text);
}
.hf-post-excerpt { font-size: 0.85rem; color: var(--hf-muted); line-height: 1.6; }
.hf-news-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--hf-border);
  font-size: 0.8rem; color: var(--hf-muted);
}
.hf-read-more { color: var(--hf-accent); font-weight: 600; }

/* Featured post */
.hf-featured-card {
  background: var(--hf-card);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 1.5rem;
  text-decoration: none; color: inherit;
  transition: border-color .25s;
}
.hf-featured-card:hover { border-color: rgba(0,229,160,0.3); color: inherit; }
.hf-featured-img {
  min-height: 260px;
  background: var(--hf-bg3);
  position: relative; overflow: hidden;
}
.hf-featured-img img { width:100%; height:100%; object-fit:cover; }
.hf-featured-placeholder {
  width:100%; height:100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.hf-featured-body {
  padding: 2rem;
  display: flex; flex-direction: column; justify-content: center;
}
.hf-featured-body .hf-post-title { font-size: 1.4rem; margin-bottom: 0.8rem; }

/* --- SHOP / PRODUCT CARDS --- */
.hf-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.hf-product-card {
  background: var(--hf-card);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-lg);
  overflow: hidden;
  transition: all .25s;
}
.hf-product-card:hover {
  border-color: rgba(0,229,160,0.3);
  transform: translateY(-4px);
}
.hf-product-img {
  aspect-ratio: 1;
  background: var(--hf-bg3);
  position: relative; overflow: hidden;
}
.hf-product-img img { width:100%; height:100%; object-fit:cover; }
.hf-product-placeholder {
  width:100%; height:100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.hf-product-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--hf-accent3); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
}
.hf-product-body { padding: 1.1rem; }
.hf-product-name {
  font-family: var(--hf-font-head);
  font-size: 0.95rem; font-weight: 700; margin-bottom: 4px;
  color: var(--hf-text);
}
.hf-product-desc { font-size: 0.8rem; color: var(--hf-muted); margin-bottom: 10px; }
.hf-product-footer { display: flex; align-items: center; justify-content: space-between; }
.hf-product-price {
  font-family: var(--hf-font-head);
  font-weight: 800; font-size: 1.1rem;
  color: var(--hf-accent);
}
.hf-add-cart {
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.3);
  color: var(--hf-accent);
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
  font-family: var(--hf-font-body);
}
.hf-add-cart:hover { background: var(--hf-accent); color: #000; }

/* WooCommerce overrides */
.woocommerce ul.products li.product { background: var(--hf-card) !important; border: 1px solid var(--hf-border) !important; border-radius: var(--hf-radius-lg) !important; }
.woocommerce ul.products li.product .price { color: var(--hf-accent) !important; font-family: var(--hf-font-head) !important; font-weight: 800 !important; }
.woocommerce ul.products li.product .button, .woocommerce a.button { background: var(--hf-accent) !important; color: #000 !important; border-radius: 50px !important; font-weight: 600 !important; border: none !important; }
.woocommerce ul.products li.product .button:hover, .woocommerce a.button:hover { background: #00c988 !important; }
.woocommerce-page { background: var(--hf-bg) !important; color: var(--hf-text) !important; }

/* --- EBOOK CARDS --- */
.hf-ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.hf-ebook-card {
  background: var(--hf-card);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  overflow: hidden; transition: all .25s;
  text-align: center;
}
.hf-ebook-card:hover {
  border-color: rgba(0,170,255,0.4);
  transform: translateY(-4px);
}
.hf-ebook-cover {
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--hf-bg3), #1a2333);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 3rem; padding: 1.5rem;
}
.hf-ebook-cover-title {
  font-family: var(--hf-font-head);
  font-size: 0.85rem; font-weight: 700;
  color: var(--hf-text); margin-top: 0.7rem;
  line-height: 1.3;
}
.hf-ebook-body { padding: 1rem; }
.hf-ebook-price { font-family: var(--hf-font-head); font-weight: 800; color: var(--hf-accent2); font-size: 1rem; }

/* --- SEO SERVICES CARDS --- */
.hf-seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.hf-seo-card {
  background: var(--hf-card);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-lg);
  padding: 1.75rem;
  transition: all .25s;
  position: relative; overflow: hidden;
}
.hf-seo-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--hf-accent), var(--hf-accent2));
}
.hf-seo-card:hover { border-color: rgba(0,229,160,0.3); transform: translateY(-3px); }
.hf-seo-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.hf-seo-title { font-family: var(--hf-font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--hf-text); }
.hf-seo-desc { font-size: 0.88rem; color: var(--hf-muted); margin-bottom: 1.2rem; }
.hf-seo-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hf-seo-tag { font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 50px; background: rgba(0,229,160,0.08); border: 1px solid rgba(0,229,160,0.2); color: var(--hf-accent); }
.hf-seo-metrics { display: flex; gap: 1.5rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--hf-border); }
.hf-seo-metric-val { font-family: var(--hf-font-head); font-weight: 800; font-size: 1.3rem; color: var(--hf-accent); }
.hf-seo-metric-label { font-size: 0.72rem; color: var(--hf-muted); }

/* --- IDEAS BOARD --- */
.hf-ideas-list { display: flex; flex-direction: column; gap: 1rem; }
.hf-idea-item {
  background: var(--hf-card); border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  padding: 1.2rem 1.5rem;
  display: flex; align-items: flex-start; gap: 1.2rem;
  transition: all .2s;
}
.hf-idea-item:hover { border-color: rgba(0,229,160,0.3); background: rgba(0,229,160,0.03); }
.hf-idea-num {
  font-family: var(--hf-font-head); font-size: 0.7rem; font-weight: 800;
  color: var(--hf-accent); background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.2);
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hf-idea-content h3 { font-family: var(--hf-font-head); font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; color: var(--hf-text); }
.hf-idea-content p { font-size: 0.83rem; color: var(--hf-muted); margin: 0; }
.hf-idea-vote { margin-left: auto; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hf-vote-btn {
  background: none; border: 1px solid var(--hf-border);
  color: var(--hf-muted); font-size: 0.7rem;
  width: 30px; height: 30px; border-radius: 8px;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hf-font-body);
}
.hf-vote-btn:hover { border-color: var(--hf-accent); color: var(--hf-accent); }
.hf-vote-count { font-size: 0.75rem; font-weight: 700; color: var(--hf-muted); }

/* --- NEWSLETTER --- */
.hf-newsletter-wrap {
  background: var(--hf-bg3); border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-lg); padding: 4rem;
  text-align: center; position: relative; overflow: hidden;
}
.hf-newsletter-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,229,160,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hf-newsletter-form {
  display: flex; gap: 0.75rem;
  max-width: 480px; margin: 2rem auto 0;
  flex-wrap: wrap; justify-content: center;
}
.hf-newsletter-form input[type="email"] {
  flex: 1; min-width: 220px;
  background: var(--hf-bg2); border: 1px solid var(--hf-border);
  color: var(--hf-text); padding: 12px 22px;
  border-radius: 50px; font-size: 0.9rem;
  font-family: var(--hf-font-body); outline: none;
  transition: border .2s;
}
.hf-newsletter-form input[type="email"]:focus { border-color: var(--hf-accent); }
.hf-newsletter-form input[type="email"]::placeholder { color: var(--hf-muted); }
.hf-newsletter-note { color: var(--hf-muted); font-size: 0.75rem; margin-top: 1rem; }

/* --- DIVIDER --- */
.hf-divider { height: 1px; background: var(--hf-border); margin: 0 5%; }

/* --- FOOTER --- */
#site-footer {
  background: var(--hf-bg2);
  border-top: 1px solid var(--hf-border);
  padding: 4rem 5% 2rem;
}
.hf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.hf-footer-brand .site-title a { font-size: 1.3rem; display: block; margin-bottom: 1rem; }
.hf-footer-desc { font-size: 0.85rem; color: var(--hf-muted); margin-bottom: 1.5rem; }
.hf-social-links { display: flex; gap: 0.75rem; }
.hf-social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--hf-border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--hf-muted);
  text-decoration: none; transition: all .2s;
}
.hf-social-link:hover { border-color: var(--hf-accent); color: var(--hf-accent); }
.hf-footer-col h4 {
  font-family: var(--hf-font-head); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1.2rem; color: var(--hf-text);
}
.hf-footer-col ul { list-style: none; }
.hf-footer-col ul li { margin-bottom: 0.6rem; }
.hf-footer-col ul li a { color: var(--hf-muted); font-size: 0.85rem; transition: color .2s; }
.hf-footer-col ul li a:hover { color: var(--hf-accent); }
.hf-footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--hf-border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: var(--hf-muted);
}

/* --- WIDGETS --- */
.widget { margin-bottom: 2rem; }
.widget-title { font-family: var(--hf-font-head); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--hf-border); color: var(--hf-text); }
.widget ul { list-style: none; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--hf-border); }
.widget ul li a { color: var(--hf-muted); font-size: 0.88rem; }
.widget ul li a:hover { color: var(--hf-accent); }

/* --- SINGLE POST / PAGE --- */
.single-post-wrap, .page-content-wrap { max-width: 800px; margin: 0 auto; padding: 2rem 5%; padding-top: calc(68px + 3rem); }
.post-header { margin-bottom: 2.5rem; }
.post-featured-img { border-radius: var(--hf-radius-lg); overflow: hidden; margin-bottom: 2rem; }
.post-featured-img img { width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--hf-text); margin: 2rem 0 1rem; }
.entry-content p { color: var(--hf-muted); margin-bottom: 1.2rem; }
.entry-content ul, .entry-content ol { color: var(--hf-muted); padding-left: 1.5rem; margin-bottom: 1.2rem; }
.entry-content blockquote { border-left: 3px solid var(--hf-accent); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--hf-muted); }
.entry-content a { color: var(--hf-accent); }
.entry-content img { border-radius: var(--hf-radius); margin: 1.5rem 0; }
.entry-content code { background: var(--hf-bg3); color: var(--hf-accent); padding: 2px 8px; border-radius: 5px; font-size: 0.88rem; }
.entry-content pre { background: var(--hf-bg3); border: 1px solid var(--hf-border); padding: 1.5rem; border-radius: var(--hf-radius); overflow-x: auto; margin: 1.5rem 0; }

/* --- COMMENTS --- */
.comments-area { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--hf-border); }
.comments-title, .comment-reply-title { font-family: var(--hf-font-head); font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--hf-text); }
.comment-body { background: var(--hf-card); border: 1px solid var(--hf-border); border-radius: var(--hf-radius); padding: 1.25rem; margin-bottom: 1rem; }
.comment-author .fn { font-weight: 600; color: var(--hf-text); font-size: 0.9rem; }
.comment-meta { font-size: 0.78rem; color: var(--hf-muted); margin-bottom: 0.75rem; }
.comment-content p { color: var(--hf-muted); font-size: 0.9rem; }
.comment-form input, .comment-form textarea {
  width: 100%;
  background: var(--hf-bg2); border: 1px solid var(--hf-border);
  color: var(--hf-text); padding: 12px 16px;
  border-radius: var(--hf-radius); font-family: var(--hf-font-body);
  font-size: 0.9rem; outline: none; margin-bottom: 1rem;
  transition: border .2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--hf-accent); }

/* Gutenberg blocks */
.wp-block-image img { border-radius: var(--hf-radius); }
.wp-block-quote { border-left: 3px solid var(--hf-accent) !important; background: var(--hf-bg3); padding: 1.5rem; border-radius: 0 var(--hf-radius) var(--hf-radius) 0; }
.wp-block-code { background: var(--hf-bg3) !important; border: 1px solid var(--hf-border) !important; color: var(--hf-accent) !important; }
.wp-block-separator { border-color: var(--hf-border) !important; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { padding: 12px 16px; border: 1px solid var(--hf-border); color: var(--hf-muted); font-size: 0.9rem; }
.wp-block-table th { color: var(--hf-text); font-weight: 600; background: var(--hf-bg3); }

/* --- ANIMATIONS --- */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)} }
.hf-animate { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.hf-animate.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hf-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #primary-menu { display: none; }
  #primary-menu.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(10,13,18,0.98); padding: 1.5rem 5%; gap: 1rem; border-bottom: 1px solid var(--hf-border); }
  .menu-toggle { display: flex; }
  .hf-featured-card { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .hf-section { padding: 3rem 5%; }
  .hf-newsletter-wrap { padding: 2.5rem 1.5rem; }
}
@media (max-width: 480px) {
  .hf-footer-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1px; }
}
