/*
Theme Name: Cyberpunk Eyecandy
Theme URI: https://your-website.com/cyberpunk-eyecandy
Author: Kim Keith
Author URI: https://your-website.com
Description: A high-impact, responsive block theme for the digital sprawl. Features gunmetal chassis overlays, silicon glass textures, and neon circuitry accents. Not for the faint of heart.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cyberpunk-eyecandy
Tags: full-site-editing, block-themes, dark, two-columns, custom-colors, portfolio
*/

.is-style-neon-glow {
    border: 2px solid var(--wp--preset--color--neon-cyan);
    box-shadow: 0 0 10px var(--wp--preset--color--neon-cyan), 
                inset 0 0 5px var(--wp--preset--color--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
    clip-path: polygon(0% 0%, 95% 0%, 100% 5%, 100% 100%, 5% 100%, 0% 95%);
    padding: 20px;
}

/* The Metal Frame */
.cyber-metal-frame {
    --neon-cyan: #00f3ff;
    /* This creates a dark, brushed metal effect */
    background: 
        linear-gradient(135deg, #1a1a1d 25%, #2a2a2d 50%, #1a1a1d 75%);
    background-size: 400% 400%;
    padding: 30px;
    position: relative;
    clip-path: polygon(0% 20px, 20px 0%, 95% 0%, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 5% 100%, 0% calc(100% - 20px));
    border: 1px solid rgba(0, 243, 255, 0.3);
}

/* The Circuitry Overlay */
.cyber-metal-frame::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.15; /* Subtle enough not to distract */
    pointer-events: none;
    /* A repeating SVG pattern of circuitry lines */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 H90 V90 H10 Z M50 10 V30 M10 50 H30 M70 50 H90 M50 70 V90' fill='none' stroke='%2300f3ff' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='30' r='2' fill='%2300f3ff'/%3E%3Ccircle cx='30' cy='50' r='2' fill='%2300f3ff'/%3E%3C/svg%3E");
}

/* The Neon Glow Border */
.cyber-glow-edge {
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan), inset 0 0 10px var(--neon-cyan);
    margin: 10px;
    background: rgba(0, 0, 0, 0.85); /* Darker overlay for text legibility */
}


/* The "Window" where the user content goes */
.cyber-window {
    background: #000;
    border: 2px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 30px #000; /* Makes it look recessed */
}

/* Typography Glitch Hint */
.cyber-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px var(--neon-color);
    color: #fff;
}

/* Navigation Bar Container */
.cyber-nav-bar {
    background: linear-gradient(180deg, #2a2a2d 0%, #1a1a1d 100%);
    border-bottom: 2px solid var(--neon-cyan, #00f3ff);
    padding: 10px 20px;
    clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%); /* Angled bottom edges */
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Individual Menu Links */
.cyber-nav-bar .wp-block-navigation-item__content {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 15px !important;
    position: relative;
    transition: all 0.3s ease;
}

/* Hover Effect: The "Data Port" Glow */
.cyber-nav-bar .wp-block-navigation-item__content:hover {
    color: var(--neon-cyan, #00f3ff) !important;
    text-shadow: 0 0 8px var(--neon-cyan, #00f3ff);
    background: rgba(0, 243, 255, 0.05);
}

/* The "System Online" Pulse */
.cyber-status-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff00; /* Toxic Green */
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* The Grid Container */
.cyber-card-grid {
    display: grid;
    gap: 20px;
    margin: 40px 0;
}

/* Grid Variances */
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* The Data Card */
.cyber-data-card {
    background: linear-gradient(145deg, #2d2d30, #1b1b1e); /* Gunmetal */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Angled "Chip" corner on bottom right */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.cyber-data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 243, 255, 0.2);
}

/* The Subtle Circuitry Accent on each card */
.cyber-data-card::before {
    content: "";
    position: absolute;
    top: 5px; right: 5px;
    width: 30px; height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 h10 v10' fill='none' stroke='%2300f3ff' stroke-width='0.5' opacity='0.4'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Style for icons/images inside cards */
.cyber-data-card img, .cyber-data-card .wp-block-image {
    border-bottom: 1px solid var(--neon-cyan);
    margin-bottom: 15px;
    filter: grayscale(0.5) contrast(1.2);
}

.cyber-data-card-option svg {
    filter: drop-shadow(0 0 5px var(--neon-cyan));
}

/* 4-Column Specific Grid */
.grid-4 { 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
}

/* Your custom SVG Glow class */
.cyber-data-card-option svg, 
.cyber-data-card-option img {
    filter: drop-shadow(0 0 8px var(--neon-cyan));
    transition: filter 0.3s ease;
    max-width: 60px; /* Keeping icons uniform */
    margin: 0 auto 15px auto;
    display: block;
}

.cyber-data-card-option:hover svg {
    filter: drop-shadow(0 0 12px var(--neon-cyan)) brightness(1.2);
    animation: neon-flicker 0.2s infinite alternate;
}

@keyframes neon-flicker {
    from { opacity: 1; }
    to { opacity: 0.8; }
}

/* The Text Chassis Plate */
.cyber-chassis-plate {
    background: #0d0d0f; /* Even darker than gunmetal */
    padding: 60px 40px;
    position: relative;
    border-left: 4px solid var(--neon-pink, #ff00ff);
    box-shadow: 20px 0 50px rgba(0,0,0,0.8);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* The Data Port Cutouts (Visual Interest at bottom) */
.cyber-chassis-plate::after {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 40px;
    width: 100px;
    height: 10px;
    /* Creates 3 small rectangular port holes */
    background: repeating-linear-gradient(
        90deg,
        var(--neon-cyan) 0%,
        var(--neon-cyan) 20%,
        transparent 20%,
        transparent 40%
    );
    opacity: 0.6;
}

/* Glitch Typography Effect */
.cyber-glitch {
    position: relative;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
}

.cyber-glitch::before, .cyber-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.8;
}

.cyber-glitch:hover::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.cyber-glitch:hover::after {
    left: -2px;
    text-shadow: -2px 0 #00f3ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(31px, 9999px, 94px, 0); }
  20% { clip: rect(62px, 9999px, 42px, 0); }
  /* ... simplified for brevity ... */
  100% { clip: rect(89px, 9999px, 98px, 0); }
}

/* --- Crew Manifest (Team) --- */
.cyber-team-card {
    position: relative;
    background: #0a0a0c;
    border: 1px solid #333;
    overflow: hidden;
}

/* The circular metal window */
.cyber-viewport {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    border: 8px solid #1a1a1d; /* Gunmetal rim */
    outline: 2px solid var(--neon-cyan);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.cyber-team-info {
    background: linear-gradient(145deg, #2d2d30, #1b1b1e); /* Gunmetal Plate */
    padding: 20px;
    margin-top: -30px; /* Slight overlap */
    position: relative;
    z-index: 2;
}

/* --- Silicon Glass (CTA) --- */
.cyber-cta-box {
    background: rgba(10, 10, 12, 0.7); /* Smoky Dark */
    backdrop-filter: blur(12px); /* Silicon Glass effect */
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 60px;
    text-align: center;
    position: relative;
}

.cyber-cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--neon-cyan), transparent, var(--neon-pink)) border-box;
    
    /* Standard Mask Property */
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;

    /* Vendor Prefix for Chrome/Safari compatibility */
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    
    opacity: 0.5;
}

/* Table Grid */
.cyber-table-grid {
    display: flex;
    gap: 15px;
    align-items: stretch;
    padding: 40px 20px;
}

/* Base Card Logic */
.cyber-tier-card {
    flex: 1;
    padding: 40px 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cyber-tier-card:hover {
    transform: translateY(-15px); /* The "Scoot Up" */
    z-index: 10;
}

/* Outer Cards: Gunmetal */
.tier-outer {
    background: #1b1b1e;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    border-top: 2px solid #333;
}

/* Center Card: Silicon Glass */
.tier-center {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

/* The Stamped Badge Area */
.cyber-badge-stamp {
    width: 80%;
    margin: -50px auto 20px auto; /* Pulls it up to "stamp" the top */
    background: #0a0a0c;
    padding: 5px 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8); /* Makes it look hammered in */
    color: var(--neon-cyan);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Bullet List Styling */
.cyber-tier-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.cyber-tier-card li::before {
    content: ">>";
    margin-right: 10px;
    color: var(--neon-cyan);
    font-size: 0.8rem;
}

/* Footer Container */
.cyber-footer {
    background: #050506;
    border-top: 1px solid #1a1a1d;
    padding: 60px 40px 20px 40px;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9);
}

/* Neon Top Leak */
.cyber-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Sitemap Styling */
.cyber-sitemap .wp-block-navigation-item__content {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    text-transform: lowercase;
    opacity: 0.7;
    transition: all 0.2s;
}

.cyber-sitemap .wp-block-navigation-item__content::before {
    content: "./";
    color: var(--neon-pink);
}

.cyber-sitemap .wp-block-navigation-item__content:hover {
    opacity: 1;
    color: var(--neon-cyan) !important;
    padding-left: 5px;
}

/* Terminal Socials */
.cyber-socials a {
    font-family: 'Courier New', monospace;
    text-decoration: none;
    font-size: 0.75rem;
    border: 1px solid #333;
    padding: 3px 8px;
    margin-right: 10px;
    color: #666;
}

.cyber-socials a:hover {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink);
}

/* Logo/Serial Section */
.cyber-signature {
    text-align: right;
    border-left: 1px solid #1a1a1d;
    padding-left: 20px;
}

.cyber-serial {
    font-size: 0.6rem;
    color: #444;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Cyberpunk Form Inputs */
input[type="text"], input[type="email"], input[type="password"], textarea {
    background: rgba(26, 26, 29, 0.8) !important;
    border: 1px solid #333 !important;
    border-left: 3px solid var(--wp--preset--color--neon-primary) !important;
    color: #fff !important;
    font-family: 'JetBrains Mono', monospace;
    padding: 12px !important;
    border-radius: 0 !important;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--wp--preset--color--neon-primary) !important;
    box-shadow: 0 0 10px var(--wp--preset--color--neon-primary) !important;
    outline: none;
}

/* Custom Contact Form Container */
/* Contact Section Styling */
.cyber-contact-container {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-cyan);
    padding: 50px;
    margin: 40px 0;
    position: relative;
}

.cyber-contact-container::before {
    content: "ENCRYPTED_UPLINK";
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--neon-cyan);
    color: #000;
    font-size: 0.6rem;
    padding: 2px 8px;
    font-weight: 900;
}

.cyber-comms-label {
    color: var(--neon-pink);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.cyber-contact-form {
    background: #0d0d0f;
    padding: 40px;
    border: 1px solid #1a1a1d;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 10px) 100%, 0 100%);
}

.error404 .site-main::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 243, 255, 0.3);
    opacity: 0.1;
    z-index: 9999;
    pointer-events: none;
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% { top: 0; }
    100% { top: 100%; }
}