/*
Theme Name: Pyn's Cyber Nexus
Theme URI: https://example.com
Author: Pyn
Description: A wacky 90s aesthetic theme with neon green text, starfields, and Windows 95 vibes.
Version: 1.0
*/

/* * 90s AESTHETIC STYLESHEET 
 * "If it doesn't hurt your eyes, it's not working."
 */

:root {
    --neon-green: #00ff00;
    --matrix-dark: #0d0208;
    --win95-gray: #c0c0c0;
    --win95-dark: #808080;
    --hot-pink: #ff00ff;
    --link-blue: #0000ff;
    --electric-blue: #00ffff;
}

body {
    background-color: #000000;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    color: var(--neon-green);
    font-family: 'VT323', monospace;
    overflow-x: hidden;
}

/* Scrollbar aesthetics */
::-webkit-scrollbar {
    width: 16px;
}
::-webkit-scrollbar-track {
    background: var(--win95-gray);
    border-left: 2px solid white;
}
::-webkit-scrollbar-thumb {
    background: var(--win95-gray);
    border: 2px outset white;
    box-shadow: inset -1px -1px 0 0 black;
}

.font-retro {
    font-family: 'Press Start 2P', cursive;
}

/* 3D Borders mimicking Windows 95 / HTML Tables */
.win95-box {
    background-color: var(--win95-gray);
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    color: black;
}

.win95-inset {
    background-color: white;
    border-top: 2px solid #000000;
    border-left: 2px solid #000000;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.retro-btn {
    background: var(--win95-gray);
    border: 2px outset #ffffff;
    color: black;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    transition: all 0.1s;
    display: inline-block;
    text-decoration: none;
    padding: 0.5rem;
}

.retro-btn:active {
    border: 2px inset #ffffff;
    transform: translateY(2px);
}

/* CRT Scanline Effect */
.scanlines {
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 9999;
    pointer-events: none;
}

/* Animations */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
.blink {
    animation: blink 1s step-end infinite;
}

@keyframes rainbow {
    0% { color: red; }
    14% { color: orange; }
    28% { color: yellow; }
    42% { color: green; }
    57% { color: blue; }
    71% { color: indigo; }
    85% { color: violet; }
    100% { color: red; }
}
.rainbow-text {
    animation: rainbow 2s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.css-marquee {
    white-space: nowrap;
    overflow: hidden;
    display: block;
}
.css-marquee span {
    display: inline-block;
    animation: marquee 15s linear infinite;
}

/* Custom Cursor */
body {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='30' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>👆</text></svg>") 16 0, auto;
}

a { 
    
}

a:hover {
    color: red;
    background-color: yellow;
    cursor: help;
}

.post-card {
    border: 4px ridge var(--electric-blue);
    background: #000033;
    transition: transform 0.2s;
}
.post-card:hover {
    transform: scale(1.02);
    border-color: var(--hot-pink);
}

/* WordPress Specifics */
.nav-menu { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.nav-menu li a { text-decoration: underline; color: #1e3a8a; } /* blue-900 */
.nav-menu li a:hover { text-decoration: none; }

/* ================================
   PUZZLE PRELOADER STYLES
   ================================ */
#retro-puzzle-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 100000; /* Above scanlines and everything */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
    /* Dotted background pattern */
    background-image: radial-gradient(#333 15%, transparent 16%);
    background-size: 10px 10px;
}

.puzzle-container {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 20px;
}

.puzzle-piece {
    width: 28px;
    height: 28px;
    position: absolute;
    /* Beveled 90s button look */
    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
}

/* Four Corner Colors & Positions */
.p-top-left {
    background-color: var(--hot-pink);
    top: 0; left: 0;
    animation: puzzle-move-1 2s infinite ease-in-out;
}
.p-top-right {
    background-color: var(--electric-blue);
    top: 0; right: 0;
    animation: puzzle-move-2 2s infinite ease-in-out;
}
.p-btm-left {
    background-color: yellow;
    bottom: 0; left: 0;
    animation: puzzle-move-3 2s infinite ease-in-out;
}
.p-btm-right {
    background-color: var(--neon-green);
    bottom: 0; right: 0;
    animation: puzzle-move-4 2s infinite ease-in-out;
}

/* Puzzle Animations: Expand out, then snap in */
@keyframes puzzle-move-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, -15px); }
}
@keyframes puzzle-move-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -15px); }
}
@keyframes puzzle-move-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, 15px); }
}
@keyframes puzzle-move-4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, 15px); }
}

.loading-text {
    font-family: 'Press Start 2P', cursive;
    color: white;
    font-size: 1rem;
    margin-top: 1rem;
    text-shadow: 2px 2px #ff0000;
    animation: blink 1s steps(2, start) infinite;
}