/* ==========================================================================
   RETRO 8-BIT DECORATIVE STYLES
   ========================================================================== */

/* Neon glow text animation */
@keyframes neon-pulse-pink {
    0%, 100% { text-shadow: 0 0 6px #FF006E, 0 0 16px #FF006E, 0 0 30px #FF006E, 0 0 50px rgba(255,0,110,0.4); }
    50%       { text-shadow: 0 0 2px #FF006E, 0 0 8px #FF006E; }
}

@keyframes neon-pulse-cyan {
    0%, 100% { text-shadow: 0 0 6px #00D9FF, 0 0 16px #00D9FF, 0 0 30px #00D9FF, 0 0 50px rgba(0,217,255,0.4); }
    50%       { text-shadow: 0 0 2px #00D9FF, 0 0 8px #00D9FF; }
}

@keyframes pixel-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes scanline-scroll {
    from { background-position: 0 0; }
    to   { background-position: 0 100%; }
}

/* Apply to hero heading */
.hero-title .highlight {
    animation: neon-pulse-pink 2.5s ease-in-out infinite;
}

.hero-title .highlight-cyan {
    animation: neon-pulse-cyan 2.5s ease-in-out infinite;
}

/* Cursor blink */
.cursor-blink::after {
    content: '█';
    animation: pixel-blink 1s step-end infinite;
    color: var(--neon-cyan);
}

/* Pixel border utility */
.pixel-border-pink {
    border: 3px solid var(--neon-pink);
    box-shadow:
        6px 6px 0 0 rgba(255, 0, 110, 0.15),
        -2px -2px 0 0 rgba(0, 217, 255, 0.15);
}

.pixel-border-cyan {
    border: 3px solid var(--neon-cyan);
    box-shadow:
        6px 6px 0 0 rgba(0, 217, 255, 0.15),
        -2px -2px 0 0 rgba(255, 0, 110, 0.15);
}

/* Scanline overlay on hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.09),
        rgba(0, 0, 0, 0.09) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Retro grid background helper */
.retro-grid {
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Neon glow for important section borders */
.section-glow-pink {
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.15), inset 0 0 40px rgba(255, 0, 110, 0.03);
}

.section-glow-cyan {
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.15), inset 0 0 40px rgba(0, 217, 255, 0.03);
}

/* "PRESS START" blinking label */
.press-start {
    font-family: var(--font-arcade);
    font-size: 12px;
    color: var(--neon-yellow);
    animation: pixel-blink 1.2s step-end infinite;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Score/counter display */
.score-display {
    font-family: var(--font-arcade);
    font-size: 24px;
    color: var(--neon-yellow);
    background: var(--bg-primary);
    border: 3px solid var(--neon-yellow);
    padding: 8px 16px;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
    letter-spacing: 4px;
}

/* Loading progress bar (pixel style) */
.progress-bar-wrap {
    height: 16px;
    background: var(--bg-tertiary);
    border: 2px solid var(--neon-cyan);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        var(--neon-cyan) 0px,
        var(--neon-cyan) 8px,
        rgba(0, 217, 255, 0.5) 8px,
        rgba(0, 217, 255, 0.5) 12px
    );
    transition: width 0.4s ease;
}

/* Star rating (pixel style) */
.pixel-stars {
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--neon-yellow);
    text-shadow: 0 0 6px rgba(255, 255, 0, 0.5);
}

/* Neon divider with pulse */
.divider-neon {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--neon-pink) 20%,
        var(--neon-cyan) 50%,
        var(--neon-pink) 80%,
        transparent 100%
    );
    margin: 32px 0;
    box-shadow: 0 0 8px rgba(255, 0, 110, 0.4);
}

/* Glow on interactive card hover */
.graded-card-item:hover::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255,0,110,0.1), rgba(0,217,255,0.1));
    pointer-events: none;
    z-index: 0;
}

/* Section label with terminal prompt style */
.section-label::before { content: '>> '; }
.section-label::after  { content: ''; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination ul {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
}

.pagination ul li a,
.pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 2px solid var(--bg-tertiary);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination ul li a:hover,
.pagination ul li.active span {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

.pagination ul li.active span {
    background: rgba(0, 217, 255, 0.1);
}

/* Search form */
.search-form {
    display: flex;
    gap: 0;
}

.search-form input[type="search"] {
    flex: 1;
}

.search-form button {
    padding: 12px 20px;
    background: var(--neon-cyan);
    color: var(--bg-primary);
    border: 2px solid var(--neon-cyan);
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.search-form button:hover {
    background: transparent;
    color: var(--neon-cyan);
}

/* WP Editor content area styles (for page content) */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--neon-cyan);
    margin: 24px 0 12px;
}

.entry-content ul,
.entry-content ol {
    list-style: initial;
    padding-left: 24px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 6px;
}

.entry-content a {
    color: var(--neon-cyan);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--neon-pink);
}

.entry-content blockquote {
    border-left: 4px solid var(--neon-pink);
    padding: 12px 24px;
    margin: 24px 0;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-style: italic;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.entry-content table th {
    background: var(--bg-tertiary);
    color: var(--neon-cyan);
    padding: 10px 14px;
    text-align: left;
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--neon-cyan);
}

.entry-content table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--bg-tertiary);
    color: var(--text-light);
    font-size: 14px;
}

/* ==========================================================================
   RGB SPLIT & GLITCH UTILITIES
   ========================================================================== */

/* Static RGB split on hover for interactive elements */
.rgb-split:hover {
    filter: drop-shadow(-2px 0 0 rgba(0, 217, 255, 0.4)) drop-shadow(2px 0 0 rgba(255, 0, 110, 0.4));
}

/* Animated glitch text class */
@keyframes text-glitch {
    0%, 85%, 100% {
        text-shadow: inherit;
        transform: none;
    }
    86% {
        text-shadow: -4px 0 0 rgba(0, 217, 255, 0.9), 4px 0 0 rgba(255, 0, 110, 0.9);
        transform: translateX(3px);
    }
    87% {
        text-shadow: 4px 0 0 rgba(0, 217, 255, 0.9), -4px 0 0 rgba(255, 0, 110, 0.9);
        transform: translateX(-3px) skew(2deg);
    }
    88% {
        text-shadow: -1px 0 0 rgba(0, 217, 255, 0.4), 1px 0 0 rgba(255, 0, 110, 0.4);
        transform: none;
    }
}

.glitch-text {
    animation: text-glitch 7s ease infinite;
}

/* Pixel-art progress bar (enhanced) */
@keyframes pixel-scan {
    0%   { background-position: 0 0; }
    100% { background-position: 48px 0; }
}

/* CRT phosphor afterglow on links */
a:hover {
    text-shadow: 0 0 8px currentColor;
}

/* Neon underline on nav items — already handled via border-bottom */

/* Step item neon corner accents */
.step-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 10px; height: 10px;
    border-top: 2px solid var(--neon-pink);
    border-left: 2px solid var(--neon-pink);
    opacity: 0;
    transition: opacity 0.2s;
}

.step-item::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 10px; height: 10px;
    border-bottom: 2px solid var(--neon-cyan);
    border-right: 2px solid var(--neon-cyan);
    opacity: 0;
    transition: opacity 0.2s;
}

.step-item:hover::before,
.step-item:hover::after {
    opacity: 1;
}

/* Package card pixel shadow */
.package-card {
    box-shadow: 4px 4px 0 rgba(0, 60, 80, 0.6);
}

.package-card.featured {
    box-shadow: 4px 4px 0 rgba(100, 0, 30, 0.6), var(--glow-pink);
}

.package-card:hover {
    box-shadow: 6px 6px 0 rgba(0, 60, 80, 0.8), var(--glow-cyan);
    transform: translate(-2px, -5px);
}
