/* Стили для кнопок выбора типа матрицы */

/* Базовые стили (до активации) */
.matrix-type-btn {
    outline: none;
    cursor: pointer;
}

.matrix-type-btn:focus {
    outline: none;
}

/* Вложенные элементы не должны перехватывать клики */
.matrix-type-btn .matrix-type-label {
    pointer-events: none;
}

/* Единый стиль активной кнопки — зелёный (как у детской) для всех типов */
.matrix-type-btn-general.active,
.matrix-type-btn-child.active,
.matrix-type-btn-relationship.active,
.matrix-type-btn-career.active {
    border-color: rgba(5, 150, 105, 0.35);
    border-width: 1px;
    background: rgba(18, 12, 32, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(5, 150, 105, 0.1);
}

.matrix-type-btn-general.active .matrix-type-label,
.matrix-type-btn-child.active .matrix-type-label,
.matrix-type-btn-relationship.active .matrix-type-label,
.matrix-type-btn-career.active .matrix-type-label {
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Изменение текста "ОТНОШЕНИЯ" на "СОВМЕСТИМОСТИ" для планшетов и десктопов */
@media (min-width: 769px) {
    .matrix-type-btn-relationship .matrix-type-label {
        font-size: 0;
        line-height: 0;
    }
    
    .matrix-type-btn-relationship .matrix-type-label::before {
        content: 'СОВМЕСТИМОСТИ';
        font-size: 14px;
        line-height: 1.2;
        display: block;
    }
    
    /* Сохраняем стили для активного состояния */
    .matrix-type-btn-relationship.active .matrix-type-label::before {
        color: rgba(255, 255, 255, 0.98);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
}
