/**
 * Основные стили темы Personal Brand Portfolio
 */

:root {
    --sidebar-bg: #f8fafc;
    --active-link: #3b82f6;
    --text-main: #1e293b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f1f5f9;
    color: var(--text-main);
    overflow-x: hidden;
}

.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    border-right: 1px solid #e2e8f0;
    background: var(--sidebar-bg);
    z-index: 50;
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.nav-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    color: #64748b;
    font-size: 0.925rem;
    text-decoration: none;
}

.nav-item:hover {
    background: #f1f5f9;
    color: var(--active-link);
}

.nav-item.active {
    background: #eff6ff;
    color: var(--active-link);
    font-weight: 600;
}

.sub-nav {
    margin-left: 1.5rem;
    border-left: 1px solid #e2e8f0;
    padding-left: 0.5rem;
}

.sub-nav .nav-item {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
}

.blog-card {
    background: white;
    border-radius: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: #3b82f6;
}

.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-card:hover {
    border-color: var(--active-link);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.profile-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    .mobile-toggle {
        display: flex;
    }
}

.mobile-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--active-link);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 100;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.5);
    border: none;
    cursor: pointer;
}

/* Стили для контента */
.prose {
    max-width: 65ch;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose p {
    margin-bottom: 1.5em;
    line-height: 1.75;
}

.prose a {
    color: var(--active-link);
    text-decoration: underline;
}

.prose a:hover {
    text-decoration: none;
}

.prose ul, .prose ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.prose img {
    border-radius: 0.5rem;
    margin: 1.5em 0;
}

/* Пагинация */
.page-links {
    margin: 2em 0;
}

.page-links a {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0 0.25em;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #64748b;
    text-decoration: none;
}

.page-links a:hover {
    background: #f1f5f9;
    border-color: var(--active-link);
    color: var(--active-link);
}

/* Комментарии */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.comment-author {
    font-weight: 600;
    color: var(--text-main);
}

.comment-date {
    font-size: 0.875rem;
    color: #64748b;
}
