/*
Theme Name: VC.ru Clone
Theme URI: 
Author: 
Author URI: 
Description: Точная копия темы сайта vc.ru с темным дизайном и трехколоночной структурой
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vcrue
Tags: three-columns, dark-theme, custom-menu, featured-images, post-formats
*/

/*--------------------------------------------------------------
0. Reset & Base Styles
--------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #191919;
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #0077ff;
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*--------------------------------------------------------------
1. Premium Banner (Topmost)
--------------------------------------------------------------*/
.premium-banner {
    background-color: #191919;
    border-bottom: 1px solid #2a2a2a;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}

.premium-banner-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #0077ff 0%, #0055cc 100%);
    transform: rotate(45deg);
    display: inline-block;
    border-radius: 3px;
}

.premium-banner-text {
    color: #ffffff;
}

.premium-banner-button {
    background-color: #0077ff;
    color: #ffffff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.premium-banner-button:hover {
    background-color: #0055cc;
    opacity: 1;
}

/*--------------------------------------------------------------
2. Main Header Bar
--------------------------------------------------------------*/
.site-header {
    background-color: #191919;
    border-bottom: 1px solid #2a2a2a;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-input {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 8px 12px 8px 40px;
    color: #ffffff;
    font-size: 14px;
    width: 300px;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #0077ff;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    width: 18px;
    height: 18px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.logo-diamond {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0077ff 0%, #0055cc 100%);
    transform: rotate(45deg);
    border-radius: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.write-button {
    color: #0077ff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.write-button:hover {
    background-color: rgba(0, 119, 255, 0.1);
    opacity: 1;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.icon-button:hover {
    background-color: #2a2a2a;
}

.icon-button svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.icon-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #ff4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/*--------------------------------------------------------------
3. Main Layout Container
--------------------------------------------------------------*/
.site-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 20px;
}

/*--------------------------------------------------------------
4. Left Sidebar (Navigation)
--------------------------------------------------------------*/
.left-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 68px;
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
}

.left-sidebar::-webkit-scrollbar {
    width: 6px;
}

.left-sidebar::-webkit-scrollbar-track {
    background: #191919;
}

.left-sidebar::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 3px;
}

.main-navigation {
    background-color: #222222;
    border-radius: 8px;
    padding: 12px 0;
}

.nav-menu {
    list-style: none;
}

.nav-menu-item {
    margin: 0;
}

.nav-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 15px;
    transition: background-color 0.2s;
    position: relative;
}

.nav-menu-item a:hover {
    background-color: #2a2a2a;
}

.nav-menu-item a.active {
    background-color: #2a2a2a;
    color: #0077ff;
}

.nav-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background-color: #0077ff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.topics-section {
    margin-top: 24px;
    background-color: #222222;
    border-radius: 8px;
    padding: 16px;
}

.topics-title {
    font-size: 13px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.topics-list {
    list-style: none;
}

.topics-item {
    margin-bottom: 8px;
}

.topics-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #ffffff;
    font-size: 14px;
    transition: color 0.2s;
}

.topics-item a:hover {
    color: #0077ff;
}

.topic-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.topic-icon.news { background-color: #4caf50; }
.topic-icon.opinion { background-color: #ff9800; }
.topic-icon.business { background-color: #9c27b0; }
.topic-icon.marketing { background-color: #f44336; }
.topic-icon.tech { background-color: #2196f3; }
.topic-icon.design { background-color: #e91e63; }
.topic-icon.development { background-color: #00bcd4; }
.topic-icon.gamedev { background-color: #ff5722; }
.topic-icon.education { background-color: #673ab7; }
.topic-icon.jobs { background-color: #009688; }

/*--------------------------------------------------------------
5. Main Content Area (Feed)
--------------------------------------------------------------*/
.main-content {
    flex: 1;
    min-width: 0;
    max-width: 700px;
}

.post-card {
    background-color: #222222;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: background-color 0.2s;
}

.post-card:hover {
    background-color: #252525;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-author-info {
    flex: 1;
    min-width: 0;
}

.post-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    width: 16px;
    height: 16px;
    fill: #0077ff;
    flex-shrink: 0;
}

.post-time {
    font-size: 13px;
    color: #888888;
    margin-top: 2px;
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-content {
    margin-bottom: 16px;
}

.post-content p {
    font-size: 15px;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 12px;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
}

.post-video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
    aspect-ratio: 16 / 9;
}

.blurred-content {
    filter: blur(20px);
    pointer-events: none;
    position: relative;
}

.blurred-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 25, 25, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}

.reaction-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reaction-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #888888;
    background: none;
    border: none;
}

.reaction-button:hover {
    background-color: #2a2a2a;
}

.reaction-button.active {
    background-color: rgba(0, 119, 255, 0.2);
    color: #0077ff;
}

.reaction-emoji {
    font-size: 18px;
}

.reaction-count {
    font-size: 14px;
    font-weight: 500;
}

.comments-button,
.share-button,
.more-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #888888;
    background: none;
    border: none;
}

.comments-button:hover,
.share-button:hover,
.more-button:hover {
    background-color: #2a2a2a;
}

.action-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/*--------------------------------------------------------------
6. Comments Section
--------------------------------------------------------------*/
.comments-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.comment-text {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.5;
}

/*--------------------------------------------------------------
7. Right Sidebar
--------------------------------------------------------------*/
.right-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 68px;
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
}

.right-sidebar::-webkit-scrollbar {
    width: 6px;
}

.right-sidebar::-webkit-scrollbar-track {
    background: #191919;
}

.right-sidebar::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 3px;
}

.sidebar-widget {
    background-color: #222222;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.premium-widget {
    background: linear-gradient(135deg, #ff0080 0%, #ff4081 100%);
    color: #ffffff;
    text-align: center;
}

.premium-widget-diamond {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0077ff 0%, #0055cc 100%);
    transform: rotate(45deg);
    border-radius: 8px;
    margin: 0 auto 16px;
}

.premium-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.premium-widget-text {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.95;
}

.premium-widget-button {
    background-color: #ffffff;
    color: #ff0080;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.premium-widget-button:hover {
    opacity: 0.9;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.popular-item,
.subscription-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.popular-item:last-child,
.subscription-item:last-child {
    border-bottom: none;
}

.popular-avatar,
.subscription-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-info,
.subscription-info {
    flex: 1;
    min-width: 0;
}

.popular-name,
.subscription-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.popular-desc,
.subscription-desc {
    font-size: 12px;
    color: #888888;
}

.ad-block {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: #888888;
    font-size: 12px;
}

.show-all-topics {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    color: #0077ff;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.show-all-topics:hover {
    color: #0055cc;
}

.info-section {
    margin-top: 24px;
    background-color: #222222;
    border-radius: 8px;
    padding: 16px;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-item {
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item a {
    display: block;
    padding: 8px 0;
    color: #888888;
    font-size: 13px;
    transition: color 0.2s;
}

.info-item a:hover {
    color: #ffffff;
}

/* Top News Widget */
.top-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-news-item {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 12px;
}

.top-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.top-news-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.top-news-link:hover {
    opacity: 0.8;
}

.top-news-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.top-news-thumb-placeholder {
    width: 60px;
    height: 60px;
    background-color: #2a2a2a;
    border-radius: 6px;
    flex-shrink: 0;
}

.top-news-info {
    flex: 1;
    min-width: 0;
}

.top-news-title {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-news-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #888888;
}

.top-news-author {
    font-weight: 500;
}

/* Popular Comments Widget */
.popular-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-comment-item {
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 12px;
}

.popular-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-comment-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.popular-comment-link:hover {
    opacity: 0.8;
}

.popular-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-comment-info {
    flex: 1;
    min-width: 0;
}

.popular-comment-author {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.popular-comment-text {
    font-size: 12px;
    color: #e0e0e0;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-comment-meta {
    font-size: 11px;
    color: #888888;
}

.popular-comment-post {
    font-weight: 500;
}

/*--------------------------------------------------------------
8. Pagination
--------------------------------------------------------------*/
.pagination {
    margin: 24px 0;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: #222222;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #0077ff;
    color: #ffffff;
}

.pagination .page-numbers.dots {
    background-color: transparent;
    color: #888888;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background-color: transparent;
}

/*--------------------------------------------------------------
9. Comments Form
--------------------------------------------------------------*/
.comment-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #2a2a2a;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: #0077ff;
}

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

.comment-form input[type="submit"] {
    background-color: #0077ff;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-form input[type="submit"]:hover {
    background-color: #0055cc;
}

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

.comment-list .comment {
    margin-bottom: 24px;
}

.comment-list .children {
    margin-left: 44px;
    margin-top: 16px;
}

.comment-meta {
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: #ffffff;
}

.comment-metadata {
    font-size: 12px;
    color: #888888;
    margin-left: 8px;
}

/*--------------------------------------------------------------
10. Search Results
--------------------------------------------------------------*/
.search-results .search-query {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
}

/*--------------------------------------------------------------
11. Archive Pages
--------------------------------------------------------------*/
.archive-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
}

.archive-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.archive-description {
    font-size: 14px;
    color: #888888;
}

/*--------------------------------------------------------------
12. Responsive Design
--------------------------------------------------------------*/
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
    
    .main-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .left-sidebar {
        display: none;
    }
    
    .site-wrapper {
        flex-direction: column;
        padding: 10px;
    }
    
    .main-content {
        max-width: 100%;
    }
    
    .header-container {
        flex-wrap: wrap;
        padding: 0 10px;
    }
    
    .search-input {
        width: 200px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .write-button {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .post-card {
        padding: 16px;
    }
    
    .post-title {
        font-size: 18px;
    }
}

/*--------------------------------------------------------------
9. Utilities
--------------------------------------------------------------*/
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/*--------------------------------------------------------------
13. Additional Styles
--------------------------------------------------------------*/
.reply {
    margin-top: 8px;
}

.reply a {
    font-size: 13px;
    color: #0077ff;
    font-weight: 500;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.comment-form .required {
    color: #ff4444;
}

.no-comments {
    padding: 20px;
    text-align: center;
    color: #888888;
    font-size: 14px;
}

/* Button styles */
button,
input[type="button"],
input[type="submit"] {
    font-family: inherit;
}

/* Link styles in content */
.post-content a,
.comment-text a {
    color: #0077ff;
    text-decoration: underline;
}

.post-content a:hover,
.comment-text a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Code and pre styles */
.post-content code {
    background-color: #2a2a2a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.post-content pre {
    background-color: #2a2a2a;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Blockquote styles */
.post-content blockquote {
    border-left: 4px solid #0077ff;
    padding-left: 16px;
    margin: 16px 0;
    color: #e0e0e0;
    font-style: italic;
}

/* List styles */
.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Table styles */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.post-content table th,
.post-content table td {
    padding: 12px;
    border: 1px solid #2a2a2a;
    text-align: left;
}

.post-content table th {
    background-color: #2a2a2a;
    font-weight: 600;
}

/* Image styles */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

