/* Base styles */
body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0f0f13;
    color: #e0e0e0;
}

.terminal-font {
    font-family: 'JetBrains Mono', monospace;
}

/* Particles Animation */
.particles {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-15px) translateX(15px);
    }

    50% {
        transform: translateY(0) translateX(30px);
    }

    75% {
        transform: translateY(15px) translateX(15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes terminal-typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

/* Terminal styling */
.terminal-cursor::after {
    content: "|";
    animation: pulse 1s infinite;
}

/* Effects & Transitions */
.glow-effect {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-tag {
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.avatar-border {
    border: 3px solid transparent;
    background: linear-gradient(#0f0f13, #0f0f13) padding-box,
        linear-gradient(135deg, #3b82f6, #8b5cf6) border-box;
}

/* Blog styling */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.category-filter {
    transition: all 0.2s ease;
}

.category-filter.active {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Code & Technical elements */
.code-block {
    background-color: #1e1e2e;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    border-left: 3px solid #3b82f6;
}

/* Table of Contents */
.toc {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}

.toc-link {
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.toc-link.active {
    border-left: 2px solid #3b82f6;
    color: #3b82f6;
}

/* Comments */
.comment {
    transition: all 0.3s ease;
}

.comment:hover {
    transform: translateY(-2px);
}

/* Article content styling */
.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #60a5fa;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.article-content .highlight {
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: #3b82f6;
    font-weight: 500;
}

.article-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.article-content table th,
.article-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid #2d3748;
}

.article-content table th {
    background-color: #2d3748;
    font-weight: 600;
    text-align: left;
}

.article-content table tr:nth-child(even) {
    background-color: rgba(45, 55, 72, 0.3);
}

/* Special content boxes */
.caution-box {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

.caution-box h4 {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

.info-box h4 {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-box {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(52, 211, 153, 0.1);
    border-left: 4px solid #34d399;
}

.tip-box h4 {
    color: #34d399;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-box {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #fbbf24;
}

.warning-box h4 {
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benchmark-result {
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.benchmark-result h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #3b82f6;
}

.benchmark-score {
    font-family: 'JetBrains Mono', monospace;
    background-color: #2d3748;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

.performance-box {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.performance-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #3b82f6;
}

.performance-metrics {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    gap: 1rem;
}

.metric {
    font-family: 'JetBrains Mono', monospace;
    padding: 0.5rem;
    border-radius: 0.25rem;
    background-color: #2d3748;
    font-size: 0.9rem;
}

/* Стили для пагинации */
.pagination-section a {
    transition: all 0.2s ease;
}

.pagination-section a:hover {
    transform: scale(1.05);
}

/* Анимация для блока статей */
#blog-posts-container {
    transition: opacity 0.3s ease;
}

/* Стили для поиска */
#search-input {
    transition: all 0.3s ease;
}

#search-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}