/* compact-header.css - ИСПРАВЛЕННАЯ ВЕРСИЯ */

/* Основной header */
.compact-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 234, 255, 0.15);
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Контейнер header */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

/* Бренд (скрыт на мобильных) */
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00eaff 0%, #008cff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 1.2rem;
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00eaff 0%, #008cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Статистика (скрыта на мобильных) */
.header-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 234, 255, 0.2);
    min-width: 220px;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 0.2rem 0;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00eaff;
    line-height: 1;
    margin-bottom: 0.1rem;
}

.stat-label {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
}

/* Навигация (главный элемент на мобильных) */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 240px;
    justify-content: center;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

.nav-btn i {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.nav-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    color: #00eaff;
    background: rgba(0, 234, 255, 0.08);
    border-color: rgba(0, 234, 255, 0.2);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #00eaff 0%, #008cff 100%);
    color: #0f172a;
    border-color: #00eaff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 234, 255, 0.25);
}

/* Кошелек (скрыт на мобильных) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    justify-content: flex-end;
}

.header-actions .wallet-container {
    transform: scale(0.9);
    transform-origin: right center;
}

/* Заголовок контента */
.content-header {
    margin: 0.75rem 0 1.5rem !important;
    padding: 1rem !important;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 234, 255, 0.15);
    backdrop-filter: blur(10px);
}

.content-info {
    margin-bottom: 0.75rem !important;
    text-align: center;
}

.page-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.4rem !important;
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 0.25rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem !important;
}

.page-title i {
    color: #00eaff;
    font-size: 1.2rem !important;
}

.page-subtitle {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem !important;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1.3 !important;
}

.content-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem !important;
}

.quick-filters {
    display: flex;
    gap: 0.5rem !important;
}

.filter-btn {
    padding: 0.4rem 0.8rem !important;
    border: 1.5px solid rgba(0, 234, 255, 0.3);
    background: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
    border-radius: 50px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.8rem !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.filter-btn:hover {
    color: #00eaff;
    border-color: #00eaff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 234, 255, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, #00eaff 0%, #008cff 100%);
    color: #0f172a;
    border-color: #00eaff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 234, 255, 0.25);
}

.results-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
    font-family: 'Exo 2', sans-serif;
    padding: 0.4rem 0.8rem !important;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    min-width: 90px !important;
}

/* Стили для поиска */
.search-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    z-index: 10;
    transition: all 0.3s ease;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    border: 1.5px solid rgba(0, 234, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box:focus-within {
    border-color: #00eaff;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.2);
    transform: translateY(-1px);
}

.search-icon {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.search-input {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.85rem;
    width: 100%;
    padding: 0.2rem 0;
    outline: none;
}

.search-input::placeholder {
    color: #64748b;
}

.search-clear {
    background: rgba(255, 107, 107, 0.2);
    border: none;
    color: #ff6b6b;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.search-clear:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.1);
}

/* ========== КЛЮЧЕВЫЕ ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНЫХ ========== */

@media (max-width: 1024px) {
    .compact-header {
        height: 60px;
        padding: 0 0.5rem;
        justify-content: center;
    }
    
    /* Скрываем все, кроме навигации */
    .header-brand,
    .header-stats,
    .header-actions {
        display: none !important;
    }
    
    /* Навигация занимает всю ширину */
    .header-nav {
        display: flex !important;
        width: 100%;
        gap: 0.25rem;
        justify-content: space-around;
        padding: 0 0.25rem;
    }
    
    .nav-btn {
        flex: 1;
        min-width: 60px;
        max-width: 90px;
        padding: 0.4rem 0.5rem;
    }
    
    .nav-btn i {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .nav-text {
        font-size: 0.7rem;
    }
    
    /* Корректируем контент хедер */
    .content-header {
        margin-top: 0.25rem !important;
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
        border-radius: 12px;
    }
    
    .content-info {
        margin-bottom: 0.75rem !important;
    }
    
    .page-title {
        font-size: 1.1rem !important;
        gap: 0.5rem !important;
    }
    
    .page-title i {
        font-size: 1rem !important;
    }
    
    .page-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    .content-controls {
        gap: 0.75rem !important;
    }
    
    .quick-filters {
        gap: 0.5rem !important;
    }
    
    .filter-btn {
        padding: 0.35rem 0.8rem !important;
        font-size: 0.75rem !important;
        border-radius: 40px;
        border-width: 1px;
    }
    
    .results-counter {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.75rem !important;
        min-width: 80px !important;
    }
}

/* Для мобильных с вертикальной ориентацией */
@media (max-width: 768px) {
    .compact-header {
        height: 55px;
    }
    
    .header-nav {
        gap: 0.2rem;
        padding: 0 0.15rem;
    }
    
    .nav-btn {
        padding: 0.35rem 0.4rem;
        min-width: 55px;
        max-width: 80px;
    }
    
    .nav-btn i {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }
    
    .nav-text {
        font-size: 0.65rem;
    }
    
    .content-header {
        padding: 0.6rem !important;
        margin: 0.2rem 0 0.8rem !important;
        border-radius: 10px;
    }
    
    .page-title {
        font-size: 1rem !important;
        gap: 0.4rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .page-title i {
        font-size: 0.9rem !important;
    }
    
    .page-subtitle {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
    
    .content-controls {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .quick-filters {
        justify-content: center;
        width: 100%;
    }
    
    .filter-btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
        flex: 1;
        text-align: center;
    }
    
    .results-counter {
        width: 100%;
        justify-content: center;
        padding: 0.3rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Поиск на мобильных */
    .content-controls {
        position: relative;
        padding-top: 50px;
    }
    
    .search-container {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 400px;
        order: 1;
    }
    
    .quick-filters {
        order: 2;
    }
    
    .results-counter {
        order: 3;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .compact-header {
        height: 52px;
    }
    
    .nav-btn {
        padding: 0.3rem 0.35rem;
        min-width: 50px;
    }
    
    .nav-btn i {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }
    
    .nav-text {
        font-size: 0.6rem;
    }
    
    .content-header {
        padding: 0.5rem !important;
        margin: 0.15rem 0 0.6rem !important;
        border-radius: 8px;
    }
    
    .page-title {
        font-size: 0.9rem !important;
        gap: 0.3rem !important;
    }
    
    .page-title i {
        font-size: 0.8rem !important;
    }
    
    .page-subtitle {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
    }
    
    .content-controls {
        padding-top: 45px;
        gap: 0.4rem !important;
    }
    
    .filter-btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
    }
    
    .results-counter {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .search-box {
        padding: 0.4rem 0.8rem;
    }
    
    .search-input {
        font-size: 0.8rem;
    }
    
    .search-input::placeholder {
        font-size: 0.75rem;
    }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .compact-header {
        height: 50px;
    }
    
    .header-nav {
        gap: 0.4rem;
    }
    
    .nav-btn {
        padding: 0.4rem 0.5rem;
        min-width: 70px;
    }
    
    .nav-btn i {
        font-size: 1rem;
    }
    
    .nav-text {
        font-size: 0.7rem;
    }
    
    .content-controls {
        flex-direction: row;
        padding-top: 0;
    }
    
    .search-container {
        position: relative;
        left: 0;
        transform: none;
        width: 40%;
        max-width: none;
    }
    
    .quick-filters {
        width: auto;
    }
}

/* Анимация для счетчика */
#visible-count, #total-count {
    transition: all 0.3s ease;
    font-weight: 600;
}

#visible-count.updating, #total-count.updating {
    color: #39ff14;
    transform: scale(1.2);
}

.counter-text i {
    transition: color 0.3s ease;
}

.counter-text i.fa-search {
    color: #39ff14;
}

.counter-text i.fa-filter {
    color: #00eaff;
}

/* Индикатор активности поиска */
.search-active-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #39ff14;
    border-radius: 50%;
    margin-left: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Анимация при фокусе поиска */
@keyframes searchPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 234, 255, 0.3); }
    70% { box-shadow: 0 0 0 5px rgba(0, 234, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 234, 255, 0); }
}

.search-box:focus-within {
    animation: searchPulse 1.5s infinite;
}

/* Для больших экранов - фиксированная позиция поиска */
@media (min-width: 1200px) {
    .search-container {
        width: 350px;
    }
}

@media (max-width: 1100px) {
    .search-container {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .search-container {
        width: 250px;
    }
}
/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ========== */

.page-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.nodes-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #00eaff;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 140, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 140, 255, 0.2);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.platform-motto {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #39ff14;
    padding: 0.75rem 1.5rem;
    background: rgba(57, 255, 20, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.platform-motto i {
    color: #39ff14;
}

/* Адаптивные стили для этих элементов */
@media (max-width: 768px) {
    .page-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .nodes-counter {
        font-size: 1.125rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .platform-motto {
        font-size: 0.9rem;
        padding: 0.5rem 1.25rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .nodes-counter {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .platform-motto {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

