/*
Theme Name: Malike DevOps Portfolio
Theme URI: https://malike.net.ru
Author: Malike
Author URI: https://malike.net.ru
Description: Custom DevOps themed portfolio with terminal aesthetics
Version: 1.0
Requires at least: 6.0
Tested up to: 6.9
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: malike
Tags: blog, portfolio, dark-mode, custom-menu, custom-colors
*/

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600&family=Share+Tech+Mono&display=swap');

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-terminal: #141414;
    --text-primary: #00ff00;
    --text-secondary: #666666;
    --accent: #0ebef5;
    --accent-glow: rgba(14, 190, 245, 0.4);
    --border: #2a2a2a;
    --status-online: #00ff00;
    --status-offline: #ff0055;
}

[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-terminal: #fafafa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #0ebef5;
    --accent-glow: rgba(14, 190, 245, 0.2);
    --border: #e0e0e0;
    --status-online: #16a34a;
    --status-offline: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Matrix background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -100%;
    white-space: nowrap;
    animation: matrixFall linear infinite;
}

@keyframes matrixFall {
    to {
        top: 100%;
    }
}

/* Scanline effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(14, 190, 245, 0.03) 2px,
        rgba(14, 190, 245, 0.03) 4px
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* Grid background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            var(--border) 49px,
            var(--border) 50px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 49px,
            var(--border) 49px,
            var(--border) 50px
        );
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* Neon top bar */
.neon-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--accent) 0%, 
        transparent 50%, 
        var(--accent) 100%
    );
    box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
    z-index: 1000;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    }
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 40px;
    z-index: 1001;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    border: 1px solid var(--accent);
    background: var(--bg-terminal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInToggle 0.6s ease-out 1s forwards;
    box-shadow: 0 0 20px var(--accent-glow);
}

@keyframes fadeInToggle {
    to {
        opacity: 1;
    }
}

.theme-toggle:hover {
    box-shadow: 0 0 30px var(--accent);
    transform: scale(1.05);
}

.theme-icon {
    font-size: 20px;
    color: var(--accent);
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
    padding-top: 3px;
    position: relative;
    z-index: 2;
}

/* Sidebar Navigation */
.sidebar {
    width: 400px;
    background: var(--bg-secondary);
    border-right: 2px solid var(--accent);
    box-shadow: 2px 0 30px var(--accent-glow);
    padding: 60px 40px;
    position: fixed;
    height: calc(100vh - 3px);
    overflow-y: auto;
    overflow-x: hidden;
    animation: slideInLeft 0.8s ease-out;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-terminal);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}

.sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-terminal);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.terminal-prompt {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.prompt-symbol {
    color: var(--accent);
}

.name-container {
    margin-bottom: 30px;
}

.name {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
    cursor: pointer;
}

.name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(-50px) rotate(-15deg) scale(0.3);
    animation: assembleLetter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: blur(10px);
}

.name .letter:nth-child(1) { animation-delay: 0.1s; }
.name .letter:nth-child(2) { animation-delay: 0.2s; }
.name .letter:nth-child(3) { animation-delay: 0.3s; }
.name .letter:nth-child(4) { animation-delay: 0.4s; }
.name .letter:nth-child(5) { animation-delay: 0.5s; }
.name .letter:nth-child(6) { animation-delay: 0.6s; }

@keyframes assembleLetter {
    0% {
        opacity: 0;
        transform: translateY(-50px) rotate(-15deg) scale(0.3);
        filter: blur(10px);
    }
    70% {
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
        filter: blur(0);
    }
}

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 48px;
    background: var(--accent);
    margin-left: 4px;
    animation: blink 1s step-end infinite !important;
    box-shadow: 0 0 10px var(--accent);
    vertical-align: text-bottom;
}

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

.role-container {
    margin-top: 16px;
    margin-bottom: 30px;
}

.role {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 3px;
}

.role::before {
    content: '// ';
    color: var(--accent);
    margin-right: 8px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.8s forwards;
}

.tag {
    font-size: 10px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px 10px;
    border-radius: 2px;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.tag:hover {
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--accent);
}

.tag:hover::before {
    left: 0;
}

.nav-header {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 1s forwards;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    position: relative;
    cursor: pointer;
}

.nav-item:nth-child(1) { }
.nav-item:nth-child(2) { }
.nav-item:nth-child(3) { }
.nav-item:nth-child(4) { }
.nav-item:nth-child(5) { }
.nav-item:nth-child(6) { }

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-item::before {
    content: '>';
    position: absolute;
    left: -15px;
    color: var(--accent);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-item.active::before,
.nav-item:hover::before {
    opacity: 1;
    left: -12px;
}

.nav-link {
    display: block;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 10px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'JetBrains Mono', monospace;
}

.nav-item.active .nav-link,
.nav-link:hover {
    color: var(--accent);
    transform: translateX(10px);
    text-shadow: 0 0 15px var(--accent);
}

.nav-description {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-left: 15px;
}

.nav-description::before {
    content: '└─ ';
    color: var(--accent);
}

.nav-item:hover .nav-description,
.nav-item.active .nav-description {
    opacity: 1;
}

.sidebar-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 8px;
    border: 1px solid transparent;
    font-size: 12px;
    display: inline-block;
}

.social-link::before {
    content: '$ ';
    color: var(--accent);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Content Area */
.content-wrapper {
    margin-left: 400px;
    flex: 1;
    padding: 60px 80px;
    min-height: 100vh;
}

.content-section {
    display: none;
    animation: fadeInContent 0.5s ease-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 20px;
}

.section-title {
    font-size: 48px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--accent-glow);
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 2px;
}

.section-subtitle::before {
    content: '// ';
    color: var(--accent);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs-separator {
    color: var(--accent);
}

.breadcrumbs-current {
    color: var(--accent);
}

.content-block {
    margin-bottom: 40px;
}

.content-title {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 500;
}

.content-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.info-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-5px);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card-title {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 10px;
    font-family: 'Share Tech Mono', monospace;
}

.info-card-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Blog Article Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Categories Filter */
.categories-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.category-filter-item {
    font-size: 11px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 5px 15px;
    border-radius: 2px;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-filter-item:hover,
.category-filter-item.active {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.category-label {
    font-size: 12px;
    color: var(--accent);
    font-family: 'Share Tech Mono', monospace;
    margin-right: 15px;
}

.article-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.article-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-5px);
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-header {
    padding: 25px;
    border-bottom: 1px solid var(--border);
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    margin-bottom: 15px;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta-item::before {
    content: '▸';
    color: var(--accent);
}

.article-title {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.article-title a {
    color: var(--accent);
    text-decoration: none;
    transition: text-shadow 0.3s ease;
}

.article-title a:hover {
    text-shadow: 0 0 15px var(--accent);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-body {
    padding: 20px 25px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-tag {
    font-size: 10px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px 10px;
    border-radius: 2px;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.article-tag:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--accent);
}

.article-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

/* Hide arrow for back links (already have arrow in text) */
.read-more.back-link::after {
    content: none;
}

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

.read-more:hover::after {
    transform: translateX(5px);
}

/* Single Post Styles */
.single-post-content {
    max-width: 800px;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content h1, 
.post-content h2, 
.post-content h3 {
    color: var(--accent);
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.post-content code {
    background: var(--bg-secondary);
    padding: 3px 8px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    border: 1px solid var(--border);
}

/* Dark theme code blocks */
[data-theme="dark"] .post-content pre {
    background: #0d0d0d;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 3px solid var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

[data-theme="dark"] .post-content pre code {
    background: none;
    padding: 0;
    border: none;
    color: #e8e8e8;
    display: block;
    line-height: 1.6;
}

/* Light theme code blocks */
[data-theme="light"] .post-content pre {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 3px solid var(--accent);
    border: 1px solid #e0e0e0;
}

[data-theme="light"] .post-content pre code {
    background: none;
    padding: 0;
    border: none;
    color: #2d2d2d;
    display: block;
    line-height: 1.6;
}

/* Syntax Highlighting - Dark Theme */
[data-theme="dark"] .post-content pre code .keyword { color: #ff79c6; }
[data-theme="dark"] .post-content pre code .string { color: #50fa7b; }
[data-theme="dark"] .post-content pre code .comment { color: #6272a4; font-style: italic; }
[data-theme="dark"] .post-content pre code .number { color: #bd93f9; }
[data-theme="dark"] .post-content pre code .function { color: #8be9fd; }

/* Syntax Highlighting - Light Theme */
[data-theme="light"] .post-content pre code .keyword { color: #d73a49; font-weight: 500; }
[data-theme="light"] .post-content pre code .string { color: #22863a; }
[data-theme="light"] .post-content pre code .comment { color: #6a737d; font-style: italic; }
[data-theme="light"] .post-content pre code .number { color: #005cc5; }
[data-theme="light"] .post-content pre code .function { color: #6f42c1; font-weight: 500; }

/* Images in posts */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    display: block;
}

/* Dark theme - add border and padding to images */
[data-theme="dark"] .post-content img {
    border: 1px solid #2a2a2a;
    padding: 10px;
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Light theme - subtle shadow */
[data-theme="light"] .post-content img {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Comments Section */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--accent);
}

.comments-title {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 30px;
    font-family: 'JetBrains Mono', monospace;
}

.comments-title::before {
    content: '$ ';
    color: var(--accent);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 0 20px var(--accent-glow);
}

.comment-author {
    font-size: 16px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.comment-metadata {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    margin-bottom: 15px;
}

.comment-metadata::before {
    content: '▸ ';
    color: var(--accent);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 10px;
}

.comment-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.comment-content a:hover {
    border-bottom-color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.reply {
    margin-top: 10px;
}

.comment-reply-link {
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    border: 1px solid var(--accent);
    padding: 5px 15px;
    border-radius: 2px;
    display: inline-block;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--accent);
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Links in comment form (logged in message, etc) */
.comment-form a,
.logged-in-as a,
.comment-notes a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.comment-form a:hover,
.logged-in-as a:hover,
.comment-notes a:hover {
    border-bottom-color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.comment-form-comment,
.comment-form-author,
.comment-form-email {
    display: flex;
    flex-direction: column;
}

.comment-form label {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

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

.form-submit {
    margin-top: 10px;
}

.submit {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 30px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.submit:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--accent);
}

/* Custom cursor */
.cursor-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    opacity: 0;
    box-shadow: 0 0 15px var(--accent);
}

.cursor-ring {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    opacity: 0;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 300px;
    }

    .content-wrapper {
        margin-left: 300px;
        padding: 40px 40px;
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 30px 20px;
    }

    .content-wrapper {
        margin-left: 0;
        padding: 30px 20px;
    }

    .name {
        font-size: 36px;
    }

    .cursor-blink {
        height: 36px;
        width: 6px;
    }

    .theme-toggle {
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    .matrix-bg {
        display: none;
    }

    .info-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Disable animations after first visit */
body.no-animations * {
    animation: none !important;
    animation-delay: 0s !important;
    transition: none !important;
}

/* Keep cursor blink animation always active */
body.no-animations .cursor-blink {
    animation: blink 1s step-end infinite !important;
}

body.no-animations .name .letter,
body.no-animations .tags,
body.no-animations .nav-header,
body.no-animations .nav-item,
body.no-animations .theme-toggle {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

/* ==========================================
   SERVICE MONITORING CARDS
   ========================================== */

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.service-card.online::before {
    background: var(--status-online);
    box-shadow: 0 0 10px var(--status-online);
}

.service-card.offline::before {
    background: var(--status-offline);
    box-shadow: 0 0 10px var(--status-offline);
}

.service-card.unknown::before {
    background: var(--text-secondary);
}

.service-status {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 120px;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-secondary);
    transition: all 0.3s ease;
}

.service-card.online .status-indicator {
    background: var(--status-online);
    box-shadow: 0 0 10px var(--status-online);
    animation: pulse 2s ease-in-out infinite;
}

.service-card.offline .status-indicator {
    background: var(--status-offline);
    box-shadow: 0 0 10px var(--status-offline);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.status-text {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Share Tech Mono', monospace;
}

.service-card.online .status-text {
    color: var(--status-online);
}

.service-card.offline .status-text {
    color: var(--status-offline);
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 20px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 8px;
}

.service-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-details {
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-secondary);
}

.service-host {
    padding: 4px 8px;
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    border-radius: 3px;
}

/* Service Actions (Connect Button) */
.service-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.service-connect-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.service-connect-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .service-status {
        min-width: auto;
    }
    
    .service-actions {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .service-connect-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Code Copy Button */
.code-block-wrapper {
    position: relative;
}

.code-copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 5px 12px;
    font-size: 11px;
    font-family: 'Share Tech Mono', monospace;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.code-block-wrapper:hover .code-copy-button {
    opacity: 1;
}

.code-copy-button:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.code-copy-button.copied {
    background: var(--status-online);
    border-color: var(--status-online);
    color: var(--bg-primary);
}

.code-copy-button.copied::after {
    content: ' ✓';
}
