/*
Theme Name: SCUD1
Theme URI: https://cortexfrequencyresearch.org
Author: Christian - S.C.U.D. Research Program
Author URI: https://cortexfrequencyresearch.org
Description: Terminal-style cyberpunk theme for S.C.U.D. Research Program - Computer terminal aesthetic with pixelated elements and space frequency visualization
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scud1
Tags: dark, terminal, cyberpunk, research, retro-computing

S.C.U.D. Research Program Terminal Interface
*/

/* Font Face - Terminal Style */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Roboto+Mono:wght@300;400;700&display=swap');

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Terminal Color Scheme - Pure Black & White */
    --primary: #ffffff;           /* Pure white */
    --primary-dim: #cccccc;       /* Dimmed white */
    --secondary: #888888;         /* Medium grey */
    --accent: #aaaaaa;            /* Light grey */
    --bg-pure: #000000;           /* Pure black */
    --bg-dark: #0a0a0a;           /* Near black */
    --bg-darker: #050505;         /* Darker than black */
    --text-primary: #e0e0e0;      /* Light grey text */
    --text-secondary: #999999;    /* Medium grey text */
    --text-dim: #666666;          /* Dim grey text */
    --border: #333333;            /* Dark grey border */
    --border-bright: #ffffff;     /* White border */
    --scanline: rgba(255, 255, 255, 0.02);
    --glow: rgba(255, 255, 255, 0.3);
    --shadow: rgba(0, 0, 0, 0.8);
}

/* Body - Terminal Background */
body {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-pure);
    font-size: 14px;
    font-weight: 300;
    position: relative;
}

/* CRT Scanline Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 1px,
        var(--scanline) 1px,
        var(--scanline) 2px
    );
    pointer-events: none;
    z-index: 9999;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.95; }
}

/* CRT Glow Effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 9998;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--bg-pure);
    text-shadow: none;
}

/* Scrollbar - Terminal Style */
::-webkit-scrollbar {
    width: 10px;
    background: var(--bg-pure);
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-left: 1px solid var(--border);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border: 1px solid var(--border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dim);
}

/* Typography - Terminal Style */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'VT323', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--glow);
}

h1 {
    font-size: 3rem;
    letter-spacing: 4px;
}

h2 {
    font-size: 2.2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

h2::before {
    content: '> ';
    color: var(--primary);
}

h3 {
    font-size: 1.6rem;
    letter-spacing: 2px;
}

h3::before {
    content: '>> ';
    color: var(--secondary);
}

h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-weight: 300;
}

/* Links - Terminal Style */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
    font-weight: 400;
}

a:hover {
    text-shadow: 0 0 8px var(--glow);
    border-bottom: 1px solid var(--primary);
}

/* Pixelated Border Elements */
.pixel-border {
    border: 2px solid var(--border);
    border-image: repeating-linear-gradient(
        45deg,
        var(--border) 0px,
        var(--border) 2px,
        transparent 2px,
        transparent 4px
    ) 1;
}

/* Container */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Terminal Style */
.site-header {
    background: var(--bg-dark);
    border-bottom: 3px double var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'VT323', monospace;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px var(--glow);
    font-family: 'VT323', monospace;
    letter-spacing: 3px;
}

.site-logo:hover {
    text-shadow: 0 0 15px var(--glow);
    border: none;
}

.logo-bracket {
    color: var(--secondary);
    font-size: 2.5rem;
}

/* ASCII Art Logo */
.ascii-logo {
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
    line-height: 1;
    color: var(--primary);
    white-space: pre;
}

/* Navigation - Terminal Menu */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    border-right: 1px solid var(--border);
}

.main-navigation li:first-child {
    border-left: 1px solid var(--border);
}

.main-navigation a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s;
    padding: 0.8rem 1.5rem;
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
}

.main-navigation a:hover,
.main-navigation a.active {
    background: var(--bg-pure);
    color: var(--primary);
    text-shadow: 0 0 8px var(--glow);
}

/* Hero Section - Terminal Header */
.hero-section {
    background: var(--bg-pure);
    padding: 4rem 2rem;
    border-bottom: 3px double var(--border);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow);
    font-family: 'VT323', monospace;
    letter-spacing: 6px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
}

.hero-tagline::before {
    content: '$ ';
    color: var(--primary);
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: normal;
    font-family: 'Roboto Mono', monospace;
}

.terminal-prompt {
    color: var(--primary);
    font-weight: 400;
}

/* Main Content */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Cards - Terminal Boxes */
.card {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        var(--border) 4px,
        var(--border) 5px
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover {
    border-color: var(--primary);
    background: var(--bg-darker);
}

.card:hover::before {
    opacity: 0.1;
}

.card-title {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-family: 'Roboto Mono', monospace;
}

.card-meta span {
    margin-right: 1.5rem;
}

.card-meta span::before {
    content: '[';
    color: var(--secondary);
}

.card-meta span::after {
    content: ']';
    color: var(--secondary);
}

/* Grid Layout */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.work-card {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-top: 4px solid var(--primary);
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
}

.work-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.01) 10px,
        rgba(255, 255, 255, 0.01) 20px
    );
    pointer-events: none;
}

.work-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    background: var(--bg-darker);
}

.work-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.work-card p {
    color: var(--text-primary);
    line-height: 1.7;
}

/* Blog Posts - Terminal Output Style */
.blog-post {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.blog-post::before {
    content: '>';
    position: absolute;
    left: -1.5rem;
    top: 2rem;
    color: var(--primary);
    font-size: 2rem;
    font-family: 'VT323', monospace;
}

.blog-post h3 a {
    color: var(--primary);
    text-decoration: none;
}

.blog-post h3 a:hover {
    text-shadow: 0 0 10px var(--glow);
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-family: 'Roboto Mono', monospace;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.post-meta span {
    font-family: 'VT323', monospace;
    font-size: 1rem;
}

.post-content {
    color: var(--text-primary);
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.2rem;
}

.read-more {
    color: var(--primary);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: inline-block;
    margin-top: 1rem;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.read-more::after {
    content: ' >>>';
}

.read-more:hover {
    text-shadow: 0 0 10px var(--glow);
}

/* Comments - Terminal Input */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 3px double var(--border);
}

.comment {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-left: 3px solid var(--secondary);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-author {
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.comment-author::before {
    content: '> ';
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.7;
    margin-top: 0.5rem;
}

/* Forms - Terminal Input */
.comment-form,
.contact-form {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    padding: 2rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.form-group label::before {
    content: '> ';
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-pure);
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-darker);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

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

/* Buttons - Terminal Commands */
.btn,
button[type="submit"],
input[type="submit"] {
    background: var(--bg-dark);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.8rem 2rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
}

.btn::before,
button[type="submit"]::before,
input[type="submit"]::before {
    content: '> ';
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--primary);
    color: var(--bg-pure);
    text-shadow: none;
    transform: translateY(-2px);
}

/* Footer - Terminal Status Bar */
.site-footer {
    background: var(--bg-dark);
    border-top: 3px double var(--border);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
    color: var(--text-secondary);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

/* Code Blocks - Terminal Code */
code {
    background: var(--bg-darker);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    font-family: 'Roboto Mono', monospace;
    border: 1px solid var(--border);
    font-size: 0.85rem;
}

pre {
    background: var(--bg-darker);
    border: 2px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: transparent;
    border: none;
    padding: 0;
}

/* ASCII Art Decorations */
.ascii-decoration {
    font-family: 'VT323', monospace;
    font-size: 0.7rem;
    line-height: 1;
    color: var(--border);
    white-space: pre;
    text-align: center;
    margin: 2rem 0;
}

/* Blinking Cursor */
.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* WordPress Specific */
.wp-block-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--border);
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Loading Animation */
.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
