/* Основные стили для Hugo версии */
body {
    font-family: 'Source Code Pro', monospace;
    transition: background-color 0.3s, color 0.3s;
}

/* Аватар */
.avatar {
    width: 160px;
    height: 160px;
    border: 2px solid;
    border-color: #cbd5e1;
    transition: all 0.3s;
}

.dark .avatar {
    border-color: #475569;
}

/* Теги */
.tag {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-family: 'Source Code Pro', monospace;
}

.dark .tag {
    background: rgba(59, 130, 246, 0.2);
}

/* Навигация */
.nav-desktop {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-left: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
    opacity: 0.7;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.dark .nav-item {
    color: #9ca3af;
}

.nav-item:hover {
    opacity: 1;
    transform: translateX(5px);
}

.nav-icon {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-text {
    white-space: nowrap;
    text-transform: lowercase;
}

/* Мобильная навигация */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.dark .nav-mobile {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

.mobile-menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 101;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.5rem;
}

.dark .mobile-menu-button {
    color: #9ca3af;
}

/* Посты */
.post-item {
    border-bottom: 1px solid rgba(229, 231, 235, 0.2);
    transition: background-color 0.2s;
    padding: 20px 0;
}

.dark .post-item {
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
}

.post-item:hover {
    background-color: rgba(241, 245, 249, 0.05);
}

.dark .post-item:hover {
    background-color: rgba(30, 41, 59, 0.05);
}

/* Проекты */
.project-item {
    padding-left: 1rem;
    border-left: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

.project-item:hover {
    border-left-color: #3b82f6;
    padding-left: 1.5rem;
}

/* Социальные иконки */
.social-icon {
    transition: all 0.3s;
}

.social-icon:hover {
    transform: translateY(-2px);
}

/* Блоки кода */
.code-block-light {
    background-color: #f8fafc;
    color: #1f2937;
    border-left: 4px solid #3b82f6;
}

.code-block-dark {
    background-color: #1e293b;
    color: #e2e8f0;
    border-left: 4px solid #3b82f6;
}

.code-title-light {
    color: #4b5563;
}

.code-title-dark {
    color: #cbd5e1;
}

/* Стили для контента поста */
.prose {
    max-width: 800px;
    margin: 0 auto;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.prose pre {
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.prose code {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9em;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .post-content, 
    .max-w-2xl, 
    .max-w-3xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 769px) {
    .nav-mobile,
    .mobile-menu-button {
        display: none;
    }
}
/* Улучшаем UX для карточек тегов */
.tag-card {
    position: relative;
    overflow: hidden;
}

.tag-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

/* Анимация для тегов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tag-card {
    animation: fadeInUp 0.3s ease-out forwards;
    opacity: 0;
}

.tag-card:nth-child(1) { animation-delay: 0.05s; }
.tag-card:nth-child(2) { animation-delay: 0.1s; }
.tag-card:nth-child(3) { animation-delay: 0.15s; }
.tag-card:nth-child(4) { animation-delay: 0.2s; }
.tag-card:nth-child(5) { animation-delay: 0.25s; }
.tag-card:nth-child(6) { animation-delay: 0.3s; }
.tag-card:nth-child(7) { animation-delay: 0.35s; }
.tag-card:nth-child(8) { animation-delay: 0.4s; }
.tag-card:nth-child(9) { animation-delay: 0.45s; }
.tag-card:nth-child(10) { animation-delay: 0.5s; }