/*
Theme Name: Pixel Forge
Theme URI: https://pixelforge.au
Author: Derek Robertson
Author URI: https://pixelforge.au
Description: Custom WordPress theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pxf
*/

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
}

/* General link styles */
a {
  color: #0ff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a:not(.wp-block-button__link):after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #0ff, #00f, #0ff);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

a:hover {
  color: #fff;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* Header */

.main-nav{position: relative;height:80px;overflow: visible;z-index: 1;}

#main-content{position: relative;z-index: 0;}

/* Base styles for sci-fi HUD header and footer */
.hud-header,
.hud-footer {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 3px solid #0ff;
  border-bottom: 3px solid #0ff;
  box-shadow: inset 0 1px 10px rgba(0, 255, 255, 0.2);
  font-family: 'Orbitron', sans-serif;
  color: #0ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 10;
}

.hud-header{
  display: flex;
}

.hud-footer {
  border-top: none;
  border-bottom: 3px solid #0ff;
  justify-content: center;
  font-size: 0.8rem;
}

.hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #0ff;
  box-shadow: 0 0 10px rgba(0,255,255,0.5);
}

.hud-line {
  position: absolute;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #0ff 30%, transparent 100%);
  top: 50%;
  left: 0;
  opacity: 0.2;
  pointer-events: none;
}

.logo {
  font-family: 'Orbitron', sans-serif; /* Futuristic font recommended */
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0ff;
  background: linear-gradient(120deg, #0ff, #00f, #0ff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
  text-shadow: 0 0 10px #0ff, 0 0 20px #00f, 0 0 30px #0ff;
  text-align: center;
  display: inline-block;
}

@keyframes shine {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.logo::before {
  content: '';
  display: block;
  height: 2px;
  background: #0ff;
  margin: 0 auto 8px;
  width: 100%;
  box-shadow: 0 0 10px #0ff, 0 0 20px #00f;
  animation: pulseSlow 2s infinite ease-in-out;
}
.logo::after {
  content: '';
  display: block;
  height: 2px;
  background: #0ff;
  margin: 8px auto 0;
  width: 100%;
  box-shadow: 0 0 10px #0ff, 0 0 20px #00f;
  animation: pulseSlow 2s infinite ease-in-out;
}

@keyframes pulseSlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
/* menu */

/* === Base Nav Styling === */

.menu-hamburger a:visited, .menu-hamburger a:focus {
  color: #0ff;
}
.menu-hamburger{
  margin-bottom: 10px;
}

.sci-fi-menu {
  font-family: 'Orbitron', 'Share Tech Mono', monospace;
  list-style: none;
  position: relative;
  top:7px;
  padding: 0;
  border: 2px solid #444;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px #0ff inset;
  z-index: 99;
}

.sci-fi-menu li, .menu li {
  position: relative;
  border-bottom: 1px solid #222;
}

.sci-fi-menu a, .menu a {
  display: block;
  padding: 12px 20px;
  color: #0ff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 5px solid transparent;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.4);
}

.sci-fi-menu li:hover > a, .menu li:hover > a {
  background: #0ff;
  color: #000;
  border-left-color: #ff6;
  box-shadow: inset 0 0 5px #000, 0 0 10px #0ff;
}

/* Submenu styling */
.sci-fi-menu li ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #111;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
}

.sci-fi-menu li:hover > ul {
  display: block;
  animation: menuFadeIn 0.3s ease;
}

.sci-fi-menu ul a {
  padding-left: 40px;
  background: #111;
  border-left: 5px solid #3399ff;
}

.sci-fi-menu ul ul a {
  padding-left: 60px;
  border-left-color: #0ff;
}

/* Optional rounded LCARS block style */
.sci-fi-menu a::before, .menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: currentColor;
}

/* Animation */
@keyframes menuFadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.main-nav {
  position: relative;
}

.main-nav .menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

.main-nav .menu li {
  position: relative;
  list-style: none;
}

.main-nav .menu li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #0056A6;
  font-weight: 500;
}

/* === Dropdown Styling === */

.menu li.menu-item-has-children > a::after {
  content: ' ▼';
  font-size: 0.7em;
}

.menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 0;
}

.menu .sub-menu li {
  border-top: 1px solid #f0f0f0;
}

.menu .sub-menu li a {
  padding: 10px 15px;
  color: #333;
  white-space: nowrap;
}

.menu li.menu-item-has-children:hover > .sub-menu {
  display: flex;
}

  
  /* === Responsive Styles === */
  @media (max-width: 768px) {
  
    .menu-wrapper {
      display: none;
      flex-direction: column;
      background: #fff;
      width: 100%;
      position: absolute;
      top: 100%;
      left: 0;
      box-shadow: 0 4px 8px rgba(0,0,0,0.15);
      z-index: 999;
    }
  
    .menu-wrapper.open {
      display: flex;
    }
  
    .main-nav .menu {
      flex-direction: column;
    }
  
    .main-nav .menu li {
      width: 100%;
    }
  
    .menu .sub-menu {
      position: relative;
      box-shadow: none;
    }
  
    .menu li.menu-item-has-children > a::after {
      content: ' ▶';
      float: right;
    }
  
    .menu li.open > .sub-menu {
      display: flex;
    }
  }
  
  
/* Footer */

#site-footer{
  text-align: center;
  padding: 30px 15px;
  position: absolute;
  bottom:0;
  left:0;
  right:0;
}

.clear-fix::after {
  content: "";
  display: table;
  clear: both;
}

/* Blog index page */

.blog-grid-container {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-post {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.blog-post:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.post-title {
  font-size: 1.25rem;
  margin: 1rem;
}

.post-meta {
  font-size: 0.875rem;
  color: #666;
  margin: 0 1rem 1rem;
}

.pagination {
  margin-top: 2rem;
  text-align: center;
}
canvas{position:fixed;top:0;bottom:0;left:0;right:0;width:100%;height:100%;max-width:100%;max-height:100%;-ms-transform:scale(0.9, 0.9);z-index:-1}

/* Parent container needs to have position: relative */

.sci-fi-panel-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  font-family: 'Orbitron', sans-serif;
  padding: 30px;
  overflow: hidden;
  
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', 'Eurostile', sans-serif;
  color: #0ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1rem 0;
  text-shadow: 0 0 5px #0ff, 0 0 10px #00f;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

/* Specific sizes and glow levels */
h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 1.8rem;
  border-left: 3px solid #0ff;
  padding-left: 0.75rem;
}
h3 {
  font-size: 1.5rem;
  color: #0ff;
  border-top: 1px dashed rgba(0,255,255,0.4);
  padding-top: 0.5rem;
}
h4 {
  font-size: 1.2rem;
  color: #8ff;
}
h5 {
  font-size: 1rem;
  color: #6ff;
}
h6 {
  font-size: 0.9rem;
  color: #4ff;
}
.wp-block-separator { 
  color: #4ff;
  margin-top: 3rem;
}
.sci-fi-panel-container .entry-content h1,.sci-fi-panel-container .entry-content h2 {
  
  color: rgb(161, 255, 255);
  text-align: center;
}
.sci-fi-panel-container .entry-content .wp-block-column {
  width: 100%;
  height: 100%;
  padding: 1rem;
  border: 3px solid rgba(0, 255, 255, 0.7);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  letter-spacing: 0.5px;  /* Optional: adds clarity */
  color: #aefbff;
  box-shadow:
    0 0 8px rgba(0, 255, 255, 0.3),
    0 0 16px rgba(0, 255, 255, 0.2);
  overflow-y: auto;
  text-align: center;
  animation: pulseGlow 3s ease-in-out infinite;
}

.sci-fi-panel-container p,
.sci-fi-panel-container blockquote {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.sci-fi-panel-container blockquote {
  font-style: italic;
  border-left: 2px solid #0ff;
  padding-left: 1rem;
  margin: 1rem 0;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0,255,255,0.5), 0 0 16px rgba(0,255,255,0.3);
  }
  50% {
    box-shadow: 0 0 12px rgba(0,255,255,0.8), 0 0 24px rgba(0,255,255,0.5);
  }
}

.wp-block-list {
  list-style: none;
  margin: 2rem auto;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  color: #0ff;
  position: relative;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.wp-block-list li {
  position: relative;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  background: rgba(0, 255, 255, 0.05);
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.2);
}

/* Triangular ends */
.wp-block-list li::before,
.wp-block-list li::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: solid transparent;
  width: 0;
  height: 0;
}

.wp-block-list li::before {
  left: 0;
  border-right-color: #0ff;
  border-width: 10px 12px 10px 0;
}

.wp-block-list li::after {
  right: 0;
  border-left-color: #0ff;
  border-width: 10px 0 10px 12px;
}
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  background: linear-gradient(90deg, #0ff, #00f);
  color: #000;
  border: 2px solid #0ff;
  padding: 0.5em 1.2em;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 8px #0ff;
  text-shadow: 0 0 5px #00f;
}

button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  background: #000;
  color: #0ff;
  border-color: #00f;
  box-shadow: 0 0 15px #00f, 0 0 25px #0ff;
}

.wp-block-list strong{
  display: inline;
}

blockquote {
  border-left: 4px solid #0ff;
  margin: 1.5em 0;
  padding: 0.8em 1em;
  background: rgba(0, 255, 255, 0.05);
  font-style: italic;
  color: #ccc;
  position: relative;
}

blockquote::before {
  content: "❝";
  font-size: 2em;
  position: absolute;
  top: -10px;
  left: 10px;
  color: #0ff;
  opacity: 0.4;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0ff;
  padding: 0.5em 1em;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 30px;
}

.entry-toggle {
  background: transparent;
  border: 2px solid #0ff;
  color: #0ff;
  font-size: 1.2rem;
  width: 2rem;
  height: 2rem;
  line-height: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #0ff;
  font-family: 'Orbitron', sans-serif;
}

.entry-toggle:hover {
  background: #0ff;
  color: #000;
}

.entry-content {
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 1;
}

.entry-content.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 !important;
  margin: 0 !important;
}
pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #00ffcc;
  background-color: rgba(0, 20, 30, 0.8);
  border: 2px solid #00ffcc;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  max-width: 100%;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.3);
  margin: 1.5rem 0;
}

/* Optional: scanline animation overlay */
pre::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 204, 0.05) 0px,
    rgba(0, 255, 204, 0.05) 2px,
    transparent 2px,
    transparent 4px
  );
  animation: flicker 2s infinite;
}

/* Flicker effect (optional) */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 22%, 55% {
    opacity: 0.85;
  }
}