/* Matrix WordPress Theme CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace !important;
    background: #000000 !important;
    color: #00ff00 !important;
    overflow-x: hidden;
    position: relative;
}

/* Matrix rain background effect - add via custom HTML widget or theme header */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(transparent 50%, rgba(0, 255, 0, 0.03) 50%),
        linear-gradient(90deg, transparent 50%, rgba(0, 255, 0, 0.03) 50%);
    background-size: 2px 2px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100px;
    }
}

.site-header,
header,
.header,
#masthead {
    text-align: left;
    padding: 40px 20px !important;
    background: rgba(0, 20, 0, 0.8) !important;
    border: 2px solid #00ff00 !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3) !important;
    margin-bottom: 40px;
    animation: glitch 3s infinite;
    position: relative;
    z-index: 10;
}

@keyframes glitch {
    0%, 98% {
        transform: translate(0);
    }
    99% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(-2px, 2px);
    }
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title {
    color: #00ff00 !important;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00 !important;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace !important;
}

h1, .site-title {
    font-size: 2em !important;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8em !important;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00ff00;
}

.site-description,
.subtitle {
    color: #00cc00 !important;
    font-size: 1.2em;
    text-shadow: 0 0 5px #00ff00 !important;
}

/* Main content area */
.site-content,
#primary,
.content-area,
main,
article {
    position: relative;
    z-index: 2;
    background: rgba(0, 20, 0, 0.9) !important;
    padding: 40px !important;
    border: 2px solid #00ff00 !important;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2) !important;
    border-radius: 10px;
    margin-bottom: 30px;
}

.entry-content,
.page-content,
.post-content {
    color: #00ff00 !important;
}

/* Images */
img {
    border: 3px solid #00ff00 !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5) !important;
    border-radius: 10px;
    animation: pulse 2s infinite;
    max-width: 100%;
    height: auto;
    filter: contrast(1.1) brightness(0.9);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    }
}

/* Lists */
ul, ol {
    list-style: none;
    padding: 0;
}

li {
    padding: 15px !important;
    margin-bottom: 15px !important;
    background: rgba(0, 40, 0, 0.6) !important;
    border-left: 4px solid #00ff00 !important;
    font-size: 1.1em;
    transition: all 0.3s ease;
    position: relative;
    color: #00ff00 !important;
}

li:hover {
    background: rgba(0, 60, 0, 0.8) !important;
    transform: translateX(10px);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4) !important;
}

li::before {
    content: '> ';
    color: #00ff00 !important;
    font-weight: bold;
    margin-right: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Links */
a {
    color: #00ff00 !important;
    text-decoration: none !important;
    text-shadow: 0 0 5px #00ff00;
    transition: all 0.3s ease;
}

a:hover {
    color: #00ff00 !important;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00 !important;
    transform: translateX(5px);
}

/* Buttons */
button,
.button,
.btn,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
    background: rgba(0, 40, 0, 0.8) !important;
    color: #00ff00 !important;
    border: 2px solid #00ff00 !important;
    padding: 12px 30px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

button:hover,
.button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
    background: rgba(0, 60, 0, 1) !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6) !important;
    transform: scale(1.05);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    background: rgba(0, 20, 0, 0.8) !important;
    border: 2px solid #00ff00 !important;
    color: #00ff00 !important;
    padding: 10px !important;
    font-family: 'Courier New', monospace !important;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.2);
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5) !important;
}

/* Navigation Menu */
.nav-menu,
.navigation,
nav,
.menu {
    background: rgba(0, 20, 0, 0.9) !important;
    border: 2px solid #00ff00 !important;
    padding: 15px !important;
}

.nav-menu li,
.navigation li,
.menu li {
    display: inline-block;
    margin: 0 15px !important;
    background: transparent !important;
    border: none !important;
    padding: 5px 10px !important;
}

.nav-menu li::before,
.navigation li::before,
.menu li::before {
    content: '' !important;
}

/* Sidebar */
.sidebar,
.widget-area,
aside {
    background: rgba(0, 20, 0, 0.9) !important;
    border: 2px solid #00ff00 !important;
    padding: 20px !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2) !important;
}

.widget {
    margin-bottom: 30px !important;
    padding: 20px !important;
    background: rgba(0, 40, 0, 0.6) !important;
    border-left: 4px solid #00ff00 !important;
}

.widget-title {
    color: #00ff00 !important;
    border-bottom: 2px solid #00ff00 !important;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Footer */
.site-footer,
footer,
#colophon {
    text-align: center;
    padding: 30px !important;
    margin-top: 40px;
    border-top: 2px solid #00ff00 !important;
    background: rgba(0, 20, 0, 0.9) !important;
    color: #00cc00 !important;
    position: relative;
    z-index: 10;
}

/* Code blocks */
code,
pre,
.code-block {
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 20px !important;
    border: 1px solid #00ff00 !important;
    border-radius: 5px;
    color: #00ff00 !important;
    font-family: 'Courier New', monospace !important;
    display: block;
    margin: 20px 0;
    overflow-x: auto;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #00ff00 !important;
    padding-left: 20px !important;
    margin: 20px 0 !important;
    background: rgba(0, 40, 0, 0.6) !important;
    padding: 20px !important;
    font-style: italic;
    color: #00cc00 !important;
}

/* Tables */
table {
    border: 2px solid #00ff00 !important;
    background: rgba(0, 20, 0, 0.9) !important;
    width: 100%;
}

th, td {
    border: 1px solid #00ff00 !important;
    padding: 12px !important;
    color: #00ff00 !important;
}

th {
    background: rgba(0, 40, 0, 0.8) !important;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
}

/* Pagination */
.pagination,
.nav-links {
    text-align: center;
    margin: 30px 0;
}

.page-numbers {
    display: inline-block;
    padding: 10px 15px !important;
    margin: 0 5px;
    background: rgba(0, 40, 0, 0.8) !important;
    border: 2px solid #00ff00 !important;
    color: #00ff00 !important;
}

.page-numbers.current {
    background: rgba(0, 60, 0, 1) !important;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5) !important;
}

/* Responsive */
@media (max-width: 768px) {
    h1, .site-title {
        font-size: 2em !important;
    }

    .site-content,
    #primary,
    .content-area,
    main,
    article {
        padding: 20px !important;
    }

    li {
        font-size: 1em !important;
    }
}

/* Loading effect */
.loading-bar {
    height: 4px;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: loading 2s infinite;
    width: 100%;
}

@keyframes loading {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    background: #000000;
}

::-webkit-scrollbar-track {
    background: #001a00;
    border: 1px solid #00ff00;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Selection */
::selection {
    background: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

::-moz-selection {
    background: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}