/*
Theme Name: TechFlow Clean
Version: 5.0 (Simple Logo Fix)
*/

/* 1. ШРИФТЫ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

/* 2. СБРОС */
body {
    background-color: #000000; color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0; padding: 0; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: 0.2s; }
* { box-sizing: border-box; }

/* === ХЕДЕР === */
.tf-header {
    position: sticky; top: 0; z-index: 99999;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #1a1a1a;
    height: 70px; display: flex; align-items: center;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tf-container {
    width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

/* === ЛОГОТИП (ИСПРАВЛЕННЫЙ) === */
.logo-wrapper { 
    text-decoration: none; 
    color: #00FF67; 
    font-family: 'RF Tone', sans-serif; 
}

.logo { 
    font-size: 22px; /* Чуть увеличил, чтобы было солидно */
    letter-spacing: 0.1em; 
    display: flex; 
    gap: 1px; /* Минимальный зазор для четкости */
}

/* ЭТОТ БЛОК ОТВЕЧАЕТ ЗА ПОЯВЛЕНИЕ БУКВ */
.char { 
    opacity: 0; 
    display: inline-block;
    transition: opacity 0.4s ease; /* Плавное проявление каждой буквы */
}

/* Жирность (то, что мы прописывали в скрипте) */
.tech { font-weight: 900; }
.flow { font-weight: 400; }

/* === КНОПКА === */
.tf-nav-actions { display: flex; align-items: center; }

.cyber-button {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 25px; margin-right: 20px;
    color: #00FF67; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    background: transparent; border: 1px solid rgba(0, 255, 103, 0.5);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    overflow: hidden; transition: 0.3s;
}
.cyber-button:hover {
    background: rgba(0, 255, 103, 0.1); border-color: #00FF67;
    box-shadow: 0 0 20px rgba(0, 255, 103, 0.3); text-shadow: 0 0 5px #00FF67; transform: translateY(-2px);
}
.cyber-button::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 103, 0.4), transparent); transition: 0.5s;
}
.cyber-button:hover::before { left: 100%; }

/* === БУРГЕР: ФИНАЛЬНЫЙ ФИКС === */
.tf-burger {
    width: 40px !important; 
    height: 40px !important; 
    cursor: pointer !important;
    display: flex !important; /* Форсируем отображение */
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-end;
    gap: 8px; 
    position: relative;
    z-index: 100001;
    visibility: visible !important;
    opacity: 1 !important;
}

.line { 
    background: #fff !important; 
    height: 2px; 
    border-radius: 2px; 
    display: block !important;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.l1 { width: 30px; } 
.l2 { width: 20px; background: #00FF67 !important; box-shadow: 0 0 10px #00FF67; }

/* Анимация в крестик (когда у body есть класс menu-open) */
body.menu-open .l1 { transform: translateY(5px) rotate(45deg); width: 30px; }
body.menu-open .l2 { transform: translateY(-5px) rotate(-45deg); width: 30px; background: #fff !important; box-shadow: none; }

/* === МЕНЮ (OFFCANVAS CYBER) === */
.tf-offcanvas {
    position: fixed; top: 0; right: 0; 
    width: 450px; height: 100vh;
    background: #050505; 
    border-left: 1px solid #00FF67;
    z-index: 99999; transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    box-shadow: -20px 0 50px rgba(0,0,0,0.9);
    overflow: hidden;
}

/* Декоративный текст на фоне */
.tf-menu-bg-text {
    position: absolute; bottom: 10%; left: -20px;
    font-size: 80px; font-weight: 900; color: rgba(0, 255, 103, 0.03);
    transform: rotate(-90deg); transform-origin: left bottom;
    pointer-events: none; z-index: 1; letter-spacing: 10px;
}

.tf-offcanvas-header { 
    padding: 30px; border-bottom: 1px solid rgba(0, 255, 103, 0.1); 
    display: flex; justify-content: space-between; align-items: center; 
}

/* Мигающий индикатор статуса */
.tf-status-light { font-size: 10px; color: #00FF67; font-weight: 800; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.tf-status-light span { width: 6px; height: 6px; background: #00FF67; border-radius: 50%; box-shadow: 0 0 10px #00FF67; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* СЕТКА МЕНЮ (ДВА РЯДА) */
.tf-menu-items { 
    padding: 40px 30px; 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* ДВА РЯДА */
    gap: 15px; 
    z-index: 2;
    overflow-y: auto;
}

.tf-menu-link {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    display: flex; flex-direction: column;
    transition: 0.3s;
    border-radius: 4px;
    position: relative; overflow: hidden;
}

.tf-menu-link .hash { font-size: 12px; color: #00FF67; margin-bottom: 5px; opacity: 0.5; }
.tf-menu-link .cat-name { color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

/* Эффект при наведении на плашку */
.tf-menu-link:hover {
    background: rgba(0, 255, 103, 0.05);
    border-color: #00FF67;
    transform: scale(1.02);
}
.tf-menu-link::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 103, 0.1), transparent);
    transition: 0.5s;
}
.tf-menu-link:hover::before { left: 100%; }

.tf-offcanvas-footer {
    padding: 30px; border-top: 1px solid rgba(255,255,255,0.05);
    font-family: monospace; font-size: 10px; color: #333;
}

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 768px) {
    .tf-offcanvas { width: 100%; border-left: none; }
    .tf-menu-items { 
        grid-template-columns: 1fr 1fr; /* Оставляем два ряда, это стильно */
        gap: 10px; padding: 20px; 
    }
    .tf-menu-link { padding: 15px; }
    .tf-menu-bg-text { font-size: 50px; }
}













/* === 5. ФУТЕР (CYBERPUNK ULTIMATE) === */
.site-footer { 
    background: #000; 
    border-top: 2px solid #00FF67; 
    padding: 80px 20px 40px; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 50px rgba(0, 255, 103, 0.1);
}

/* Эффект сканирующей линии (Cyber Scan) */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: #00FF67;
    box-shadow: 0 0 20px #00FF67;
    animation: footerScan 4s linear infinite;
    opacity: 0.3;
}

@keyframes footerScan {
    0% { top: 0; opacity: 0; }
    5% { opacity: 0.5; }
    95% { opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

.footer-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* Инфо-колонка */
.footer-logo { 
    color: #00FF67; 
    font-weight: 900; 
    font-size: 32px; 
    display: block; 
    margin-bottom: 15px; 
    letter-spacing: 5px;
    text-shadow: 0 0 15px rgba(0, 255, 103, 0.5);
}

.footer-email { 
    color: #fff; 
    opacity: 0.6; 
    font-size: 14px; 
    font-family: monospace;
    transition: 0.3s;
}
.footer-email:hover { opacity: 1; color: #00FF67; }

/* Соцсети (Неоновые кнопки) */
.footer-socials { margin-top: 30px; display: flex; gap: 15px; }
.footer-socials a { 
    width: 45px; height: 45px; 
    background: rgba(255,255,255,0.03); 
    color: #00FF67; 
    border: 1px solid rgba(0, 255, 103, 0.3);
    border-radius: 8px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 12px; font-weight: 800; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}
.footer-socials a:hover { 
    background: #00FF67; 
    color: #000; 
    box-shadow: 0 0 25px #00FF67;
    transform: translateY(-5px) rotate(5deg);
}

/* Колонки навигации */
.footer-col-nav, .footer-col-cats { 
    display: flex; flex-direction: column; gap: 15px; 
}

.footer-col-nav a, .footer-col-cats a { 
    color: #888; 
    font-size: 13px; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s; 
    position: relative;
    width: fit-content;
}

.footer-col-nav a::before, .footer-col-cats a::before {
    content: ">";
    position: absolute;
    left: -20px;
    color: #00FF67;
    opacity: 0;
    transition: 0.3s;
}

.footer-col-nav a:hover, .footer-col-cats a:hover { 
    color: #fff; 
    padding-left: 20px;
    text-shadow: 0 0 8px #fff;
}

.footer-col-nav a:hover::before, .footer-col-cats a:hover::before {
    opacity: 1;
    left: 0;
}

/* Нижняя часть */
.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.05); 
    margin-top: 60px; 
    padding-top: 30px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px; 
    color: #444; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media(max-width: 850px) {
    .site-footer { padding: 60px 20px 30px; }
    .footer-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 50px;
    }
    .footer-socials { justify-content: center; }
    .footer-col-nav a, .footer-col-cats a { 
        margin: 0 auto;
    }
    .footer-col-nav a:hover, .footer-col-cats a:hover { 
        padding-left: 0; 
    }
    .footer-col-nav a:hover::before, .footer-col-cats a:hover::before {
        display: none;
    }
    .footer-bottom { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center; 
    }
}











/* === 6. GPU АНИМАЦИИ (BOXES) === */
.cv-promo-box, .job-promo-box {
    position: relative; overflow: hidden; border-radius: 20px; margin: 30px 0;
    transform: translateZ(0); /* GPU Force */
    padding: 30px; text-align: center; border: 1px solid #333;
}
.cv-promo-box { background: #000; }
.job-promo-box { background: #050505; }

/* Жидкий фон */
.cv-promo-box::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(#00FF67, transparent, #00FF67);
    animation: spin 6s linear infinite; filter: blur(50px); opacity: 0.3; pointer-events: none;
}
/* Лазер */
.job-promo-box::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, #00FF67, transparent);
    animation: laser 3s infinite; opacity: 0.5; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes laser { 0% { left: -100%; } 100% { left: 200%; } }

.cv-promo-box p, .job-promo-box p { position: relative; z-index: 2; margin-bottom: 20px; font-weight: bold; }
.cv-promo-btn, .job-promo-btn {
    position: relative; z-index: 2; display: inline-block; padding: 12px 25px;
    border-radius: 30px; font-weight: 800; font-size: 12px; text-transform: uppercase;
}
.cv-promo-btn { background: #fff; color: #000; }
.job-promo-btn { background: #00FF67; color: #000; }















/* =========================================
   ГЛАВНАЯ ЛЕНТА (TECH FEED)
   ========================================= */

.tf-main-content {
    background-color: #000;
    min-height: 100vh;
    padding: 40px 20px;
}

.tf-feed-container {
    max-width: 760px; /* Идеальная ширина для фокуса на контенте */
    margin: 0 auto;
}

/* Заголовок секции с неоновой линией */
.tf-section-header {
    margin-bottom: 50px;
}

.tf-glitch-title {
    font-size: 13px;
    color: #00FF67;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 103, 0.4);
}

.tf-glitch-title::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, rgba(0, 255, 103, 0.6), transparent);
}

/* --- КАРТОЧКА (CYBER-CARD) --- */
.tf-news-card {
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    margin-bottom: 50px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tf-news-card:hover {
    border-color: #00FF67;
    box-shadow: 0 15px 40px rgba(0, 255, 103, 0.1);
    transform: translateY(-8px);
}

/* Медиа (Фото) */
.tf-card-image {
    display: block;
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: #050505;
}

.tf-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.tf-news-card:hover .tf-card-image img {
    transform: scale(1.05);
}

.tf-image-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.9));
}

/* Текстовый блок */
.tf-card-content {
    padding: 30px 40px;
}

.tf-post-date {
    font-size: 11px;
    color: #555;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.tf-post-title {
    margin: 0 0 18px 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 900;
}

.tf-post-title a {
    color: #fff;
    transition: 0.3s;
}

.tf-news-card:hover .tf-post-title a {
    color: #00FF67;
    text-shadow: 0 0 15px rgba(0, 255, 103, 0.3);
}

.tf-post-excerpt {
    color: #888;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 400;
}



/* --- КАТЕГОРИЯ С ХЭШТЕГОМ --- */
.tf-post-cat {
    display: inline-block;
    color: #00FF67;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(0, 255, 103, 0.4);
    transition: 0.3s;
}

.tf-post-cat:hover {
    color: #fff;
    text-shadow: 0 0 12px #00FF67;
} /* ВОТ ЭТА СКОБКА БЫЛА ПРОПУЩЕНА */

/* --- ОХУЕННАЯ КНОПКА --- */
.tf-post-footer {
    display: flex;
    justify-content: space-between; /* Чтобы кнопка была на месте */
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.tf-more-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 0;
    transition: 0.3s;
    text-decoration: none;
}

.tf-more-button span {
    position: relative;
}

.tf-more-button span::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 30%; height: 2px;
    background: #00FF67;
    box-shadow: 0 0 10px #00FF67;
    transition: 0.3s ease;
}

.tf-more-button svg {
    width: 18px;
    height: 12px;
    fill: none;
    stroke: #00FF67;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: 0.3s ease;
}

/* Эффекты при наведении */
.tf-news-card:hover .tf-more-button span::after {
    width: 100%;
}

.tf-news-card:hover .tf-more-button svg {
    transform: translateX(8px);
    filter: drop-shadow(0 0 5px #00FF67);
}

.tf-more-button:hover {
    color: #00FF67;
}

/* --- ПАГИНАЦИЯ (NEO-PAGINATION) --- */
.tf-custom-pagination {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.tf-custom-pagination .page-numbers {
    padding: 14px 22px;
    background: #0a0a0a;
    color: #fff;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.tf-custom-pagination a.page-numbers:hover {
    border-color: #00FF67;
    color: #00FF67;
    box-shadow: 0 0 20px rgba(0, 255, 103, 0.15);
}

.tf-custom-pagination .current {
    background: #00FF67;
    color: #000;
    border-color: #00FF67;
    box-shadow: 0 0 20px rgba(0, 255, 103, 0.3);
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .tf-card-image { height: 260px; }
    .tf-post-title { font-size: 22px; }
    .tf-card-content { padding: 25px; }
    .tf-feed-container { padding: 0 10px; }
}