/*
Theme Name: MEXC Investigation
Theme URI: https://yoursite.com
Author: Fair Trader Investigation
Author URI: https://yoursite.com
Description: A Twitter-style investigation theme for documenting MEXC exchange issues, account blocking, and frozen funds. Features dynamic post feed with sidebar widgets.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mexc-investigation
Tags: blog, news, investigation, social-media, twitter-style, custom-post-types, widgets
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #e7e9ea;
    line-height: 1.4;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 275px 1fr 350px;
    gap: 30px;
    padding: 0 20px;
}

/* Left Sidebar */
.left-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px 0;
    overflow-y: auto;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #dc2626;
}

.site-logo a {
    color: #dc2626;
    text-decoration: none;
}

.warning-banner {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

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

.nav-menu li {
    margin-bottom: 8px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #e7e9ea;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.2s;
    font-size: 20px;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    background-color: #1a1a1a;
}

.nav-icon {
    margin-right: 20px;
    width: 26px;
    height: 26px;
}

/* Main Content */
.main-content {
    border-left: 1px solid #2f3336;
    border-right: 1px solid #2f3336;
    min-height: 100vh;
}

.content-header {
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    padding: 16px 20px;
    border-bottom: 1px solid #2f3336;
    z-index: 100;
}

.content-title {
    font-size: 20px;
    font-weight: 700;
    color: #e7e9ea;
}

.content-subtitle {
    font-size: 14px;
    color: #71767b;
    margin-top: 4px;
}

/* Investigation Banner */
.investigation-banner {
    background: linear-gradient(135deg, #dc2626, #7f1d1d);
    padding: 20px;
    border-bottom: 1px solid #2f3336;
    text-align: center;
}

.investigation-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.investigation-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Posts */
article.post {
    padding: 16px 20px;
    border-bottom: 1px solid #2f3336;
    transition: background-color 0.2s;
}

article.post:hover {
    background-color: #030303;
}

.post-scam {
    border-left: 4px solid #dc2626;
    background-color: rgba(220, 38, 38, 0.05);
}

.post-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-avatar.default-avatar {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 16px;
}

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.post-author {
    font-weight: 700;
    color: #e7e9ea;
    text-decoration: none;
}

.post-author:hover {
    text-decoration: underline;
}

.post-handle {
    color: #71767b;
    text-decoration: none;
}

.post-date {
    color: #71767b;
    text-decoration: none;
}

.post-date:hover {
    text-decoration: underline;
}

.post-content {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
}

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

.post-content p:last-child {
    margin-bottom: 0;
}

.hashtag {
    color: #1d9bf0;
    text-decoration: none;
    font-weight: 600;
}

.hashtag:hover {
    text-decoration: underline;
}

.mention {
    color: #1d9bf0;
    text-decoration: none;
    font-weight: 600;
}

.mention:hover {
    text-decoration: underline;
}

.scam-highlight {
    background-color: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.mexc-highlight {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    max-width: 425px;
    margin-top: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #71767b;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: rgba(29, 155, 240, 0.1);
    color: #1d9bf0;
}

.action-count {
    margin-left: 8px;
    font-size: 13px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid #2f3336;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    background-color: #1a1a1a;
    color: #e7e9ea;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.pagination a:hover {
    background-color: #2a2a2a;
}

.pagination .current {
    background-color: #dc2626;
    font-weight: bold;
}

/* Right Sidebar */
.right-sidebar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.widget {
    background-color: #16181c;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.widget-title {
    padding: 16px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid #2f3336;
}

.widget-content {
    padding: 16px;
}

.warning-widget {
    background: linear-gradient(135deg, #dc2626, #7f1d1d);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.warning-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    padding: 0;
    border: none;
}

.warning-text {
    font-size: 14px;
    line-height: 1.4;
}

/* Trending Widget */
.trending-item {
    padding: 16px;
    border-bottom: 1px solid #2f3336;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    background-color: #1a1a1a;
}

.trending-category {
    color: #71767b;
    font-size: 13px;
}

.trending-title {
    font-weight: 700;
    margin: 4px 0;
    color: #e7e9ea;
}

.trending-count {
    color: #71767b;
    font-size: 13px;
}

/* Widget Lists */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 12px 16px;
    border-bottom: 1px solid #2f3336;
}

.widget li:last-child {
    border-bottom: none;
}

.widget li a {
    color: #e7e9ea;
    text-decoration: none;
}

.widget li a:hover {
    color: #1d9bf0;
}

/* Footer */
.site-footer {
    grid-column: 1 / -1;
    padding: 20px;
    text-align: center;
    color: #71767b;
    font-size: 14px;
    border-top: 1px solid #2f3336;
}

.site-footer a {
    color: #1d9bf0;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-container {
        grid-template-columns: 68px 1fr;
        gap: 20px;
    }
    
    .right-sidebar {
        display: none;
    }
    
    .nav-text {
        display: none;
    }
    
    .site-logo {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .site-container {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .left-sidebar {
        display: none;
    }
    
    .main-content {
        border: none;
    }
}

/* SEO Hidden Keywords */
.seo-keywords {
    position: absolute;
    left: -9999px;
    font-size: 0;
    line-height: 0;
}

/* Custom Post Meta */
.post-meta-info {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #2f3336;
    font-size: 13px;
    color: #71767b;
}

.post-meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid #2f3336;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    background-color: #16181c;
    border: 1px solid #2f3336;
    border-radius: 20px;
    color: #e7e9ea;
    font-size: 15px;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #1d9bf0;
}

.search-form button {
    padding: 10px 20px;
    background-color: #1d9bf0;
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: #1a8cd8;
}

/* Comments */
.comments-area {
    padding: 20px;
    border-top: 2px solid #2f3336;
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.comment {
    padding: 16px;
    border-bottom: 1px solid #2f3336;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 8px;
}

.comment-meta {
    font-size: 13px;
    color: #71767b;
    margin-bottom: 8px;
}

.comment-content {
    line-height: 1.5;
}

/* Single Post */
.single .post-content {
    font-size: 16px;
    line-height: 1.6;
}

.single .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 15px 0;
}

/* Archive Pages */
.archive-description {
    padding: 20px;
    background-color: #16181c;
    border-bottom: 1px solid #2f3336;
}

.archive-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ============================================================================
   MOBILE MENU - HAMBURGER NAVIGATION
   ============================================================================ */

/* Кнопка гамбургера */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 9999;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Анимация превращения в X */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Затемнение фона */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .left-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: #000;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        z-index: 9998;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        padding-top: 80px;
    }
    
    .left-sidebar.menu-open {
        left: 0;
    }
    
    .left-sidebar .site-logo {
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 18px;
    }
    
    .left-sidebar .nav-text {
        display: inline;
    }
    
    body.menu-locked {
        overflow: hidden;
    }
    
    /* Улучшенная прокрутка для iOS */
    .left-sidebar {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Безопасная зона для iPhone X+ */
    @supports (padding: max(0px)) {
        .mobile-menu-toggle {
            top: max(15px, env(safe-area-inset-top));
            left: max(15px, env(safe-area-inset-left));
        }
        
        .left-sidebar {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* Отключение выделения при нажатии на мобильных */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-menu-toggle,
    .nav-menu a {
        -webkit-tap-highlight-color: rgba(220, 38, 38, 0.1);
    }
}
