/*
Theme Name: Cyberpunk Theme
Theme URI: https://example.com/solvingpromptinjection-theme
Author: Codex
Author URI: https://example.com
Description: Dark cyberpunk WordPress theme with neon glow, code rain, and glitch effects.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cyberpunk-theme
Tags: dark, cyberpunk, neon, responsive, blog
*/

:root {
  --bg-900: #0a0a0f;
  --bg-800: #111122;
  --bg-700: #15152a;
  --neon-cyan: #00f0ff;
  --neon-purple: #9b59ff;
  --neon-green: #00ff88;
  --text-100: #e6f1ff;
  --text-200: #b7c0d8;
  --glow-cyan: 0 0 12px rgba(0, 240, 255, 0.45), 0 0 30px rgba(0, 240, 255, 0.25);
  --glow-purple: 0 0 12px rgba(155, 89, 255, 0.5), 0 0 30px rgba(155, 89, 255, 0.3);
  --card-border: rgba(0, 240, 255, 0.35);
  --pattern-url: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2320263b' stroke-width='1'%3E%3Cpath d='M20 0v160M80 0v160M140 0v160'/%3E%3Cpath d='M0 20h160M0 80h160M0 140h160'/%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3Ccircle cx='80' cy='80' r='4'/%3E%3Ccircle cx='140' cy='140' r='4'/%3E%3Cpath d='M20 20L80 80L140 20'/%3E%3Cpath d='M20 140L80 80L140 140'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, rgba(0, 240, 255, 0.08), transparent 45%),
    linear-gradient(135deg, var(--bg-900), var(--bg-800));
  color: var(--text-100);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
}

a:hover:not(.hero-cta) {
  color: var(--neon-purple);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 6vw;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.site-branding .logo-icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(var(--glow-cyan));
}

.primary-menu {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
}

.primary-menu a {
  position: relative;
  padding-bottom: 0.25rem;
}

.primary-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: width 0.3s ease;
}

.primary-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--text-100);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 6vw 4rem;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(12, 12, 22, 0.95), rgba(9, 9, 15, 0.98));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-url);
  opacity: 0.25;
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.glitch {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  text-transform: uppercase;
  position: relative;
  color: var(--text-100);
  text-shadow: var(--glow-cyan);
  margin-bottom: 1rem;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--neon-cyan);
  clip-path: inset(0 0 0 0);
  animation: glitch-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--neon-purple);
  clip-path: inset(0 0 0 0);
  animation: glitch-2 3s infinite linear alternate-reverse;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-200);
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: var(--glow-cyan);
  font-family: "JetBrains Mono", monospace;
  color: var(--text-100);
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-cta:hover {
  background: rgba(155, 89, 255, 0.5);
  border: 1px solid rgba(155, 89, 255, 1);
  box-shadow: 0 0 30px rgba(155, 89, 255, 0.6), 0 0 60px rgba(155, 89, 255, 0.2);
  color: #fff;
}
.hero-cta::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.6);
  opacity: 0;
  animation: pulse 2.4s infinite;
}

.section {
  padding: 4.5rem 6vw;
  background: var(--bg-800);
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-url);
  opacity: 0.2;
  pointer-events: none;
}

.section h2,
.section h3 {
  font-family: "JetBrains Mono", monospace;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.home .content-grid {
  grid-template-columns: 1fr;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.card {
  position: relative;
  padding: 1.75rem;
  border-radius: 16px;
  background: rgba(15, 15, 32, 0.8);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(155, 89, 255, 0.6);
  box-shadow: 0 0 26px rgba(155, 89, 255, 0.35);
}

.card .meta {
  font-size: 0.85rem;
  color: var(--text-200);
}

.card-title {
  font-family: "JetBrains Mono", monospace;
  margin: 0.6rem 0 0.8rem;
}

.card-title a {
  color: var(--text-100);
}

.card-excerpt {
  color: var(--text-200);
}

.sidebar {
  position: relative;
  z-index: 1;
}

.widget {
  background: rgba(12, 12, 24, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--glow-cyan);
  margin-bottom: 2rem;
}

.widget-title {
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 1rem;
}

.threat-meter {
  display: grid;
  gap: 0.6rem;
}

.threat-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.threat-bar span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  box-shadow: var(--glow-purple);
  animation: threat-pulse 2s infinite alternate;
}

.threat-level {
  font-family: "JetBrains Mono", monospace;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
}

.entry-content {
  position: relative;
  z-index: 1;
}

.entry-content pre {
  background: #020409;
  border: 1px solid rgba(0, 255, 136, 0.4);
  padding: 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.2);
}

.entry-content code {
  font-family: "JetBrains Mono", monospace;
  color: var(--neon-green);
}

.entry-meta {
  color: var(--text-200);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.footer {
  background: #06060c;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  padding: 2.5rem 6vw;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-url);
  opacity: 0.18;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
}

.footer-icon {
  width: 42px;
  height: 42px;
  filter: drop-shadow(var(--glow-purple));
}

@keyframes glitch-1 {
  0% {
    clip-path: inset(80% 0 0 0);
  }
  20% {
    clip-path: inset(10% 0 70% 0);
  }
  40% {
    clip-path: inset(50% 0 20% 0);
  }
  60% {
    clip-path: inset(30% 0 50% 0);
  }
  80% {
    clip-path: inset(60% 0 30% 0);
  }
  100% {
    clip-path: inset(20% 0 60% 0);
  }
}

@keyframes glitch-2 {
  0% {
    clip-path: inset(20% 0 60% 0);
  }
  25% {
    clip-path: inset(50% 0 20% 0);
  }
  50% {
    clip-path: inset(10% 0 70% 0);
  }
  75% {
    clip-path: inset(60% 0 20% 0);
  }
  100% {
    clip-path: inset(30% 0 40% 0);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.1;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes threat-pulse {
  0% {
    filter: brightness(1);
  }
  100% {
    filter: brightness(1.5);
  }
}

@media (max-width: 768px) {
  .site-branding span,
  .site-branding .site-title-text {
    display: none;
  }
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .primary-menu {
    position: absolute;
    top: 100%;
    right: 6vw;
    background: rgba(10, 10, 15, 0.95);
    flex-direction: column;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    box-shadow: var(--glow-cyan);
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .primary-menu.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 5rem 6vw 3rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .nav-wrap {
    padding: 0.85rem 6vw;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Contact Form 7 Cyberpunk Styling */
.wpcf7 input[type='text'],
.wpcf7 input[type='email'],
.wpcf7 textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(15, 15, 32, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-100);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7 input[type='text']:focus,
.wpcf7 input[type='email']:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7 input[type='submit'] {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: transparent;
  border: 2px solid var(--accent-cyan);
  border-radius: 8px;
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.wpcf7 input[type='submit']:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.wpcf7 p {
  margin-bottom: 1.25rem;
}

/* === Cyberpunk Form Styling === */
.wpcf7 select,
.wpcf7 .wpcf7-select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 6px;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300f0ff' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.wpcf7 select:hover,
.wpcf7 .wpcf7-select:hover {
    border-color: #00f0ff;
    background-color: rgba(0, 240, 255, 0.08);
}
.wpcf7 select:focus,
.wpcf7 .wpcf7-select:focus {
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25), inset 0 0 6px rgba(0, 240, 255, 0.05);
}
.wpcf7 select option {
    background: #0a0a1a;
    color: #e0e0e0;
    padding: 0.5rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 6px;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25), inset 0 0 6px rgba(0, 240, 255, 0.05);
}
.wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: transparent;
    border: 2px solid #00f0ff;
    color: #00f0ff;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    margin-top: 1rem;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.1);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}
.wpcf7 .cf7-row {
    margin-bottom: 1.2rem;
}
.wpcf7 .cf7-row label {
    display: block;
    margin-bottom: 0.4rem;
    color: #00f0ff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.wpcf7 ::placeholder {
    color: rgba(224, 224, 224, 0.3);
}

/* === Plan Cards Grid === */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (max-width: 768px) {
    .plan-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}
