/*
Theme Name: CodeDen Custom
Theme URI: https://example.com/codeden-custom
Author: CodeDen
Author URI: https://example.com
Description: A custom block theme starter for a personal website.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codeden-custom
Tags: full-site-editing, block-patterns, custom-colors, custom-logo
*/

body {
  margin: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
label,
summary,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

::selection {
  background: #08ef7b;
  color: #000;
  text-shadow: none;
}

::-moz-selection {
  background: #08ef7b;
  color: #000;
  text-shadow: none;
}

.home .wp-site-blocks {
  min-height: 100vh;
}

.home .wp-site-blocks > header,
.home .wp-site-blocks > footer {
  position: relative;
  z-index: 50;
}

/* CRT terminal chrome: scanlines + phosphor glow, applied site-wide */

body {
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.16) 0px,
    rgba(0, 0, 0, 0.16) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

h1, h2, h3, h4, h5, h6,
.wp-block-post-title a {
  text-shadow: 0 0 10px rgba(57, 255, 106, 0.45);
}

a {
  text-shadow: 0 0 6px rgba(57, 255, 106, 0.35);
}

/* No flicker animation on the scanline overlay — the periodic brightness
   pulse over the whole screen was headache-inducing. Static scanlines only. */

.codeden-nav-brackets .wp-block-navigation-item__content {
  text-transform: uppercase;
}

.codeden-nav-brackets .wp-block-navigation-item__content::before {
  content: "[ ";
  opacity: 0.6;
}

.codeden-nav-brackets .wp-block-navigation-item__content::after {
  content: " ]";
  opacity: 0.6;
}

.codeden-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.15em;
  background: var(--wp--preset--color--ink);
  vertical-align: text-bottom;
}

@media (prefers-reduced-motion: no-preference) {
  .codeden-cursor {
    animation: codeden-blink 1s steps(2) infinite;
  }
}

@keyframes codeden-blink {
  50% { opacity: 0; }
}
