/* ==========================================================================
   ACTUC TABS COMPONENT SYSTEM
   ========================================================================== */

.actuc-tabs-container {
    max-width: 850px;
    margin: 30px auto 10px auto;
    font-family: monospace;
    box-sizing: border-box;
}

/* Навигационная панель кнопок */
.actuc-tabs-nav {
    display: flex;
    gap: 0; /* Плотно прижаты друг к другу, как на скриншоте */
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.6);
    padding: 0;
    margin-bottom: 20px;
}

/* Базовый тактический стиль кнопок */
.actuc-tab-trigger {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid #334155;
    color: #475569; /* Приглушенный цвет в неактивном состоянии */
    padding: 15px 20px;
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.25s ease, color 0.25s ease;
    outline: none;
    text-transform: uppercase;
}

.actuc-tab-trigger:last-child {
    border-right: none;
}

/* Изменение цвета текста при наведении */
.actuc-tab-trigger:hover {
    color: #38bdf8 !important; /* Яркий тактический голубой */
}

/* Активное состояние (Фоновые цвета под скриншот) */
.actuc-tab-trigger[data-tab="mission"].active {
    background: #334155 !important; /* Оливково-золотой оттенок */
    color: #ffffff !important;
}

.actuc-tab-trigger[data-tab="vision"].active {
    background: #334155 !important; /* Сдержанный графит */
    color: #38bdf8 !important;
}

.actuc-tab-trigger[data-tab="philosophy"].active {
    background: #1e293b !important; /* Глубокий матричный синий */
    color: #60a5fa !important;
}

/* Блок вывода текстового контента */
.actuc-tabs-content {
    position: relative;
    padding: 10px 5px;
    min-height: 100px;
}

/* Скрытые панели по умолчанию */
.actuc-tab-panel {
    display: none;
    color: #f8fafc;
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.5px;
    animation: actucFadeIn 0.35s ease forwards;
}

/* Отображение активной панели */
.actuc-tab-panel.active {
    display: block;
}

/* Мягкое проявление текста */
@keyframes actucFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность для мобильных экранов */
@media (max-width: 768px) {
    .actuc-tab-trigger {
        font-size: 1.1rem;
        padding: 12px 10px;
    }
}

/* Контейнер-обертка графического узла */
.placeholder-graphic-node {
    width: 100%;
    position: relative;
    z-index: 5;
    margin: 30px 0;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4); /* Мягкое затемнение подложки для читаемости */
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 4px;
}

/* Главная флекс-сетка матрицы */
.tactical-matrix-display {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Иллюстрации прижаты к краям, текст в центре */
    width: 100%;
    height: 100%;
    padding: 10px 40px;
    box-sizing: border-box;
    gap: 20px;
}

/* ==========================================================================
   ACTUC RUNNING TICKER COMPONENT
   ========================================================================== */
.actuc-ticker-wrapper {
    position: relative;
    z-index: 10;         /* Поднимаем строку над 3D ландшафтом */
    width: 100%;
    overflow: hidden;
    padding: 0;
    background: transparent; 
}

.actuc-ticker {
    display: flex;
    white-space: nowrap;
}

.ticker-content {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
}

.actuc-ticker:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 10px;
    font-family: 'Montserrat', sans-serif; 
    font-weight: 900;
    font-size: 1.0rem;
    color: #5f6669;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.ticker-item::after {
    content: "///";
    margin-left: 30px;
    color: #444;
}

.ticker-item:hover {
    color: #ff0000; 
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    transform: scale(1.1);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Общие параметры для контейнеров графики */
.matrix-asset {
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Защита от сжатия пропорций изображений */
}

.matrix-asset img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(250, 208, 51, 0.25)); /* Свечение золота */
}

/* Специфика меча (левый фланг) */
.asset-sword {
    animation: pulseSword 4s ease-in-out infinite;
}

/* Специфика щита (правый фланг) */
.asset-shield {
    animation: pulseShield 4s ease-in-out infinite;
}

/* Центральный текстовый узел */
.matrix-core-text {
    flex-grow: 1;
    text-align: center;
    max-width: 650px;
    z-index: 6;
}

/* Главный призыв (Белый, рубленый, контрастный) */
.matrix-strike-phrase {
    color: #FFFFFF;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1.3;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9); /* Изоляция от фоновой сетки */
}

/* Описание (Высокочитаемый серебряно-серый тон) */
.matrix-desc-phrase {
    color: #E2E8F0; /* Светло-серебряный для идеального чтения */
    font-family: monospace;
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Выделение ключевых слов */
.matrix-desc-phrase .highlight-shield {
    color: #FAD033; /* Фирменный золотой */
    font-weight: 700;
}

.matrix-desc-phrase .highlight-sword {
    color: #FAD033;
    font-weight: 700;
}

/* Мягкая анимация покачивания элементов */
@keyframes pulseSword {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes pulseShield {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(1deg); }
}

/* --- АДАПТИВНОСТЬ ДЛЯ СБЛИЖЕНИЯ ЭЛЕМЕНТОВ --- */
@media (max-width: 992px) {
    .tactical-matrix-display {
        padding: 10px 20px; /* Сужение боковых отступов сближает графику к центру */
    }
    .matrix-strike-phrase {
        font-size: 1.35rem;
    }
    .matrix-desc-phrase {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .placeholder-graphic-node {
        height: auto;
        padding: 20px 0;
    }
    .tactical-matrix-display {
        position: relative;
        justify-content: center;
    }
    /* На мобильных графика уходит на задний план под текст, образуя коллаж */
    .matrix-asset {
        position: absolute;
        height: 80%;
        opacity: 0.15; /* Ослабляем яркость, чтобы текст не спорил с графикой */
        pointer-events: none;
    }
    .asset-sword {
        left: -15px;
        transform: rotate(-10deg);
    }
    .asset-shield {
        right: -5px;
        transform: rotate(10deg);
    }
    .matrix-core-text {
        max-width: 100%;
        padding: 0 15px;
    }
    .matrix-strike-phrase {
        font-size: 1.2rem;
    }
}